3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #150226 from Mic92/dpkg

This commit is contained in:
Janne Heß 2021-12-14 11:50:55 +01:00 committed by GitHub
commit d71be4f43c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,14 @@
{ lib, stdenv, fetchurl, perl, zlib, bzip2, xz, makeWrapper, coreutils }:
{ lib, stdenv, fetchurl, perl, zlib, bzip2, xz, zstd
, makeWrapper, coreutils, autoreconfHook, pkg-config
}:
stdenv.mkDerivation rec {
pname = "dpkg";
version = "1.20.9";
version = "1.20.9ubuntu2";
src = fetchurl {
url = "mirror://debian/pool/main/d/dpkg/dpkg_${version}.tar.xz";
sha256 = "sha256-XOJCgw8hO1Yg8I5sQYOtse9Nydoo0xmIonyHxx/lNM4=";
url = "mirror://ubuntu/pool/main/d/dpkg/dpkg_${version}.tar.xz";
sha256 = "sha256-BuCofGpi9R0cyhvkZqu9IxupqZvZhbE2J/B4wgUqMQw=";
};
configureFlags = [
@ -17,6 +19,8 @@ stdenv.mkDerivation rec {
(lib.optionalString stdenv.isDarwin "--disable-start-stop-daemon")
];
enableParallelBuilding = true;
preConfigure = ''
# Nice: dpkg has a circular dependency on itself. Its configure
# script calls scripts/dpkg-architecture, which calls "dpkg" in
@ -49,8 +53,8 @@ stdenv.mkDerivation rec {
--replace '"diff"' \"${coreutils}/bin/diff\"
'';
buildInputs = [ perl zlib bzip2 xz ];
nativeBuildInputs = [ makeWrapper perl ];
buildInputs = [ perl zlib bzip2 xz zstd ];
nativeBuildInputs = [ makeWrapper perl autoreconfHook pkg-config ];
postInstall =
''