Merge pull request #81363 from fatpat/scaleft-1.41.0

scaleft: Init at 1.41.0
This commit is contained in:
Lassulus 2020-05-23 11:13:53 +02:00 committed by GitHub
commit 7de2524f53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 0 deletions

View File

@ -3598,6 +3598,12 @@
githubId = 1058504;
name = "José Luis Lafuente";
};
jloyet = {
email = "ml@fatbsd.com";
github = "fatpat";
githubId = 822436;
name = "Jérôme Loyet";
};
jluttine = {
email = "jaakko.luttinen@iki.fi";
github = "jluttine";

View File

@ -0,0 +1,41 @@
{ stdenv, fetchurl, rpmextract, patchelf, bash }:
stdenv.mkDerivation rec {
pname = "scaleft";
version = "1.41.0";
src =
fetchurl {
url = "http://pkg.scaleft.com/rpm/scaleft-client-tools-${version}-1.x86_64.rpm";
sha256 = "a9a2f60cc85167a1098f44b35efd755b8155f0b88da8572e96ace767e7933c4d";
};
nativeBuildInputs = [ patchelf rpmextract ];
libPath =
stdenv.lib.makeLibraryPath
[ stdenv.cc stdenv.cc.cc.lib ];
buildCommand = ''
mkdir -p $out/bin/
cd $out
rpmextract $src
patchelf \
--set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
usr/bin/sft
patchelf \
--set-rpath ${libPath} \
usr/bin/sft
ln -s $out/usr/bin/sft $out/bin/sft
chmod +x $out/bin/sft
patchShebangs $out
'';
meta = with stdenv.lib; {
description = "ScaleFT provides Zero Trust software which you can use to secure your internal servers and services";
homepage = "https://www.scaleft.com";
license = licenses.unfree;
maintainers = with maintainers; [ jloyet ];
platforms = [ "x86_64-linux" ];
};
}

View File

@ -23902,6 +23902,8 @@ in
sauerbraten = callPackage ../games/sauerbraten {};
scaleft = callPackage ../applications/networking/scaleft { };
scaleway-cli = callPackage ../tools/admin/scaleway-cli { };
scid = callPackage ../games/scid {