2012-08-02 21:44:50 +02:00
|
|
|
{ stdenv, fetchurl, networkmanager, pptp, ppp, intltool, pkgconfig, substituteAll
|
2014-05-20 20:30:44 +02:00
|
|
|
, withGnome ? true, gnome3 }:
|
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";
|
2014-01-03 13:39:27 +01:00
|
|
|
version = "0.9.8.4";
|
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";
|
2014-01-02 18:01:54 +01:00
|
|
|
sha256 = "1s6wmznd6azvg028x8y3syniqy9j7nmx5j71w2wc6mk0f9pqzflp";
|
2012-03-11 15:07:37 +01:00
|
|
|
};
|
2011-09-14 17:50:14 +02:00
|
|
|
|
2012-03-11 15:07:37 +01:00
|
|
|
buildInputs = [ networkmanager pptp ppp ]
|
2014-05-20 20:30:44 +02:00
|
|
|
++ stdenv.lib.optionals withGnome [ gnome3.gtk gnome3.libgnome_keyring ];
|
2011-09-14 17:50:14 +02:00
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ intltool pkgconfig ];
|
2011-09-14 17:50:14 +02:00
|
|
|
|
2012-03-11 15:07:37 +01:00
|
|
|
configureFlags =
|
2014-05-20 20:30:44 +02:00
|
|
|
if withGnome then "--with-gnome --with-gtkver=3" else "--without-gnome";
|
2012-03-11 15:07:37 +01:00
|
|
|
|
2013-06-04 16:34:59 +02:00
|
|
|
postConfigure = "sed 's/-Werror//g' -i Makefile */Makefile";
|
|
|
|
|
2012-08-02 21:44:50 +02:00
|
|
|
patches =
|
|
|
|
[ ( substituteAll {
|
|
|
|
src = ./pptp-purity.patch;
|
|
|
|
inherit ppp pptp;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2012-03-11 15:07:37 +01:00
|
|
|
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
|
|
|
}
|