2023-11-07 09:42:23 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2017-11-22 01:36:37 +00:00
|
|
|
, bzip2
|
|
|
|
, cmake
|
|
|
|
, doxygen
|
|
|
|
, fetchurl
|
2023-11-07 09:42:23 +00:00
|
|
|
, fetchpatch
|
2017-11-22 01:36:37 +00:00
|
|
|
, fuse
|
2020-05-06 17:09:31 +00:00
|
|
|
, libevent
|
2021-03-14 18:12:53 +00:00
|
|
|
, xz
|
2017-11-22 01:36:37 +00:00
|
|
|
, openssl
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2017-11-22 01:36:37 +00:00
|
|
|
, systemd
|
|
|
|
, tcp_wrappers
|
|
|
|
, zlib
|
2022-02-16 12:26:53 +00:00
|
|
|
, c-ares
|
2017-11-22 01:36:37 +00:00
|
|
|
}:
|
2015-11-16 13:17:39 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "apt-cacher-ng";
|
2022-02-16 12:26:53 +00:00
|
|
|
version = "3.7.4";
|
2015-11-16 13:17:39 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-10-09 10:03:59 +00:00
|
|
|
url = "mirror://debian/pool/main/a/apt-cacher-ng/apt-cacher-ng_${version}.orig.tar.xz";
|
2022-02-16 12:26:53 +00:00
|
|
|
sha256 = "0pwsj9rf6a6q7cnfbpcrfq2gjcy7sylqzqqr49g2zi39lrrh8533";
|
2015-11-16 13:17:39 +00:00
|
|
|
};
|
|
|
|
|
2023-11-07 09:42:23 +00:00
|
|
|
patches = [
|
|
|
|
# this patch fixes the build for glibc >= 2.38
|
|
|
|
(fetchpatch {
|
|
|
|
name = "strlcpy-glibc238.patch";
|
|
|
|
url = "https://bugs.debian.org/cgi-bin/bugreport.cgi?att=0;bug=1052360;msg=10";
|
|
|
|
hash = "sha256-uhQj+ZcHCV36Tm0pF/+JG59bSaRdTZCrMcKL3YhZTk8=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ cmake doxygen pkg-config ];
|
2022-02-16 12:26:53 +00:00
|
|
|
buildInputs = [ bzip2 fuse libevent xz openssl systemd tcp_wrappers zlib c-ares ];
|
2015-11-16 13:17:39 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-02-16 12:26:53 +00:00
|
|
|
description = "Caching proxy specialized for Linux distribution files";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "apt-cacher-ng";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.unix-ag.uni-kl.de/~bloch/acng/";
|
2022-02-16 12:26:53 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2016-04-07 16:57:12 +00:00
|
|
|
platforms = platforms.linux;
|
2016-03-17 14:55:53 +00:00
|
|
|
maintainers = [ maintainers.makefu ];
|
2015-11-16 13:17:39 +00:00
|
|
|
};
|
|
|
|
}
|