Merge pull request #136483 from AndersonTorres/new-apt

apt: 1.8.4 -> 2.3.8
This commit is contained in:
Anderson Torres 2021-09-03 21:07:07 -03:00 committed by GitHub
commit 22fb1d38bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 109 additions and 23 deletions

View file

@ -0,0 +1,48 @@
{ lib
, stdenv
, fetchFromGitHub
, perlPackages
}:
stdenv.mkDerivation rec {
pname = "triehash";
version = "0.3";
src = fetchFromGitHub {
owner = "julian-klode";
repo = pname;
rev = "debian/0.3-3";
hash = "sha256-LxVcYj2WKHbhNu5x/DFkxQPOYrVkNvwiE/qcODq52Lc=";
};
nativeBuildInputs = [
perlPackages.perl
];
postPatch = ''
patchShebangs triehash.pl
'';
dontConfigure = true;
dontBuild = true;
installPhase = ''
runHook preInstall
install -d $out/bin $out/share/doc/${pname}/ $out/share/${pname}/
install triehash.pl $out/bin/triehash
install README.md $out/share/doc/${pname}/
cp -r tests/ $out/share/${pname}/tests/
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/julian-klode/triehash";
description = "Order-preserving minimal perfect hash function generator";
license = with licenses; mit;
maintainers = with maintainers; [ AndersonTorres ];
platforms = perlPackages.perl.meta.platforms;
};
}

View file

@ -1,50 +1,84 @@
{ stdenv, lib, fetchurl, pkg-config, cmake, perlPackages, curl, gtest
, gnutls, libtasn1, xz, bzip2, lz4, zstd, libseccomp, udev
, db, dpkg, libxslt, docbook_xsl, docbook_xml_dtd_45
# used when WITH_DOC=ON
, w3m
, doxygen
# used when WITH_NLS=ON
, gettext
# opts
, withDocs ? true
, withNLS ? true
{ lib
, stdenv
, fetchurl
, bzip2
, cmake
, curl
, db
, docbook_xml_dtd_45
, docbook_xsl
, dpkg
, gnutls
, gtest
, libgcrypt
, libseccomp
, libtasn1
, libxslt
, lz4
, perlPackages
, pkg-config
, triehash
, udev
, xxHash
, xz
, zstd
, withDocs ? true , w3m, doxygen
, withNLS ? true , gettext
}:
stdenv.mkDerivation rec {
pname = "apt";
version = "1.8.4";
version = "2.3.8";
src = fetchurl {
url = "mirror://debian/pool/main/a/apt/apt_${version}.tar.xz";
sha256 = "0gn4srqaaym85gc8nldqkv01477kdwr136an2nlpbdrsbx3y83zl";
hash = "sha256-SFrxQwx14xWLcV5EJNv5bRtWQdxNzMUPVxssd5qDfyw=";
};
nativeBuildInputs = [ pkg-config cmake gtest libxslt.bin ];
nativeBuildInputs = [
cmake
gtest
libxslt.bin
pkg-config
triehash
];
buildInputs = [
perlPackages.perl curl gnutls libtasn1 xz bzip2 lz4 zstd libseccomp udev db dpkg
bzip2
curl
db
dpkg
gnutls
libgcrypt
libseccomp
libtasn1
lz4
perlPackages.perl
udev
xxHash
xz
zstd
] ++ lib.optionals withDocs [
doxygen perlPackages.Po4a w3m docbook_xml_dtd_45
docbook_xml_dtd_45
doxygen
perlPackages.Po4a
w3m
] ++ lib.optionals withNLS [
gettext
];
cmakeFlags = [
"-DBERKELEY_DB_INCLUDE_DIRS=${db.dev}/include"
"-DGNUTLS_INCLUDE_DIR=${gnutls.dev}/include"
"-DBERKELEY_INCLUDE_DIRS=${db.dev}/include"
"-DDOCBOOK_XSL=${docbook_xsl}/share/xml/docbook-xsl"
"-DGNUTLS_INCLUDE_DIR=${gnutls.dev}/include"
"-DROOT_GROUP=root"
"-DWITH_DOC=${if withDocs then "ON" else "OFF"}"
"-DUSE_NLS=${if withNLS then "ON" else "OFF"}"
"-DWITH_DOC=${if withDocs then "ON" else "OFF"}"
];
meta = with lib; {
description = "Command-line package management tools used on Debian-based systems";
homepage = "https://salsa.debian.org/apt-team/apt";
description = "Command-line package management tools used on Debian-based systems";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ cstrahan ];

View file

@ -19032,6 +19032,8 @@ with pkgs;
tremor = callPackage ../development/libraries/tremor { };
triehash = callPackage ../tools/misc/triehash { };
trillian = callPackage ../tools/misc/trillian {
buildGoModule = buildGo115Module;
};
@ -31447,6 +31449,8 @@ with pkgs;
emu2 = callPackage ../misc/emulators/emu2 { };
apt = callPackage ../tools/package-management/apt { };
dpkg = callPackage ../tools/package-management/dpkg { };
dumb = callPackage ../misc/dumb { };