Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apt-cacher-ng: fix build with ubuntu patch for HAVE_STRLCPY #266542

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions pkgs/servers/http/apt-cacher-ng/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
, tcp_wrappers
, zlib
, c-ares
, fetchpatch
}:

stdenv.mkDerivation rec {
Expand All @@ -20,12 +21,18 @@ stdenv.mkDerivation rec {

src = fetchurl {
url = "https://ftp.debian.org/debian/pool/main/a/apt-cacher-ng/apt-cacher-ng_${version}.orig.tar.xz";
sha256 = "0pwsj9rf6a6q7cnfbpcrfq2gjcy7sylqzqqr49g2zi39lrrh8533";
sha256 = "sha256-YxQEc6ZpxC9eIhnjj6nXxzP5BHaZ3eUsO9go43KSml8=";
};

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

patches = [
( fetchpatch {
name = "Adjust HAVE_STRLCPY macro with glib 2.38";
url = "https://git.launchpad.net/ubuntu/+source/apt-cacher-ng/plain/debian/patches/0001-Adjust-HAVE_STRLCPY-macro-check.patch";
sha256 = "sha256-uhQj+ZcHCV36Tm0pF/+JG59bSaRdTZCrMcKL3YhZTk8=";
})
];
meta = with lib; {
description = "A caching proxy specialized for Linux distribution files";
homepage = "https://www.unix-ag.uni-kl.de/~bloch/acng/";
Expand Down