nixpkgs/pkgs/stdenv/mingw/simple-stdenv/default.nix
Martin Bravenboer 5992b95b64 Basic stdenv for mingw. No compiler yet and setup needs more fixing.
svn path=/nixpkgs/trunk/; revision=6124
2006-08-15 21:25:14 +00:00

32 lines
560 B
Nix

{ system
, name
, shell
, path
, extraEnv ? {}
, extraShellOptions ? []
}:
let {
body =
derivation ({
inherit system name;
initialPath = path;
builder = shell;
args = extraShellOptions ++ ["-e" ./builder.sh];
} // extraEnv)
// {
mkDerivation = attrs:
derivation ((removeAttrs attrs ["meta"]) // {
builder = shell;
args = extraShellOptions ++ ["-e" attrs.builder];
stdenv = body;
system = body.system;
}
// extraEnv);
inherit shell;
};
}