nixpkgs/pkgs/tools/networking/sstp/default.nix

34 lines
947 B
Nix
Raw Normal View History

2015-01-29 23:33:13 +00:00
{ stdenv, fetchurl, ppp, libevent, openssl }:
stdenv.mkDerivation rec {
name = "sstp-client-${version}";
2017-03-01 22:48:07 +00:00
version = "1.0.11";
2015-01-29 23:33:13 +00:00
src = fetchurl {
url = "mirror://sourceforge/sstp-client/sstp-client/${version}/sstp-client-${version}.tar.gz";
2017-03-01 22:48:07 +00:00
sha256 = "087vp3n7nv001fsgbmkjpgl3a2vhbix22cflrqi5bv9h8181p18v";
2015-01-29 23:33:13 +00:00
};
patchPhase =
''
sed 's,/usr/sbin/pppd,${ppp}/sbin/pppd,' -i src/sstp-pppd.c
sed "s,sstp-pppd-plugin.so,$out/lib/pppd/sstp-pppd-plugin.so," -i src/sstp-pppd.c
'';
configureFlags = [
"--with-openssl=${openssl.dev}"
2015-01-29 23:33:13 +00:00
"--with-runtime-dir=/run/sstpc"
"--with-pppd-plugin-dir=$(out)/lib/pppd"
];
buildInputs = [ libevent openssl ppp ];
meta = {
description = "SSTP client for Linux";
homepage = http://sstp-client.sourceforge.net/;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.ktosiek ];
2018-08-04 14:59:43 +00:00
license = stdenv.lib.licenses.gpl2;
2015-01-29 23:33:13 +00:00
};
}