Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
114 lines
2.1 KiB
Nix
114 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitLab,
|
|
bzip2,
|
|
cmake,
|
|
curl,
|
|
db,
|
|
docbook_xml_dtd_45,
|
|
docbook_xsl,
|
|
doxygen,
|
|
dpkg,
|
|
gettext,
|
|
gnutls,
|
|
gtest,
|
|
libgcrypt,
|
|
libgpg-error,
|
|
libseccomp,
|
|
libtasn1,
|
|
libxslt,
|
|
lz4,
|
|
p11-kit,
|
|
perlPackages,
|
|
pkg-config,
|
|
triehash,
|
|
udev,
|
|
w3m,
|
|
xxHash,
|
|
xz,
|
|
zstd,
|
|
withDocs ? true,
|
|
withNLS ? true,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "apt";
|
|
version = "3.1.5";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "salsa.debian.org";
|
|
owner = "apt-team";
|
|
repo = "apt";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-hVnKI23HWwXkY174HT/Crz2V4FycaIyhhcS18D1zVy0=";
|
|
};
|
|
|
|
# cycle detection; lib can't be split
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"doc"
|
|
"man"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
dpkg # dpkg-architecture
|
|
gettext # msgfmt
|
|
gtest
|
|
(lib.getBin libxslt)
|
|
pkg-config
|
|
triehash
|
|
perlPackages.perl
|
|
]
|
|
++ lib.optionals withDocs [
|
|
docbook_xml_dtd_45
|
|
doxygen
|
|
perlPackages.Po4a
|
|
w3m
|
|
];
|
|
|
|
buildInputs = [
|
|
bzip2
|
|
curl
|
|
db
|
|
dpkg
|
|
gnutls
|
|
gtest
|
|
libgcrypt
|
|
libgpg-error
|
|
libseccomp
|
|
libtasn1
|
|
lz4
|
|
p11-kit
|
|
udev
|
|
xxHash
|
|
xz
|
|
zstd
|
|
]
|
|
++ lib.optionals withNLS [
|
|
gettext
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeOptionType "filepath" "BERKELEY_INCLUDE_DIRS" "${lib.getDev db}/include")
|
|
(lib.cmakeOptionType "filepath" "DPKG_DATADIR" "${dpkg}/share/dpkg")
|
|
(lib.cmakeOptionType "filepath" "DOCBOOK_XSL" "${docbook_xsl}/share/xml/docbook-xsl")
|
|
(lib.cmakeOptionType "filepath" "GNUTLS_INCLUDE_DIR" "${lib.getDev gnutls}/include")
|
|
(lib.cmakeFeature "DROOT_GROUP" "root")
|
|
(lib.cmakeBool "USE_NLS" withNLS)
|
|
(lib.cmakeBool "WITH_DOC" withDocs)
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://salsa.debian.org/apt-team/apt";
|
|
description = "Command-line package management tools used on Debian-based systems";
|
|
changelog = "https://salsa.debian.org/apt-team/apt/-/raw/${finalAttrs.version}/debian/changelog";
|
|
license = with lib.licenses; [ gpl2Plus ];
|
|
mainProgram = "apt";
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|