1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

add networ-manager-openvpn, WIP

This commit is contained in:
Domen Kozar 2013-04-03 01:08:48 +02:00
parent b2f92ce250
commit 1aaa1a7b5b
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,38 @@
{ stdenv, fetchurl, openvpn, intltool, pkgconfig, networkmanager
, withGnome ? true, gtk2, libgnome_keyring }:
stdenv.mkDerivation rec {
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
pname = "NetworkManager-openvpn";
version = "0.9.4.0";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/0.9/${pname}-${version}.tar.xz";
sha256 = "1q436v2vlyxjj2b89jr3zny640xdjpslbrjb39ks1lrc1jqp0j6h";
};
buildInputs = [ openvpn networkmanager ]
++ stdenv.lib.optionals withGnome [ gtk2 libgnome_keyring ];
nativeBuildInputs = [ intltool pkgconfig ];
configureFlags = [
"${if withGnome then "--with-gnome --with-gtkver=2" else "--without-gnome"}"
];
preBuild = ''
sed -i 's/-Wstrict-prototypes//' auth-dialog/Makefile
sed -i 's/-Werror//' auth-dialog/Makefile
sed -i 's/-Wstrict-prototypes//' properties/Makefile
sed -i 's/-Werror//' properties/Makefile
'';
postInstall = ''
# ln -s $out/NetworkManager/VPN /etc/NetworkManager/VPN
'';
meta = {
description = "TODO";
inherit (networkmanager.meta) maintainers platforms;
};
}

View file

@ -1259,6 +1259,8 @@ let
networkmanager = callPackage ../tools/networking/network-manager { };
networkmanager_openvpn = callPackage ../tools/networking/network-manager/openvpn.nix { };
networkmanager_pptp = callPackage ../tools/networking/network-manager/pptp.nix { };
networkmanager_pptp_gnome = networkmanager_pptp.override { withGnome = true; };