3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/sstp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
959 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";
2021-10-28 23:03:42 +01:00
version = "1.0.16";
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";
2021-10-28 23:03:42 +01:00
sha256 = "sha256-r74U/RIveHX0+tDtmC0XRRNtLmbMNrl/cu8aERF4TKE=";
2015-01-29 23:33:13 +00:00
};
2021-09-05 10:22:45 +01: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 = [
"--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 ];
2021-09-05 10:20:57 +01:00
2015-01-29 23:33:13 +00:00
buildInputs = [ libevent openssl ppp ];
2021-09-05 10:20:57 +01:00
meta = with lib; {
2015-01-29 23:33:13 +00:00
description = "SSTP client for Linux";
homepage = "http://sstp-client.sourceforge.net/";
2021-09-05 10:20:57 +01:00
platforms = platforms.linux;
maintainers = with maintainers; [ ktosiek ];
license = licenses.gpl2Plus;
2015-01-29 23:33:13 +00:00
};
}