3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/openfortivpn/default.nix
Ryan Mulligan b92174e4bc openfortivpn: 1.5.0 -> 1.6.0
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/wj4dlazd3lk41w7865iyl082s5pk6g2a-openfortivpn-1.6.0/bin/openfortivpn -h` got 0 exit code
- ran `/nix/store/wj4dlazd3lk41w7865iyl082s5pk6g2a-openfortivpn-1.6.0/bin/openfortivpn --help` got 0 exit code
- ran `/nix/store/wj4dlazd3lk41w7865iyl082s5pk6g2a-openfortivpn-1.6.0/bin/openfortivpn help` got 0 exit code
- ran `/nix/store/wj4dlazd3lk41w7865iyl082s5pk6g2a-openfortivpn-1.6.0/bin/openfortivpn -v` and found version 1.6.0
- ran `/nix/store/wj4dlazd3lk41w7865iyl082s5pk6g2a-openfortivpn-1.6.0/bin/openfortivpn --version` and found version 1.6.0
- ran `/nix/store/wj4dlazd3lk41w7865iyl082s5pk6g2a-openfortivpn-1.6.0/bin/openfortivpn -h` and found version 1.6.0
- ran `/nix/store/wj4dlazd3lk41w7865iyl082s5pk6g2a-openfortivpn-1.6.0/bin/openfortivpn --help` and found version 1.6.0
- found 1.6.0 with grep in /nix/store/wj4dlazd3lk41w7865iyl082s5pk6g2a-openfortivpn-1.6.0
- found 1.6.0 in filename of file in /nix/store/wj4dlazd3lk41w7865iyl082s5pk6g2a-openfortivpn-1.6.0

cc "@madjar"
2018-02-27 08:48:08 -08:00

37 lines
924 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, openssl, ppp, pkgconfig }:
with stdenv.lib;
let repo = "openfortivpn";
version = "1.6.0";
in stdenv.mkDerivation {
name = "${repo}-${version}";
src = fetchFromGitHub {
owner = "adrienverge";
inherit repo;
rev = "v${version}";
sha256 = "0ca80i8m88f4vhwiq548wjyqwwszpbap92l83bl0wdppvp4nk192";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ openssl ppp ];
NIX_CFLAGS_COMPILE = "-Wno-error=unused-function";
preConfigure = ''
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;
};
}