Skip to content

Commit

Permalink
Merge pull request #266030 from nevivurn/feat/apt-cacher-ng-glibc
Browse files Browse the repository at this point in the history
apt-cacher-ng: fix build for glibc >= 2.38
  • Loading branch information
pbsds committed Nov 10, 2023
2 parents eb62077 + dda958b commit 32a49bf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkgs/servers/http/apt-cacher-ng/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{ lib, stdenv
{ lib
, stdenv
, bzip2
, cmake
, doxygen
, fetchurl
, fetchpatch
, fuse
, libevent
, xz
Expand All @@ -23,6 +25,15 @@ stdenv.mkDerivation rec {
sha256 = "0pwsj9rf6a6q7cnfbpcrfq2gjcy7sylqzqqr49g2zi39lrrh8533";
};

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=";
})
];

nativeBuildInputs = [ cmake doxygen pkg-config ];
buildInputs = [ bzip2 fuse libevent xz openssl systemd tcp_wrappers zlib c-ares ];

Expand Down

0 comments on commit 32a49bf

Please sign in to comment.