3673ba6150
I think this makes sense, because now all the plugins will be gnome3 gtk3 based, the same way nm-applet is. I also removed networkmanager_pptp_gnome variation of networkmanager_pptp package, because i think no variation is needed and gnome support should be on by default like in other packages.
36 lines
1,007 B
Nix
36 lines
1,007 B
Nix
{ stdenv, fetchurl, networkmanager, pptp, ppp, intltool, pkgconfig, substituteAll
|
|
, withGnome ? true, gnome3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
|
pname = "NetworkManager-pptp";
|
|
version = "0.9.8.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/0.9/${pname}-${version}.tar.xz";
|
|
sha256 = "1s6wmznd6azvg028x8y3syniqy9j7nmx5j71w2wc6mk0f9pqzflp";
|
|
};
|
|
|
|
buildInputs = [ networkmanager pptp ppp ]
|
|
++ stdenv.lib.optionals withGnome [ gnome3.gtk gnome3.libgnome_keyring ];
|
|
|
|
nativeBuildInputs = [ intltool pkgconfig ];
|
|
|
|
configureFlags =
|
|
if withGnome then "--with-gnome --with-gtkver=3" 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;
|
|
};
|
|
}
|