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.
This commit is contained in:
Benjamin Staffin 2016-09-05 01:14:36 -04:00
parent 224889e452
commit 2e88851c61

View file

@ -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 ];
};
}