bfbfe941ab
Lots of packages can use it. Here is the list: - jackmix - klick - mixx - nova-filters - rhvoice - giv - mypaint - swift-im - bombono - mapnik - serf - nuitka - pyexiv2 - godot - hammer - toluapp - btanks - dxx-rebirth - endless-sky - globulation - the-powder-toy - fceux - gpsd - mongodb - rippled - mariadb - lprof
39 lines
1.1 KiB
Nix
39 lines
1.1 KiB
Nix
{ stdenv, fetchurl, apr, scons, openssl, aprutil, zlib, kerberos
|
|
, pkgconfig, libiconv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "serf-1.3.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.apache.org/dist/serf/${name}.tar.bz2";
|
|
sha256 = "1k47gbgpp52049andr28y28nbwh9m36bbb0g8p0aka3pqlhjv72l";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig scons ];
|
|
buildInputs = [ apr openssl aprutil zlib libiconv ]
|
|
++ stdenv.lib.optional (!stdenv.isCygwin) kerberos;
|
|
|
|
patches = [ ./scons.patch ];
|
|
|
|
prefixKey = "PREFIX=";
|
|
|
|
preConfigure = ''
|
|
sconsFlags+=" APR=$(echo ${apr.dev}/bin/*-config)"
|
|
sconsFlags+=" APU=$(echo ${aprutil.dev}/bin/*-config)"
|
|
sconsFlags+=" CC=$CC"
|
|
sconsFlags+=" OPENSSL=${openssl}"
|
|
sconsFlags+=" ZLIB=${zlib}"
|
|
'' + stdenv.lib.optionalString (!stdenv.isCygwin) ''
|
|
sconsFlags+=" GSSAPI=${kerberos.dev}"
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "HTTP client library based on APR";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ orivej raskin ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|