2012-03-11 15:07:37 +01:00
|
|
|
{ stdenv, fetchurl, networkmanager, pptp, ppp, intltool, pkgconfig
|
|
|
|
, withGnome ? false, gtk, libgnome_keyring }:
|
2011-09-14 17:50:14 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-03-11 15:07:37 +01:00
|
|
|
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
|
|
|
pname = "NetworkManager-pptp";
|
|
|
|
version = "0.9.2.0";
|
2011-09-14 17:50:14 +02:00
|
|
|
|
2012-03-11 15:07:37 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/${pname}/0.9/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "1fj2v8pjc17m9calckgc2jm8wbimwga8if4r21walf9xysvhsd1b";
|
|
|
|
};
|
2011-09-14 17:50:14 +02:00
|
|
|
|
2012-03-11 15:07:37 +01:00
|
|
|
buildInputs = [ networkmanager pptp ppp ]
|
|
|
|
++ stdenv.lib.optionals withGnome [ gtk libgnome_keyring ];
|
2011-09-14 17:50:14 +02:00
|
|
|
|
2012-01-18 21:53:01 +01:00
|
|
|
buildNativeInputs = [ intltool pkgconfig ];
|
2011-09-14 17:50:14 +02:00
|
|
|
|
2012-03-11 15:07:37 +01:00
|
|
|
configureFlags =
|
|
|
|
if withGnome then "--with-gnome --with-gtkver=2" else "--without-gnome";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "PPtP plugin for NetworkManager";
|
2012-03-11 16:20:12 +01:00
|
|
|
inherit (networkmanager.meta) maintainers platforms;
|
2012-03-11 15:07:37 +01:00
|
|
|
};
|
2011-09-14 17:50:14 +02:00
|
|
|
}
|