Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 17.09 990 B view raw
1{ stdenv, lib, fetchFromGitHub, pkgconfig, cmake 2, dbus, networkmanager, spidermonkey_38, pcre, python2, python3 }: 3 4stdenv.mkDerivation rec { 5 name = "libproxy-${version}"; 6 version = "0.4.15"; 7 8 src = fetchFromGitHub { 9 owner = "libproxy"; 10 repo = "libproxy"; 11 rev = version; 12 sha256 = "10swd3x576pinx33iwsbd4h15fbh2snmfxzcmab4c56nb08qlbrs"; 13 }; 14 15 outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs 16 17 nativeBuildInputs = [ pkgconfig cmake ]; 18 19 buildInputs = [ dbus networkmanager spidermonkey_38 pcre python2 python3 ]; 20 21 preConfigure = '' 22 cmakeFlagsArray+=( 23 "-DWITH_MOZJS=ON" 24 "-DPYTHON2_SITEPKG_DIR=$out/${python2.sitePackages}" 25 "-DPYTHON3_SITEPKG_DIR=$out/${python3.sitePackages}" 26 ) 27 ''; 28 29 meta = with stdenv.lib; { 30 platforms = platforms.linux; 31 license = licenses.lgpl21; 32 homepage = http://libproxy.github.io/libproxy/; 33 description = "A library that provides automatic proxy configuration management"; 34 }; 35}