From 1e5ce3f0244d439965f0a8527c423a045e6e9e75 Mon Sep 17 00:00:00 2001 From: Georges Dubus Date: Tue, 10 Feb 2015 13:56:46 +0100 Subject: [PATCH] openfortivpn: Added expression --- .../tools/networking/openfortivpn/default.nix | 37 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 39 insertions(+) create mode 100644 pkgs/tools/networking/openfortivpn/default.nix diff --git a/pkgs/tools/networking/openfortivpn/default.nix b/pkgs/tools/networking/openfortivpn/default.nix new file mode 100644 index 000000000000..50fde6a77944 --- /dev/null +++ b/pkgs/tools/networking/openfortivpn/default.nix @@ -0,0 +1,37 @@ +{ stdenv, fetchFromGitHub, automake, autoconf, openssl, ppp }: + +with stdenv.lib; + +let repo = "openfortivpn"; + version = "1.0.1"; + +in stdenv.mkDerivation { + name = "${repo}-${version}"; + + src = fetchFromGitHub { + owner = "adrienverge"; + inherit repo; + rev = "v${version}"; + sha256 = "0kwl8hv3nydd34xp1489jpjdj4bmknfl9xrgynij0vf5qx29xv7m"; + }; + + buildInputs = [ openssl automake autoconf ppp ]; + + preConfigure = '' + aclocal + autoconf + automake --add-missing + + substituteInPlace src/tunnel.c --replace "/usr/sbin/pppd" "${ppp}/bin/pppd" + ''; + + enableParallelBuilding = true; + + meta = { + description = "Client for PPP+SSL VPN tunnel services"; + homepage = https://github.com/adrienverge/openfortivpn; + license = stdenv.lib.licenses.gpl3; + maintainers = [ stdenv.lib.maintainers.madjar ]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 80ad6e13576c..fee7748abb6f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2051,6 +2051,8 @@ let obexd = callPackage ../tools/bluetooth/obexd { }; + openfortivpn = callPackage ../tools/networking/openfortivpn { }; + obexfs = callPackage ../tools/bluetooth/obexfs { }; obexftp = callPackage ../tools/bluetooth/obexftp { };