mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
dpkg: fix paths and disable start-stop-daemon
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
91a22f76cd
commit
48f8f3700a
@ -1,5 +1,19 @@
|
||||
{ lib, stdenv, fetchgit, perl, gnutar, zlib, bzip2, xz, zstd
|
||||
, libmd, makeWrapper, coreutils, autoreconfHook, pkg-config
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchgit
|
||||
, perl
|
||||
, gnutar
|
||||
, zlib
|
||||
, bzip2
|
||||
, xz
|
||||
, zstd
|
||||
, libmd
|
||||
, makeWrapper
|
||||
, coreutils
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, diffutils
|
||||
, glibc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -14,12 +28,11 @@ stdenv.mkDerivation rec {
|
||||
|
||||
configureFlags = [
|
||||
"--disable-dselect"
|
||||
"--disable-start-stop-daemon"
|
||||
"--with-admindir=/var/lib/dpkg"
|
||||
"PERL_LIBDIR=$(out)/${perl.libPrefix}"
|
||||
"TAR=${gnutar}/bin/tar"
|
||||
(lib.optionalString stdenv.isDarwin "--disable-linker-optimisations")
|
||||
(lib.optionalString stdenv.isDarwin "--disable-start-stop-daemon")
|
||||
];
|
||||
] ++ lib.optional stdenv.isDarwin "--disable-linker-optimisations";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
@ -37,7 +50,7 @@ stdenv.mkDerivation rec {
|
||||
done
|
||||
'';
|
||||
|
||||
patchPhase = ''
|
||||
postPatch = ''
|
||||
patchShebangs .
|
||||
|
||||
# Dpkg commands sometimes calls out to shell commands
|
||||
@ -52,7 +65,9 @@ stdenv.mkDerivation rec {
|
||||
--replace '"debsig-verify"' \"$out/bin/debsig-verify\" \
|
||||
--replace '"rm"' \"${coreutils}/bin/rm\" \
|
||||
--replace '"cat"' \"${coreutils}/bin/cat\" \
|
||||
--replace '"diff"' \"${coreutils}/bin/diff\"
|
||||
--replace '"diff"' \"${diffutils}/bin/diff\"
|
||||
substituteInPlace src/main/help.c \
|
||||
--replace '"ldconfig"' \"${glibc.bin}/bin/ldconfig\"
|
||||
'';
|
||||
|
||||
buildInputs = [ perl zlib bzip2 xz zstd libmd ];
|
||||
|
Loading…
Reference in New Issue
Block a user