1{ stdenv, lib, fetchFromGitHub, pkgconfig, cmake
2, dbus, networkmanager, webkitgtk216x, pcre, python2 }:
3
4stdenv.mkDerivation rec {
5 name = "libproxy-${version}";
6 version = "0.4.13";
7
8 src = fetchFromGitHub {
9 owner = "libproxy";
10 repo = "libproxy";
11 rev = version;
12 sha256 = "0yg4wr44ync6x3p107ic00m1l04xqhni9jn1vzvkw3nfjd0k6f92";
13 };
14
15 outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs
16
17 nativeBuildInputs = [ pkgconfig cmake ];
18
19 buildInputs = [ dbus networkmanager webkitgtk216x pcre ];
20
21 cmakeFlags = [
22 "-DWITH_WEBKIT3=ON"
23 "-DWITH_MOZJS=OFF"
24 "-DPYTHON_SITEPKG_DIR=$(out)/${python2.sitePackages}"
25 ];
26
27 meta = with stdenv.lib; {
28 platforms = platforms.linux;
29 license = licenses.lgpl21;
30 homepage = http://libproxy.github.io/libproxy/;
31 description = "A library that provides automatic proxy configuration management";
32 };
33}