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

Discussion:
Describe the bug Between and , apt somehow got reintroduced into the repository () but without an entry in all- It could be bumped to 2.1.18 - Out-of-date package report It doesn't compile for the same reason for which it was originally removed from Nixpkgs and I don't know how to fix it - bug report I need apt for another package to work properly (apt -python-apt -python-debian -click: ) - packaging request? To Reproduce for apt package -not packaged in Nixpkgs repo -but package code exists? commit/PR history - (staging) removed all apt code, (master) bumped apt Expected behavior apt being either in all- or missing from the repository completely. Preferably, a working apt derivation. Additional context Notify maintainers package maintainer for apt last bump to package originally removed the package Metadata system: host os: multi-user?: sandbox: version: channels(root): channels(bt1cn): nixpkgs: Maintainer information:
FWIW, I briefly looked into this: Switching to gcc9 hides the detailed error message, but compilation still fails.
I looked into this a little. fixes the build, but the binary that can be produced is far from functional. reveals that apt expects several other files relative to its install location to exist. As the package is currently defunct and unreachable, I think it is best to remove it.
I marked this as stale due to inactivity. &rarr;
Bump, still exists.