1 { lib, stdenv, fetchurl, rpmextract, patchelf, testers, scaleft }:
3 stdenv.mkDerivation rec {
9 url = "https://dist.scaleft.com/repos/rpm/stable/centos/9/x86_64/1.80.1/scaleft-client-tools-${version}-1.x86_64.rpm";
10 sha256 = "sha256-QrkqAgkplFF6Tp6FWKb2TJaqeOw8ec4zd9pymDP2IyY=";
13 nativeBuildInputs = [ patchelf rpmextract ];
17 [ stdenv.cc stdenv.cc.cc ];
24 --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) \
27 --set-rpath ${libPath} \
29 ln -s $out/usr/bin/sft $out/bin/sft
34 passthru.tests.version = testers.testVersion {
37 version = "sft version ${version}";
41 description = "ScaleFT provides Zero Trust software which you can use to secure your internal servers and services";
42 homepage = "https://www.scaleft.com";
43 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
44 license = licenses.unfree;
45 maintainers = with maintainers; [ jloyet ];
46 platforms = [ "x86_64-linux" ];