about summary refs log tree commit diff
path: root/pkgs/servers/http
diff options
context:
space:
mode:
authorYongun Seong <nevivurn@nevi.dev>2023-11-07 18:42:23 +0900
committerYongun Seong <nevivurn@nevi.dev>2023-11-07 18:42:23 +0900
commitdda958b638051cbc91941a761f341a7eb83e0bd2 (patch)
tree82c4a637560fe3d530109899d013b0a46d43b415 /pkgs/servers/http
parenta845c1b2d62614f80de711d7cecbd0688c53429e (diff)
apt-cacher-ng: fix build for glibc >= 2.38
Diffstat (limited to 'pkgs/servers/http')
-rw-r--r--pkgs/servers/http/apt-cacher-ng/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/servers/http/apt-cacher-ng/default.nix b/pkgs/servers/http/apt-cacher-ng/default.nix
index 9cdc0c58ee442..dd3648961439b 100644
--- a/pkgs/servers/http/apt-cacher-ng/default.nix
+++ b/pkgs/servers/http/apt-cacher-ng/default.nix
@@ -1,8 +1,10 @@
-{ lib, stdenv
+{ lib
+, stdenv
 , bzip2
 , cmake
 , doxygen
 , fetchurl
+, fetchpatch
 , fuse
 , libevent
 , xz
@@ -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 ];