15 stdenv.mkDerivation rec {
20 url = "mirror://apache/serf/${pname}-${version}.tar.bz2";
21 hash = "sha256-voHvCLqiUW7Np2p3rffe97wyJ+61eLmjO0X3tB3AZOY=";
24 nativeBuildInputs = [ pkg-config scons ];
25 buildInputs = [ apr openssl aprutil zlib libiconv ]
26 ++ lib.optional (!stdenv.isCygwin) libkrb5;
32 url = "https://src.fedoraproject.org/rpms/libserf/raw/rawhide/f/libserf-1.3.9-errgetfunc.patch";
33 hash = "sha256-FQJvXOIZ0iItvbbcu4kR88j74M7fOi7C/0NN3o1/ub4=";
37 prefixKey = "PREFIX=";
40 sconsFlags+=" APR=$(echo ${apr.dev}/bin/*-config)"
41 sconsFlags+=" APU=$(echo ${aprutil.dev}/bin/*-config)"
43 sconsFlags+=" OPENSSL=${openssl}"
44 sconsFlags+=" ZLIB=${zlib}"
45 '' + lib.optionalString (!stdenv.isCygwin) ''
46 sconsFlags+=" GSSAPI=${libkrb5.dev}"
49 enableParallelBuilding = true;
52 description = "HTTP client library based on APR";
53 homepage = "https://serf.apache.org/";
54 license = licenses.asl20;
55 maintainers = with maintainers; [ orivej raskin ];
56 platforms = platforms.linux ++ platforms.darwin;