@@ -1,28 +1,30 @@
11{ stdenv, lib, fetchFromGitHub, pkgconfig, cmake
2−, dbus, networkmanager, webkitgtk216x, pcre, python2 }:
2+, dbus, networkmanager, spidermonkey_38, pcre, python2, python3 }:
33
44stdenv.mkDerivation rec {
55 name = "libproxy-${version}";
6− version = "0.4.13";
6+ version = "0.4.15";
77
88 src = fetchFromGitHub {
99 owner = "libproxy";
1010 repo = "libproxy";
1111 rev = version;
12− sha256 = "0yg4wr44ync6x3p107ic00m1l04xqhni9jn1vzvkw3nfjd0k6f92";
12+ sha256 = "10swd3x576pinx33iwsbd4h15fbh2snmfxzcmab4c56nb08qlbrs";
1313 };
1414
1515 outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs
1616
1717 nativeBuildInputs = [ pkgconfig cmake ];
1818
19− buildInputs = [ dbus networkmanager webkitgtk216x pcre ];
19+ buildInputs = [ dbus networkmanager spidermonkey_38 pcre python2 python3 ];
2020
21− cmakeFlags = [
22− "-DWITH_WEBKIT3=ON"
23− "-DWITH_MOZJS=OFF"
24− "-DPYTHON_SITEPKG_DIR=$(out)/${python2.sitePackages}"
25− ];
21+ preConfigure = ''
22+ cmakeFlagsArray+=(
23+ "-DWITH_MOZJS=ON"
24+ "-DPYTHON2_SITEPKG_DIR=$out/${python2.sitePackages}"
25+ "-DPYTHON3_SITEPKG_DIR=$out/${python3.sitePackages}"
26+ )
27+ '';
2628
2729 meta = with stdenv.lib; {
2830 platforms = platforms.linux;