2023-04-19 08:36:20 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, pkg-config, ppp, libevent, openssl, autoreconfHook }:
|
2015-01-29 23:33:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sstp-client";
|
2023-04-19 08:36:20 +00:00
|
|
|
version = "unstable-2023-03-25";
|
2015-01-29 23:33:13 +00:00
|
|
|
|
2023-04-19 08:36:20 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "sstp-project";
|
|
|
|
repo = pname;
|
|
|
|
rev = "3f7835df9ac5e84729903ca536cf65e4a7b04c6c";
|
|
|
|
hash = "sha256-8VF5thSABqf5SXEDCa+0dyDt7kVrQcs6deWLlYWM8dg=";
|
2015-01-29 23:33:13 +00:00
|
|
|
};
|
|
|
|
|
2021-09-05 09:22:45 +00:00
|
|
|
postPatch = ''
|
|
|
|
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
|
|
|
|
'';
|
2015-01-29 23:33:13 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
2023-04-19 08:36:20 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2021-09-05 09:20:57 +00:00
|
|
|
|
2015-01-29 23:33:13 +00:00
|
|
|
buildInputs = [ libevent openssl ppp ];
|
|
|
|
|
2021-09-05 09:20:57 +00:00
|
|
|
meta = with lib; {
|
2015-01-29 23:33:13 +00:00
|
|
|
description = "SSTP client for Linux";
|
2023-01-21 21:41:12 +00:00
|
|
|
homepage = "https://sstp-client.sourceforge.net/";
|
2021-09-05 09:20:57 +00:00
|
|
|
platforms = platforms.linux;
|
2022-04-27 02:45:38 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2021-09-05 09:20:57 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2015-01-29 23:33:13 +00:00
|
|
|
};
|
|
|
|
}
|