2020-02-29 08:06:38 +00:00
|
|
|
{ stdenv, fetchurl, rpmextract, patchelf, bash }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "scaleft";
|
2020-07-07 12:26:20 +01:00
|
|
|
version = "1.45.3";
|
2020-02-29 08:06:38 +00:00
|
|
|
|
|
|
|
src =
|
|
|
|
fetchurl {
|
|
|
|
url = "http://pkg.scaleft.com/rpm/scaleft-client-tools-${version}-1.x86_64.rpm";
|
2020-07-07 12:26:20 +01:00
|
|
|
sha256 = "02hsn64kg22pgga5ldjwhnqc6jq8w03mwf40dfanln1qz38x9nx1";
|
2020-02-29 08:06:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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" ];
|
|
|
|
};
|
|
|
|
}
|