blob: dce6d1acb776bc59ef3394ee0d16001d56d707b7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ stdenv, fetchurl, ppp, libevent, openssl }:
stdenv.mkDerivation rec {
name = "sstp-client-${version}";
version = "1.0.11";
src = fetchurl {
url = "mirror://sourceforge/sstp-client/sstp-client/${version}/sstp-client-${version}.tar.gz";
sha256 = "087vp3n7nv001fsgbmkjpgl3a2vhbix22cflrqi5bv9h8181p18v";
};
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}"
"--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 ];
};
}
|