nixpkgs/pkgs/tools/networking/pptp/default.nix
Ryan Mulligan 25ea6474e8 pptp: 1.9.0 -> 1.10.0
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/fg5s243j07wch18a51gi22ayyyq6l2wl-pptp-1.10.0/bin/pptp --version` and found version 1.10.0
- ran `/nix/store/fg5s243j07wch18a51gi22ayyyq6l2wl-pptp-1.10.0/bin/pptpsetup -h` got 0 exit code
- ran `/nix/store/fg5s243j07wch18a51gi22ayyyq6l2wl-pptp-1.10.0/bin/pptpsetup --help` got 0 exit code
- found 1.10.0 with grep in /nix/store/fg5s243j07wch18a51gi22ayyyq6l2wl-pptp-1.10.0
- found 1.10.0 in filename of file in /nix/store/fg5s243j07wch18a51gi22ayyyq6l2wl-pptp-1.10.0

cc ""
2018-03-04 17:35:47 +00:00

32 lines
798 B
Nix

{ stdenv, fetchurl, perl, ppp, iproute, which }:
stdenv.mkDerivation rec {
name = "pptp-${version}";
version = "1.10.0";
src = fetchurl {
url = "mirror://sourceforge/pptpclient/${name}.tar.gz";
sha256 = "1x2szfp96w7cag2rcvkdqbsl836ja5148zzfhaqp7kl7wjw2sjc2";
};
patchPhase =
''
sed -e 's/install -o root/install/' -i Makefile
'';
preConfigure =
''
makeFlagsArray=( IP=${iproute}/bin/ip PPPD=${ppp}/sbin/pppd \
BINDIR=$out/sbin MANDIR=$out/share/man/man8 \
PPPDIR=$out/etc/ppp )
'';
nativeBuildInputs = [ perl which ];
meta = {
description = "PPTP client for Linux";
homepage = http://pptpclient.sourceforge.net/;
platforms = stdenv.lib.platforms.linux;
maintainers = [ ];
};
}