rio: 0.0.36 -> 0.0.37
[NixPkgs.git] / pkgs / tools / networking / sstp / default.nix
blob72745114a26e9ad6de8e0c0adaa9cb6430df32d3
1 { lib, stdenv, fetchFromGitLab, pkg-config, ppp, libevent, openssl, autoreconfHook }:
3 stdenv.mkDerivation rec {
4   pname = "sstp-client";
5   version = "unstable-2023-03-25";
7   src = fetchFromGitLab {
8     owner = "sstp-project";
9     repo = pname;
10     rev = "3f7835df9ac5e84729903ca536cf65e4a7b04c6c";
11     hash = "sha256-8VF5thSABqf5SXEDCa+0dyDt7kVrQcs6deWLlYWM8dg=";
12   };
14   postPatch = ''
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
17   '';
19   configureFlags = [
20     "--with-openssl=${openssl.dev}"
21     "--with-runtime-dir=/run/sstpc"
22     "--with-pppd-plugin-dir=$(out)/lib/pppd"
23   ];
25   nativeBuildInputs = [ pkg-config autoreconfHook ];
27   buildInputs = [ libevent openssl ppp ];
29   meta = with lib; {
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";
36   };