dpkg: switch to ubuntu version

The ubuntu version now supports zstd compression, which was not yet
added to upstream. This is a problem when we want to unpack newer
archives from ubuntu because they switched to zstd by default.

Upstream discussions:

https://www.mail-archive.com/debian-dpkg-bugs@lists.debian.org/msg18552.html
main
Jörg Thalheim 3 years ago
parent b4f7deb2fa
commit fc3f1aa679
  1. 16
      pkgs/tools/package-management/dpkg/default.nix

@ -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 =
''

Loading…
Cancel
Save