1 { lib, stdenv, fetchurl
2 , openssl, readline, ncurses, zlib
3 , dataDir ? "/var/lib/softether" }:
5 stdenv.mkDerivation rec {
11 url = "https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v${version}-${build}-rtm/softether-src-v${version}-${build}-rtm.tar.gz";
12 sha256 = "0d8zahi9lkv72jh8yj66pwrsi4451vk113d3khzrzgbic6s2i0g6";
15 buildInputs = [ openssl readline ncurses zlib ];
24 -e "/INSTALL_BINDIR=/s|/usr/bin|/bin|g" \
25 -e "/_DIR=/s|/usr|${dataDir}|g" \
26 -e "s|\$(INSTALL|$out/\$(INSTALL|g" \
27 -e "/echo/s|echo $out/|echo |g" \
32 description = "Open-Source Free Cross-platform Multi-protocol VPN Program";
33 homepage = "https://www.softether.org/";
34 license = licenses.asl20;
35 maintainers = [ maintainers.rick68 ];
36 platforms = [ "x86_64-linux" ];