537a71a51e
also openvpn plugin updated to the same version as NetworkManager
35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{ stdenv, fetchurl, networkmanager, pptp, ppp, intltool, pkgconfig, substituteAll
|
|
, withGnome ? false, gtk, libgnome_keyring }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
|
pname = "NetworkManager-pptp";
|
|
version = networkmanager.version;
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/0.9/${pname}-${version}.tar.xz";
|
|
sha256 = "7f46ea61376d13d03685eca3f26a26e0022f6e92e6f1fc356034ca9717eb6dac";
|
|
};
|
|
|
|
buildInputs = [ networkmanager pptp ppp ]
|
|
++ stdenv.lib.optionals withGnome [ gtk libgnome_keyring ];
|
|
|
|
nativeBuildInputs = [ intltool pkgconfig ];
|
|
|
|
configureFlags =
|
|
if withGnome then "--with-gnome --with-gtkver=2" else "--without-gnome";
|
|
|
|
postConfigure = "sed 's/-Werror//g' -i Makefile */Makefile";
|
|
|
|
patches =
|
|
[ ( substituteAll {
|
|
src = ./pptp-purity.patch;
|
|
inherit ppp pptp;
|
|
})
|
|
];
|
|
|
|
meta = {
|
|
description = "PPtP plugin for NetworkManager";
|
|
inherit (networkmanager.meta) maintainers platforms;
|
|
};
|
|
}
|