2004-03-12 12:12:18 +01:00
|
|
|
{stdenv, glibc, pkgs, genericStdenv, gccWrapper}:
|
2004-03-09 18:16:02 +01:00
|
|
|
|
2004-03-28 23:07:43 +02:00
|
|
|
let {
|
|
|
|
|
|
|
|
body =
|
|
|
|
|
|
|
|
genericStdenv {
|
|
|
|
name = "stdenv-nix-linux";
|
|
|
|
preHook = ./prehook.sh;
|
|
|
|
initialPath = (import ../nix/path.nix) {pkgs = pkgs;};
|
|
|
|
|
|
|
|
inherit stdenv;
|
|
|
|
|
|
|
|
gcc = gccWrapper {
|
|
|
|
name = pkgs.gcc.name;
|
|
|
|
nativeTools = false;
|
|
|
|
nativeGlibc = false;
|
|
|
|
inherit (pkgs) gcc binutils;
|
|
|
|
inherit stdenv glibc;
|
|
|
|
};
|
|
|
|
|
|
|
|
param1 = pkgs.bash;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Add a utility function to produce derivations that use this
|
|
|
|
# stdenv and its the bash shell.
|
|
|
|
// {
|
|
|
|
mkDerivation = attrs: derivation (attrs // {
|
|
|
|
builder = pkgs.bash ~ /bin/sh;
|
|
|
|
args = ["-e" attrs.builder];
|
|
|
|
stdenv = body;
|
|
|
|
system = body.system;
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
2003-11-03 11:22:00 +01:00
|
|
|
}
|