2019-04-01 16:09:17 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, ppp, libevent, openssl }:
|
2015-01-29 23:33:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sstp-client";
|
2019-04-01 16:09:17 +00:00
|
|
|
version = "1.0.12";
|
2015-01-29 23:33:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/sstp-client/sstp-client/${version}/sstp-client-${version}.tar.gz";
|
2019-04-01 16:09:17 +00:00
|
|
|
sha256 = "1zv7rx6wh9rhbyg9pg6759by8hc6n4162zrrw0y812cnaw3b8zj8";
|
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 = [
|
2016-04-16 17:44:32 +00:00
|
|
|
"--with-openssl=${openssl.dev}"
|
2015-01-29 23:33:13 +00:00
|
|
|
"--with-runtime-dir=/run/sstpc"
|
|
|
|
"--with-pppd-plugin-dir=$(out)/lib/pppd"
|
|
|
|
];
|
|
|
|
|
2019-04-01 16:09:17 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-01-29 23:33:13 +00:00
|
|
|
buildInputs = [ libevent openssl ppp ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "SSTP client for Linux";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://sstp-client.sourceforge.net/";
|
2015-01-29 23:33:13 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|