lol

dpkg: fix paths and disable start-stop-daemon

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>

authored by

Paul Meyer and committed by
Anderson Torres
48f8f370 91a22f76

+22 -7
+22 -7
pkgs/tools/package-management/dpkg/default.nix
··· 1 - { lib, stdenv, fetchgit, perl, gnutar, zlib, bzip2, xz, zstd 2 - , libmd, makeWrapper, coreutils, autoreconfHook, pkg-config 1 + { lib 2 + , stdenv 3 + , fetchgit 4 + , perl 5 + , gnutar 6 + , zlib 7 + , bzip2 8 + , xz 9 + , zstd 10 + , libmd 11 + , makeWrapper 12 + , coreutils 13 + , autoreconfHook 14 + , pkg-config 15 + , diffutils 16 + , glibc 3 17 }: 4 18 5 19 stdenv.mkDerivation rec { ··· 14 28 15 29 configureFlags = [ 16 30 "--disable-dselect" 31 + "--disable-start-stop-daemon" 17 32 "--with-admindir=/var/lib/dpkg" 18 33 "PERL_LIBDIR=$(out)/${perl.libPrefix}" 19 34 "TAR=${gnutar}/bin/tar" 20 - (lib.optionalString stdenv.isDarwin "--disable-linker-optimisations") 21 - (lib.optionalString stdenv.isDarwin "--disable-start-stop-daemon") 22 - ]; 35 + ] ++ lib.optional stdenv.isDarwin "--disable-linker-optimisations"; 23 36 24 37 enableParallelBuilding = true; 25 38 ··· 37 50 done 38 51 ''; 39 52 40 - patchPhase = '' 53 + postPatch = '' 41 54 patchShebangs . 42 55 43 56 # Dpkg commands sometimes calls out to shell commands ··· 52 65 --replace '"debsig-verify"' \"$out/bin/debsig-verify\" \ 53 66 --replace '"rm"' \"${coreutils}/bin/rm\" \ 54 67 --replace '"cat"' \"${coreutils}/bin/cat\" \ 55 - --replace '"diff"' \"${coreutils}/bin/diff\" 68 + --replace '"diff"' \"${diffutils}/bin/diff\" 69 + substituteInPlace src/main/help.c \ 70 + --replace '"ldconfig"' \"${glibc.bin}/bin/ldconfig\" 56 71 ''; 57 72 58 73 buildInputs = [ perl zlib bzip2 xz zstd libmd ];