3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/stdenv/generic/default.nix
Eelco Dolstra ce50734cf0 * Started reorganising stdenv:
- gcc/ld-wrappers have been factored out into a separate
    derivation.  This allows a working gcc to be installed in the user
    environment.  (Previously the Nix gcc didn't work because it
    needed a whole bunch of flags to point to glibc.)
    
  - Better modularity: packages can specify hooks into the setup
    scripts.  For instance, setup no longer knows about the
    PKG_CONFIG_PATH variable; pkgconfig can set it up instead.

  - gcc not longer depends on binutils.  This simplifies the bootstrap
    process.

svn path=/nixpkgs/trunk/; revision=816
2004-03-08 16:02:46 +00:00

18 lines
362 B
Nix

{ stdenv, name, preHook, postHook, initialPath, gcc
, param1 ? "", param2 ? "", param3 ? "", param4 ? "", param5 ? ""
}:
derivation {
inherit stdenv name;
system = stdenv.system;
builder = ./builder.sh;
setup = ./setup.sh;
inherit preHook postHook initialPath gcc;
# TODO: make this more elegant.
inherit param1 param2 param3 param4 param5;
}