rework: fix all vulnerabilities
runner nix smoke / nix label and flake smoke (push) Failing after 7s
runner nix smoke / nix label and flake smoke (push) Failing after 7s
This commit is contained in:
+8
-5
@@ -1,12 +1,15 @@
|
||||
{ lib, writeShellScriptBin, fetchFromGitHub, pkgs }: let
|
||||
{ lib, fetchFromGitHub, runCommand, makeWrapper, jq }: let
|
||||
src = fetchFromGitHub {
|
||||
owner = "nativerv";
|
||||
repo = "slpt";
|
||||
rev = "8d70db4d8dfcd624ed49b9e6fb0ad449b6f25b89";
|
||||
hash = "sha256-sCHZsf7Y36iAesh7BeSxy9WhE/uQv13/VWmjlaVSEcU=";
|
||||
};
|
||||
in writeShellScriptBin "slpt" ''
|
||||
#!${pkgs.runtimeShell}
|
||||
PATH=${lib.makeBinPath [ pkgs.jq ]}:$PATH
|
||||
${builtins.readFile "${src}/slpt"}
|
||||
in runCommand "slpt" {
|
||||
inherit src;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
} ''
|
||||
install -Dm755 "$src/slpt" "$out/bin/slpt"
|
||||
patchShebangs "$out/bin/slpt"
|
||||
wrapProgram "$out/bin/slpt" --prefix PATH : "${lib.makeBinPath [ jq ]}"
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user