summary refs log tree commit diff
path: root/pkgs/servers/http/apt-cacher-ng/default.nix
blob: 8958b51e873ad1ef15442c167616244ee8379f41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ stdenv, fetchurl, cmake, doxygen, zlib, openssl, bzip2, pkgconfig, libpthreadstubs }:

stdenv.mkDerivation rec {
  name = "apt-cacher-ng-${version}";
  version = "0.9.1";

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

  NIX_LDFLAGS = "-lpthread";
  nativeBuildInputs = [ cmake doxygen pkgconfig ];
  buildInputs = [ zlib openssl bzip2 libpthreadstubs ];

  meta = with stdenv.lib; {
    description = "A caching proxy specialized for linux distribution files";
    homepage = https://www.unix-ag.uni-kl.de/~bloch/acng/;
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.makefu ];
  };
}