mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
* Treat i686-darwin as powerpc-darwin.
svn path=/nixpkgs/trunk/; revision=5604
This commit is contained in:
parent
f968ef400f
commit
e410c935a1
@ -3,7 +3,7 @@
|
||||
stdenv.mkDerivation {
|
||||
name = "bzip2-1.0.3";
|
||||
builder =
|
||||
if stdenv.system == "powerpc-darwin" then ./builder-darwin.sh
|
||||
if stdenv.system == "powerpc-darwin" || stdenv.system == "i686-darwin" then ./builder-darwin.sh
|
||||
else if stdenv.system == "i686-freebsd" then ./builder-freebsd.sh
|
||||
else if stdenv.system == "i686-cygwin" then ./builder-cygwin.sh
|
||||
else ./builder.sh;
|
||||
|
@ -58,6 +58,9 @@ rec {
|
||||
);
|
||||
};
|
||||
|
||||
# Check if stdenv.system denotes Mac OS X.
|
||||
isDarwin = stdenv: stdenv.system == "powerpc-darwin" || stdenv.system == "i686-darwin";
|
||||
|
||||
|
||||
### STANDARD ENVIRONMENT
|
||||
|
||||
@ -157,7 +160,7 @@ rec {
|
||||
};
|
||||
|
||||
patch = useFromStdenv (stdenv ? patch) stdenv.patch
|
||||
(if stdenv.system == "powerpc-darwin" then null else gnupatch);
|
||||
(if isDarwin stdenv then null else gnupatch);
|
||||
|
||||
gnused = useFromStdenv (stdenv ? gnused) stdenv.gnused
|
||||
(import ../tools/text/gnused {
|
||||
@ -759,7 +762,7 @@ rec {
|
||||
};
|
||||
|
||||
jdk =
|
||||
if stdenv.system == "powerpc-darwin" then
|
||||
if isDarwin stdenv then
|
||||
"/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home"
|
||||
else
|
||||
(import ../development/compilers/jdk) {
|
||||
@ -959,7 +962,7 @@ rec {
|
||||
php = (import ../development/interpreters/php) {
|
||||
inherit stdenv fetchurl flex bison libxml2 apacheHttpd;
|
||||
unixODBC =
|
||||
if stdenv.system == "powerpc-darwin" then null else unixODBC;
|
||||
if isDarwin stdenv then null else unixODBC;
|
||||
};
|
||||
|
||||
guile = (import ../development/interpreters/guile) {
|
||||
|
Loading…
Reference in New Issue
Block a user