nixpkgs/pkgs/tools/networking/openfortivpn/default.nix
R. RyanTM 6d9eb6c8a9 openfortivpn: 1.6.0 -> 1.7.0
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
- ran ‘/nix/store/p02dl9fy2g9f6dddm4i0z1nbi4b4vk7j-openfortivpn-1.7.0/bin/openfortivpn -h’ got 0 exit code
- ran ‘/nix/store/p02dl9fy2g9f6dddm4i0z1nbi4b4vk7j-openfortivpn-1.7.0/bin/openfortivpn --help’ got 0 exit code
- ran ‘/nix/store/p02dl9fy2g9f6dddm4i0z1nbi4b4vk7j-openfortivpn-1.7.0/bin/openfortivpn help’ got 0 exit code
- ran ‘/nix/store/p02dl9fy2g9f6dddm4i0z1nbi4b4vk7j-openfortivpn-1.7.0/bin/openfortivpn --version’ and found version 1.7.0
- found 1.7.0 with grep in /nix/store/p02dl9fy2g9f6dddm4i0z1nbi4b4vk7j-openfortivpn-1.7.0
- directory tree listing: https://gist.github.com/34708b90f0d4fc975a7b9dbd4670bfee
2018-04-24 09:59:29 -07:00

36 lines
924 B
Nix

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