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