nixpkgs/pkgs/stdenv/generic/builder.sh
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

17 lines
361 B
Bash
Executable file

#! /bin/sh
. $stdenv/setup
mkdir $out || exit 1
sed \
-e "s^@preHook@^$preHook^g" \
-e "s^@postHook@^$postHook^g" \
-e "s^@initialPath@^$initialPath^g" \
-e "s^@gcc@^$gcc^g" \
-e "s^@param1@^$param1^g" \
-e "s^@param2@^$param2^g" \
-e "s^@param3@^$param3^g" \
-e "s^@param4@^$param4^g" \
-e "s^@param5@^$param5^g" \
< $setup > $out/setup || exit 1