softether: 4.29 -> 4.38

This commit is contained in:
Rick Yang 2022-01-28 14:05:03 +08:00
parent 55f827a0db
commit cbb34c531c
2 changed files with 12 additions and 13 deletions

View File

@ -4,28 +4,28 @@
stdenv.mkDerivation rec {
pname = "softether";
version = "4.29";
build = "9680";
version = "4.38";
build = "9760";
src = fetchurl {
url = "https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v${version}-${build}-rtm/softether-src-v${version}-${build}-rtm.tar.gz";
sha256 = "1r169s5dr31060r2mxkmm08riy6zrxgapmrc6kdrpxdav6kmy0z6";
sha256 = "0d8zahi9lkv72jh8yj66pwrsi4451vk113d3khzrzgbic6s2i0g6";
};
buildInputs = [ openssl readline ncurses zlib ];
preConfigure = ''
./configure
./configure
'';
buildPhase = ''
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
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
'';
meta = with lib; {

View File

@ -21797,8 +21797,7 @@ with pkgs;
openfire = callPackage ../servers/xmpp/openfire { };
softether_4_29 = callPackage ../servers/softether/4.29.nix { };
softether = softether_4_29;
softether = callPackage ../servers/softether { };
qboot = pkgsi686Linux.callPackage ../applications/virtualization/qboot { };