apt: 1.4.6 -> 1.8.4
apt: 1.4.6 -> 1.8.4 (#69571) apt: cleanup * add meta.description and point meta.homepage to Debian team * use nix cmakeFlags array * fetch from Debian mirrors * move gtest and xsltproc to nativeBuildInputs apt: produce usable binaries * remove ninja from native build inputs and build with plain cmake * add libtasn1 to dependencies as gnutls needs it
This commit is contained in:
parent
e1e381f02f
commit
6c45ecfdbe
@ -1,4 +1,5 @@
|
|||||||
{ stdenv, lib, fetchzip, pkgconfig, cmake, perlPackages, curl, gtest, lzma, bzip2, lz4
|
{ stdenv, lib, fetchurl, pkgconfig, cmake, perlPackages, curl, gtest
|
||||||
|
, gnutls, libtasn1, lzma, bzip2, lz4, zstd, libseccomp, udev
|
||||||
, db, dpkg, libxslt, docbook_xsl, docbook_xml_dtd_45
|
, db, dpkg, libxslt, docbook_xsl, docbook_xml_dtd_45
|
||||||
|
|
||||||
# used when WITH_DOC=ON
|
# used when WITH_DOC=ON
|
||||||
@ -15,39 +16,37 @@
|
|||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "apt";
|
pname = "apt";
|
||||||
|
version = "1.8.4";
|
||||||
|
|
||||||
version = "1.4.6";
|
src = fetchurl {
|
||||||
|
url = "mirror://debian/pool/main/a/apt/apt_${version}.tar.xz";
|
||||||
src = fetchzip {
|
sha256 = "0gn4srqaaym85gc8nldqkv01477kdwr136an2nlpbdrsbx3y83zl";
|
||||||
url = "https://launchpad.net/ubuntu/+archive/primary/+files/apt_${version}.tar.xz";
|
|
||||||
sha256 = "0ahwhmscrmnpvl1r732wg93dzkhv8c1sph2yrqgsrhr73c1616ix";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig cmake gtest libxslt.bin ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cmake perlPackages.perl curl gtest lzma bzip2 lz4 db dpkg libxslt.bin
|
perlPackages.perl curl gnutls libtasn1 lzma bzip2 lz4 zstd libseccomp udev db dpkg
|
||||||
] ++ lib.optionals withDocs [
|
] ++ lib.optionals withDocs [
|
||||||
doxygen perlPackages.Po4a w3m docbook_xml_dtd_45
|
doxygen perlPackages.Po4a w3m docbook_xml_dtd_45
|
||||||
] ++ lib.optionals withNLS [
|
] ++ lib.optionals withNLS [
|
||||||
gettext
|
gettext
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
cmakeFlags = [
|
||||||
cmakeFlagsArray+=(
|
"-DBERKELEY_DB_INCLUDE_DIRS=${db.dev}/include"
|
||||||
-DBERKELEY_DB_INCLUDE_DIRS=${db.dev}/include
|
"-DGNUTLS_INCLUDE_DIR=${gnutls.dev}/include"
|
||||||
-DDOCBOOK_XSL="${docbook_xsl}"/share/xml/docbook-xsl
|
"-DDOCBOOK_XSL=${docbook_xsl}/share/xml/docbook-xsl"
|
||||||
-DROOT_GROUP=root
|
"-DROOT_GROUP=root"
|
||||||
-DWITH_DOC=${if withDocs then "ON" else "OFF"}
|
"-DWITH_DOC=${if withDocs then "ON" else "OFF"}"
|
||||||
-DUSE_NLS=${if withNLS then "ON" else "OFF"}
|
"-DUSE_NLS=${if withNLS then "ON" else "OFF"}"
|
||||||
)
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "";
|
description = "Command-line package management tools used on Debian-based systems";
|
||||||
homepage = https://launchpad.net/ubuntu/+source/apt;
|
homepage = https://salsa.debian.org/apt-team/apt;
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with maintainers; [ cstrahan ];
|
maintainers = with maintainers; [ cstrahan ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user