* Use stdenv.isDarwin.
svn path=/nixpkgs/trunk/; revision=5728
This commit is contained in:
parent
1fc6ce85c4
commit
fbf526d408
|
@ -9,5 +9,5 @@
|
||||||
|
|
||||||
# Quick fix for a Makefile bug in openssl-0.9.8 (`make install'
|
# Quick fix for a Makefile bug in openssl-0.9.8 (`make install'
|
||||||
# tries to copy .so files, instead of .dylib files).
|
# tries to copy .so files, instead of .dylib files).
|
||||||
patches = if stdenv.system == "powerpc-darwin" then [./dylib.patch] else [];
|
patches = if stdenv.isDarwin then [./dylib.patch] else [];
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,5 +6,4 @@
|
||||||
sha1 = "99565db630a044fa484d4f91006a31908f262246";
|
sha1 = "99565db630a044fa484d4f91006a31908f262246";
|
||||||
};
|
};
|
||||||
buildInputs = [perl];
|
buildInputs = [perl];
|
||||||
# patches = [./darwin-makefile.patch];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "bzip2-1.0.3";
|
name = "bzip2-1.0.3";
|
||||||
builder =
|
builder =
|
||||||
if stdenv.system == "powerpc-darwin" || stdenv.system == "i686-darwin" then ./builder-darwin.sh
|
if stdenv.isDarwin then ./builder-darwin.sh
|
||||||
else if stdenv.system == "i686-freebsd" then ./builder-freebsd.sh
|
else if stdenv.system == "i686-freebsd" then ./builder-freebsd.sh
|
||||||
else if stdenv.system == "i686-cygwin" then ./builder-cygwin.sh
|
else if stdenv.system == "i686-cygwin" then ./builder-cygwin.sh
|
||||||
else ./builder.sh;
|
else ./builder.sh;
|
||||||
|
|
|
@ -58,9 +58,6 @@ rec {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
# Check if stdenv.system denotes Mac OS X.
|
|
||||||
isDarwin = stdenv: stdenv.system == "powerpc-darwin" || stdenv.system == "i686-darwin";
|
|
||||||
|
|
||||||
|
|
||||||
### STANDARD ENVIRONMENT
|
### STANDARD ENVIRONMENT
|
||||||
|
|
||||||
|
@ -737,7 +734,7 @@ rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
jdk =
|
jdk =
|
||||||
if isDarwin stdenv then
|
if stdenv.isDarwin then
|
||||||
"/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home"
|
"/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home"
|
||||||
else
|
else
|
||||||
(import ../development/compilers/jdk) {
|
(import ../development/compilers/jdk) {
|
||||||
|
@ -937,7 +934,7 @@ rec {
|
||||||
php = (import ../development/interpreters/php) {
|
php = (import ../development/interpreters/php) {
|
||||||
inherit stdenv fetchurl flex bison libxml2 apacheHttpd;
|
inherit stdenv fetchurl flex bison libxml2 apacheHttpd;
|
||||||
unixODBC =
|
unixODBC =
|
||||||
if isDarwin stdenv then null else unixODBC;
|
if stdenv.isDarwin then null else unixODBC;
|
||||||
};
|
};
|
||||||
|
|
||||||
guile = (import ../development/interpreters/guile) {
|
guile = (import ../development/interpreters/guile) {
|
||||||
|
|
Loading…
Reference in New Issue