2012-08-02 19:44:50 +00:00
|
|
|
{ stdenv, fetchurl, networkmanager, pptp, ppp, intltool, pkgconfig, substituteAll
|
2015-04-08 15:45:41 +00:00
|
|
|
, libsecret, withGnome ? true, gnome3 }:
|
2011-09-14 15:50:14 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-03-11 14:07:37 +00:00
|
|
|
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
|
|
|
pname = "NetworkManager-pptp";
|
2015-04-08 15:45:41 +00:00
|
|
|
version = networkmanager.version;
|
2011-09-14 15:50:14 +00:00
|
|
|
|
2012-03-11 14:07:37 +00:00
|
|
|
src = fetchurl {
|
2015-04-08 15:45:41 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/1.0/${pname}-${version}.tar.xz";
|
2015-05-21 09:42:18 +00:00
|
|
|
sha256 = "05r06f7f990z908jjnmmryrlshy28wcx7fbvnslmx9nicih7rjrp";
|
2012-03-11 14:07:37 +00:00
|
|
|
};
|
2011-09-14 15:50:14 +00:00
|
|
|
|
2015-04-08 15:45:41 +00:00
|
|
|
buildInputs = [ networkmanager pptp ppp libsecret ]
|
|
|
|
++ stdenv.lib.optionals withGnome [ gnome3.gtk gnome3.libgnome_keyring
|
|
|
|
gnome3.networkmanagerapplet ];
|
2011-09-14 15:50:14 +00:00
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ intltool pkgconfig ];
|
2011-09-14 15:50:14 +00:00
|
|
|
|
2012-03-11 14:07:37 +00:00
|
|
|
configureFlags =
|
2014-05-20 18:30:44 +00:00
|
|
|
if withGnome then "--with-gnome --with-gtkver=3" else "--without-gnome";
|
2012-03-11 14:07:37 +00:00
|
|
|
|
2013-06-04 14:34:59 +00:00
|
|
|
postConfigure = "sed 's/-Werror//g' -i Makefile */Makefile";
|
|
|
|
|
2012-08-02 19:44:50 +00: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 15:50:14 +00:00
|
|
|
}
|