lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v206 47 lines 1.5 kB view raw
1{ stdenv, fetchurl, vpnc, intltool, pkgconfig, networkmanager, libsecret 2, withGnome ? true, gnome3, procps, module_init_tools }: 3 4stdenv.mkDerivation rec { 5 name = "${pname}${if withGnome then "-gnome" else ""}-${version}"; 6 pname = "NetworkManager-vpnc"; 7 version = networkmanager.version; 8 9 src = fetchurl { 10 url = "mirror://gnome/sources/${pname}/1.0/${pname}-${version}.tar.xz"; 11 sha256 = "0055vshgnva969vb91k8zpdan34r9gy0ck3q3b9b616k0p2vy5ry"; 12 }; 13 14 buildInputs = [ vpnc networkmanager libsecret ] 15 ++ stdenv.lib.optionals withGnome [ gnome3.gtk gnome3.libgnome_keyring 16 gnome3.networkmanagerapplet ]; 17 18 nativeBuildInputs = [ intltool pkgconfig ]; 19 20 configureFlags = [ 21 "${if withGnome then "--with-gnome --with-gtkver=3" else "--without-gnome"}" 22 "--disable-static" 23 ]; 24 25 preConfigure = '' 26 substituteInPlace "configure" \ 27 --replace "/sbin/sysctl" "${procps}/sbin/sysctl" 28 substituteInPlace "src/nm-vpnc-service.c" \ 29 --replace "/sbin/vpnc" "${vpnc}/sbin/vpnc" \ 30 --replace "/sbin/modprobe" "${module_init_tools}/sbin/modprobe" 31 ''; 32 33 postConfigure = '' 34 substituteInPlace "./auth-dialog/Makefile" \ 35 --replace "-Wstrict-prototypes" "" \ 36 --replace "-Werror" "" 37 substituteInPlace "properties/Makefile" \ 38 --replace "-Wstrict-prototypes" "" \ 39 --replace "-Werror" "" 40 ''; 41 42 meta = { 43 description = "NetworkManager's VPNC plugin"; 44 inherit (networkmanager.meta) maintainers platforms; 45 }; 46} 47