mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
01d67df0cc
sstp: 1.0.17 -> 1.0.18
35 lines
952 B
Nix
35 lines
952 B
Nix
{ lib, stdenv, fetchurl, pkg-config, ppp, libevent, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sstp-client";
|
|
version = "1.0.18";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/sstp-client/sstp-client/sstp-client-${version}.tar.gz";
|
|
sha256 = "sha256-2Hn081q36uh0hu3Ei1D5mpr2X162+0QnmTyleLsODcg=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--with-openssl=${openssl.dev}"
|
|
"--with-runtime-dir=/run/sstpc"
|
|
"--with-pppd-plugin-dir=$(out)/lib/pppd"
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ libevent openssl ppp ];
|
|
|
|
meta = with lib; {
|
|
description = "SSTP client for Linux";
|
|
homepage = "https://sstp-client.sourceforge.net/";
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ];
|
|
license = licenses.gpl2Plus;
|
|
};
|
|
}
|