libproxy: fix compilation

also use webkit backend (webkitgtk is also a more common gnome/gtk)
Changelog: https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/NEWS?h=1.6.2
This commit is contained in:
Jörg Thalheim 2017-04-04 13:37:55 +02:00
parent 9987abca8e
commit 43c0530ca6
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
1 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{ stdenv, lib, fetchFromGitHub, pkgconfig, cmake
, dbus, networkmanager, spidermonkey_1_8_5 }:
, dbus, networkmanager, webkitgtk214x, pcre, python2 }:
stdenv.mkDerivation rec {
name = "libproxy-${version}";
@ -16,7 +16,13 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ dbus networkmanager spidermonkey_1_8_5 ];
buildInputs = [ dbus networkmanager webkitgtk214x pcre ];
cmakeFlags = [
"-DWITH_WEBKIT3=ON"
"-DWITH_MOZJS=OFF"
"-DPYTHON_SITEPKG_DIR=$(out)/${python2.sitePackages}"
];
meta = with stdenv.lib; {
platforms = platforms.linux;