1 { lib, stdenv, fetchFromGitLab, pkg-config, ppp, libevent, openssl, autoreconfHook }:
3 stdenv.mkDerivation rec {
5 version = "unstable-2023-03-25";
7 src = fetchFromGitLab {
8 owner = "sstp-project";
10 rev = "3f7835df9ac5e84729903ca536cf65e4a7b04c6c";
11 hash = "sha256-8VF5thSABqf5SXEDCa+0dyDt7kVrQcs6deWLlYWM8dg=";
15 sed 's,/usr/sbin/pppd,${ppp}/sbin/pppd,' -i src/sstp-pppd.c
16 sed "s,sstp-pppd-plugin.so,$out/lib/pppd/sstp-pppd-plugin.so," -i src/sstp-pppd.c
20 "--with-openssl=${openssl.dev}"
21 "--with-runtime-dir=/run/sstpc"
22 "--with-pppd-plugin-dir=$(out)/lib/pppd"
25 nativeBuildInputs = [ pkg-config autoreconfHook ];
27 buildInputs = [ libevent openssl ppp ];
30 description = "SSTP client for Linux";
31 homepage = "https://sstp-client.sourceforge.net/";
32 platforms = platforms.linux;
33 maintainers = with maintainers; [ ];
34 license = licenses.gpl2Plus;
35 mainProgram = "sstpc";