2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl
|
2019-05-02 17:38:37 +00:00
|
|
|
, openssl, readline, ncurses, zlib
|
|
|
|
, dataDir ? "/var/lib/softether" }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "softether";
|
2022-01-28 06:05:03 +00:00
|
|
|
version = "4.38";
|
|
|
|
build = "9760";
|
2019-05-02 17:38:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v${version}-${build}-rtm/softether-src-v${version}-${build}-rtm.tar.gz";
|
2022-01-28 06:05:03 +00:00
|
|
|
sha256 = "0d8zahi9lkv72jh8yj66pwrsi4451vk113d3khzrzgbic6s2i0g6";
|
2019-05-02 17:38:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl readline ncurses zlib ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2022-01-28 06:05:03 +00:00
|
|
|
./configure
|
2019-05-02 17:38:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2022-01-28 06:05:03 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
sed -i \
|
|
|
|
-e "/INSTALL_BINDIR=/s|/usr/bin|/bin|g" \
|
|
|
|
-e "/_DIR=/s|/usr|${dataDir}|g" \
|
|
|
|
-e "s|\$(INSTALL|$out/\$(INSTALL|g" \
|
|
|
|
-e "/echo/s|echo $out/|echo |g" \
|
|
|
|
Makefile
|
2019-05-02 17:38:37 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-02 17:38:37 +00:00
|
|
|
description = "An Open-Source Free Cross-platform Multi-protocol VPN Program";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.softether.org/";
|
2019-05-02 17:38:37 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.rick68 ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|