summary refs log tree commit diff
path: root/pkgs/tools/package-management/dpkg
diff options
context:
space:
mode:
authorBenjamin Staffin <benley@gmail.com>2016-09-05 01:14:36 -0400
committerBenjamin Staffin <benley@gmail.com>2016-09-05 01:14:36 -0400
commit2e88851c618696712016793177ccd26211851f98 (patch)
treed48a15a0a7f9ca0403459df4be9fea5289008a73 /pkgs/tools/package-management/dpkg
parent224889e452fcf1067a94bb014dd266aca2c3eec8 (diff)
downloadnixlib-2e88851c618696712016793177ccd26211851f98.tar
nixlib-2e88851c618696712016793177ccd26211851f98.tar.gz
nixlib-2e88851c618696712016793177ccd26211851f98.tar.bz2
nixlib-2e88851c618696712016793177ccd26211851f98.tar.lz
nixlib-2e88851c618696712016793177ccd26211851f98.tar.xz
nixlib-2e88851c618696712016793177ccd26211851f98.tar.zst
nixlib-2e88851c618696712016793177ccd26211851f98.zip
dpkg: Fix the build on Darwin
There are still some bugs and quirks, but this gets dpkg building at
least, and some parts of it are useful.
Diffstat (limited to 'pkgs/tools/package-management/dpkg')
-rw-r--r--pkgs/tools/package-management/dpkg/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/package-management/dpkg/default.nix b/pkgs/tools/package-management/dpkg/default.nix
index a7bda2578ae4..ce7208982555 100644
--- a/pkgs/tools/package-management/dpkg/default.nix
+++ b/pkgs/tools/package-management/dpkg/default.nix
@@ -20,6 +20,8 @@ stdenv.mkDerivation rec {
     "--disable-dselect"
     "--with-admindir=/var/lib/dpkg"
     "PERL_LIBDIR=$(out)/${perl.libPrefix}"
+    (stdenv.lib.optionalString stdenv.isDarwin "--disable-linker-optimisations")
+    (stdenv.lib.optionalString stdenv.isDarwin "--disable-start-stop-daemon")
   ];
 
   preConfigure = ''
@@ -55,7 +57,7 @@ stdenv.mkDerivation rec {
     description = "The Debian package manager";
     homepage = http://wiki.debian.org/Teams/Dpkg;
     license = licenses.gpl2Plus;
-    platforms = platforms.linux;
+    platforms = platforms.unix;
     maintainers = with maintainers; [ mornfall nckx ];
   };
 }