1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 16:46:09 +00:00
nixpkgs/pkgs/tools/networking/sstp/default.nix

35 lines
962 B
Nix
Raw Normal View History

2021-01-17 03:51:22 +00:00
{ lib, stdenv, fetchurl, pkg-config, ppp, libevent, openssl }:
2015-01-29 23:33:13 +00:00
stdenv.mkDerivation rec {
pname = "sstp-client";
2020-10-15 23:50:24 +01:00
version = "1.0.13";
2015-01-29 23:33:13 +00:00
src = fetchurl {
2020-10-15 23:50:24 +01:00
url = "mirror://sourceforge/sstp-client/sstp-client/sstp-client-${version}.tar.gz";
sha256 = "06rjyncmgdy212xf9l9z6mfh4gdmgk7l4y841gb8lpbrl3y5h4ln";
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"
];
2021-01-17 03:51:22 +00:00
nativeBuildInputs = [ pkg-config ];
2015-01-29 23:33:13 +00:00
buildInputs = [ libevent openssl ppp ];
meta = {
description = "SSTP client for Linux";
homepage = "http://sstp-client.sourceforge.net/";
2021-01-15 09:19:50 +00:00
platforms = lib.platforms.linux;
maintainers = [ lib.maintainers.ktosiek ];
license = lib.licenses.gpl2;
2015-01-29 23:33:13 +00:00
};
}