mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
94c7bec49d
so that "nix-env -i stdenv" does the expected. svn path=/nixpkgs/branches/stdenv-updates/; revision=31742
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ stdenv, pkgs }:
|
|
|
|
import ../generic rec {
|
|
preHook =
|
|
''
|
|
export NIX_ENFORCE_PURITY=1
|
|
export NIX_IGNORE_LD_THROUGH_GCC=1
|
|
|
|
if [ "$system" = "i686-darwin" -o "$system" = "powerpc-darwin" -o "$system" = "x86_64-darwin" ]; then
|
|
export NIX_DONT_SET_RPATH=1
|
|
export NIX_NO_SELF_RPATH=1
|
|
dontFixLibtool=1
|
|
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s"
|
|
xargsFlags=" "
|
|
fi
|
|
'';
|
|
|
|
initialPath = (import ../common-path.nix) {pkgs = pkgs;};
|
|
|
|
system = stdenv.system;
|
|
|
|
gcc = import ../../build-support/gcc-wrapper {
|
|
nativeTools = false;
|
|
nativeLibc = true;
|
|
inherit stdenv;
|
|
binutils =
|
|
if stdenv.isDarwin then
|
|
import ../../build-support/native-darwin-cctools-wrapper {inherit stdenv;}
|
|
else
|
|
pkgs.binutils;
|
|
gcc = if stdenv.isDarwin then pkgs.gccApple.gcc else pkgs.gcc.gcc;
|
|
coreutils = pkgs.coreutils;
|
|
shell = pkgs.bash + "/bin/sh";
|
|
};
|
|
|
|
shell = pkgs.bash + "/bin/sh";
|
|
|
|
fetchurlBoot = stdenv.fetchurlBoot;
|
|
|
|
overrides = pkgs_: {
|
|
inherit gcc;
|
|
inherit (gcc) binutils;
|
|
inherit (pkgs)
|
|
gzip bzip2 xz bash coreutils diffutils findutils gawk
|
|
gnumake gnused gnutar gnugrep gnupatch perl;
|
|
};
|
|
}
|