From 9e5b2d5e3d517ec915ff2472f95967e504f392b7 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 11 Mar 2016 09:10:10 -0600 Subject: [PATCH 1/6] qt48: fix evaluation error on Darwin --- pkgs/development/libraries/qt-4.x/4.8/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/qt-4.x/4.8/default.nix b/pkgs/development/libraries/qt-4.x/4.8/default.nix index 07a7993a67f..788fb874140 100644 --- a/pkgs/development/libraries/qt-4.x/4.8/default.nix +++ b/pkgs/development/libraries/qt-4.x/4.8/default.nix @@ -53,7 +53,7 @@ stdenv.mkDerivation rec { ./libressl.patch (substituteAll { src = ./dlopen-absolute-paths.diff; - cups = cups.out; + cups = if cups != null then cups.out else null; icu = icu.out; libXfixes = libXfixes.out; glibc = stdenv.cc.libc.out; From 1fae9a36aa0c1dc5ac4521fe9cce2218a13e5845 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 11 Mar 2016 09:12:39 -0600 Subject: [PATCH 2/6] ppp: fix evaluation error on Darwin --- pkgs/tools/networking/ppp/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/networking/ppp/default.nix b/pkgs/tools/networking/ppp/default.nix index 7d3ced17b40..0f5de17c71b 100644 --- a/pkgs/tools/networking/ppp/default.nix +++ b/pkgs/tools/networking/ppp/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { [ ( substituteAll { src = ./nix-purity.patch; inherit libpcap; - glibc = stdenv.cc.libc.dev; + glibc = stdenv.cc.libc.dev or stdenv.cc.libc; }) # Without nonpriv.patch, pppd --version doesn't work when not run as # root. From 5ec07e4bf3bcd68db4f5e02a6012ed429ce1e045 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 11 Mar 2016 09:53:04 -0600 Subject: [PATCH 3/6] module-init-tools: disable on Darwin to fix evaluation error --- pkgs/os-specific/linux/module-init-tools/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/os-specific/linux/module-init-tools/default.nix b/pkgs/os-specific/linux/module-init-tools/default.nix index 2d6875d506a..ded6e77e43b 100644 --- a/pkgs/os-specific/linux/module-init-tools/default.nix +++ b/pkgs/os-specific/linux/module-init-tools/default.nix @@ -1,5 +1,7 @@ { stdenv, fetchurl, docbook2x, docbook_sgml_dtd_41 }: +assert (stdenv.lib.elem stdenv.system stdenv.lib.platforms.linux); + stdenv.mkDerivation { name = "module-init-tools-3.16"; @@ -31,5 +33,6 @@ stdenv.mkDerivation { meta = { homepage = http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/; description = "Tools for loading and managing Linux kernel modules"; + platforms = stdenv.lib.platforms.linux; }; } From 1f56abef8eb31b84658133c647a60b795e926913 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 11 Mar 2016 09:53:20 -0600 Subject: [PATCH 4/6] recoll: fix evaluation error on Darwin --- pkgs/applications/search/recoll/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/search/recoll/default.nix b/pkgs/applications/search/recoll/default.nix index 55fd3eba622..253b97aff1e 100644 --- a/pkgs/applications/search/recoll/default.nix +++ b/pkgs/applications/search/recoll/default.nix @@ -34,7 +34,7 @@ stdenv.mkDerivation rec { substituteInPlace $f --replace egrep ${gnugrep}/bin/egrep substituteInPlace $f --replace groff ${groff}/bin/groff substituteInPlace $f --replace gunzip ${gzip}/bin/gunzip - substituteInPlace $f --replace iconv ${libiconv.bin}/bin/iconv + substituteInPlace $f --replace iconv ${libiconv.bin or libiconv}/bin/iconv substituteInPlace $f --replace lyx ${lyx}/bin/lyx substituteInPlace $f --replace pdftotext ${poppler_utils.out}/bin/pdftotext substituteInPlace $f --replace pstotext ${ghostscript}/bin/ps2ascii From 2667e4f5d7b19df4b66c471bcc89aede579d8458 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 11 Mar 2016 10:30:28 -0600 Subject: [PATCH 5/6] make-bootstrap-tools: fix evaluation error on Darwin --- pkgs/stdenv/darwin/make-bootstrap-tools.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/stdenv/darwin/make-bootstrap-tools.nix b/pkgs/stdenv/darwin/make-bootstrap-tools.nix index dc52015c52d..e2ad9c2b8d7 100644 --- a/pkgs/stdenv/darwin/make-bootstrap-tools.nix +++ b/pkgs/stdenv/darwin/make-bootstrap-tools.nix @@ -62,7 +62,7 @@ rec { cp -d ${openssl.out}/lib/*.dylib $out/lib cp -d ${gnugrep.pcre.out}/lib/libpcre*.dylib $out/lib - cp -d ${libiconv.lib}/lib/lib*.dylib $out/lib + cp -d ${libiconv.lib or libiconv}/lib/lib*.dylib $out/lib cp -d ${gettext}/lib/libintl*.dylib $out/lib chmod +x $out/lib/libintl*.dylib cp -d ${ncurses.lib}/lib/libncurses*.dylib $out/lib From 42b1e8ee580712b1f4d3f194b79b2099667e648e Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Fri, 11 Mar 2016 10:30:45 -0600 Subject: [PATCH 6/6] ghc-6.10.2-binary: fix evaluation error on Darwin --- pkgs/development/compilers/ghc/6.10.2-binary.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/compilers/ghc/6.10.2-binary.nix b/pkgs/development/compilers/ghc/6.10.2-binary.nix index 5a3ddc97587..b3208209b05 100644 --- a/pkgs/development/compilers/ghc/6.10.2-binary.nix +++ b/pkgs/development/compilers/ghc/6.10.2-binary.nix @@ -47,7 +47,7 @@ stdenv.mkDerivation rec { '' else ""); configurePhase = '' - ./configure --prefix=$out --with-gmp-libraries=${gmp.out}/lib --with-gmp-includes=${gmp.dev}/include + ./configure --prefix=$out --with-gmp-libraries=${gmp.out}/lib --with-gmp-includes=${gmp.dev or gmp}/include ''; # Stripping combined with patchelf breaks the executables (they die