nixpkgs/pkgs/tools/networking/network-manager/pptp.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, networkmanager, pptp, ppp, intltool, pkgconfig, substituteAll
2015-04-08 16:45:41 +01:00
, libsecret, withGnome ? true, gnome3 }:
stdenv.mkDerivation rec {
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
pname = "NetworkManager-pptp";
2015-04-08 16:45:41 +01:00
version = networkmanager.version;
src = fetchurl {
2015-04-08 16:45:41 +01:00
url = "mirror://gnome/sources/${pname}/1.0/${pname}-${version}.tar.xz";
2015-05-21 10:42:18 +01:00
sha256 = "05r06f7f990z908jjnmmryrlshy28wcx7fbvnslmx9nicih7rjrp";
};
2015-04-08 16:45:41 +01:00
buildInputs = [ networkmanager pptp ppp libsecret ]
++ stdenv.lib.optionals withGnome [ gnome3.gtk gnome3.libgnome_keyring
gnome3.networkmanagerapplet ];
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;
};
}