nixpkgs-suyu/pkgs/tools/networking/openfortivpn/default.nix
R. RyanTM a0d07eb94e openfortivpn: 1.7.0 -> 1.7.1
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/openfortivpn/versions.

These checks were done:

- built on NixOS
- /nix/store/qn1hzzhcv20cyk6q58wlgjar03dbqbqv-openfortivpn-1.7.1/bin/openfortivpn passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 1 of 1 passed binary check by having the new version present in output.
- found 1.7.1 with grep in /nix/store/qn1hzzhcv20cyk6q58wlgjar03dbqbqv-openfortivpn-1.7.1
- directory tree listing: https://gist.github.com/8d202ae1f27f632d9f02045900200b02
- du listing: https://gist.github.com/809d7d83e583187909b98ed31fae9fab
2018-06-19 16:20:01 +00:00

36 lines
924 B
Nix

{ stdenv, fetchFromGitHub, autoreconfHook, openssl, ppp, pkgconfig }:
with stdenv.lib;
let repo = "openfortivpn";
version = "1.7.1";
in stdenv.mkDerivation {
name = "${repo}-${version}";
src = fetchFromGitHub {
owner = "adrienverge";
inherit repo;
rev = "v${version}";
sha256 = "01nsgmmh72qk0aq2zdjh8qqn256mmvz1w2gl0wi7g29d82y2hdfm";
};
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;
};
}