From 2e88851c618696712016793177ccd26211851f98 Mon Sep 17 00:00:00 2001 From: Benjamin Staffin Date: Mon, 5 Sep 2016 01:14:36 -0400 Subject: [PATCH] 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. --- pkgs/tools/package-management/dpkg/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ]; }; }