forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make a sepseparate directory for darwin's stdenv
svn path=/nixpkgs/branches/darwin-without-xcode/; revision=31575
- Loading branch information
Showing
5 changed files
with
41 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{stdenv, pkgs}: | ||
|
||
import ../generic { | ||
name = "stdenv-darwin"; | ||
preHook = ./prehook.sh; | ||
initialPath = (import ../common-path.nix) {pkgs = pkgs;}; | ||
|
||
system = stdenv.system; | ||
|
||
gcc = import ../../build-support/gcc-wrapper { | ||
nativeTools = false; | ||
nativeLibc = true; | ||
inherit stdenv; | ||
binutils = import ../../build-support/native-darwin-cctools-wrapper {inherit stdenv;}; | ||
gcc = pkgs.gccApple.gcc; | ||
coreutils = pkgs.coreutils; | ||
shell = pkgs.bash + "/bin/sh"; | ||
}; | ||
|
||
shell = pkgs.bash + "/bin/sh"; | ||
|
||
fetchurlBoot = stdenv.fetchurlBoot; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export NIX_ENFORCE_PURITY=1 | ||
export NIX_IGNORE_LD_THROUGH_GCC=1 | ||
|
||
export NIX_DONT_SET_RPATH=1 | ||
export NIX_NO_SELF_RPATH=1 | ||
dontFixLibtool=1 | ||
NIX_STRIP_DEBUG=0 # !!! do we still need this? | ||
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s" | ||
xargsFlags=" " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,2 @@ | ||
export NIX_ENFORCE_PURITY=1 | ||
export NIX_IGNORE_LD_THROUGH_GCC=1 | ||
|
||
if test "$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 | ||
NIX_STRIP_DEBUG=0 # !!! do we still need this? | ||
stripAllFlags=" " # the Darwin "strip" command doesn't know "-s" | ||
xargsFlags=" " | ||
fi |