nixpkgs/pkgs/tools/networking/sstp/default.nix

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

37 lines
1020 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitLab, pkg-config, ppp, libevent, openssl, autoreconfHook }:
2015-01-29 23:33:13 +00:00
stdenv.mkDerivation rec {
pname = "sstp-client";
version = "unstable-2023-03-25";
2015-01-29 23:33:13 +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 = [
"--with-openssl=${openssl.dev}"
2015-01-29 23:33:13 +00:00
"--with-runtime-dir=/run/sstpc"
"--with-pppd-plugin-dir=$(out)/lib/pppd"
];
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";
homepage = "https://sstp-client.sourceforge.net/";
2021-09-05 09:20:57 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ ];
2021-09-05 09:20:57 +00:00
license = licenses.gpl2Plus;
2015-01-29 23:33:13 +00:00
};
}