uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
41
pkgs/applications/networking/scaleft/default.nix
Normal file
41
pkgs/applications/networking/scaleft/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ lib, stdenv, fetchurl, rpmextract, patchelf, bash }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "scaleft";
|
||||
version = "1.45.4";
|
||||
|
||||
src =
|
||||
fetchurl {
|
||||
url = "http://pkg.scaleft.com/rpm/scaleft-client-tools-${version}-1.x86_64.rpm";
|
||||
sha256 = "1yskybjba9ljy1wazddgrm7a4cc72i1xbk7sxnjpcq4hdy3b50l0";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ patchelf rpmextract ];
|
||||
|
||||
libPath =
|
||||
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 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" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue