Files
hearth/package/slpt.nix
T
yukkop 6f80f672f2
runner nix smoke / nix label and flake smoke (push) Failing after 7s
rework: fix all vulnerabilities
2026-09-08 10:36:38 +00:00

16 lines
489 B
Nix

{ lib, fetchFromGitHub, runCommand, makeWrapper, jq }: let
src = fetchFromGitHub {
owner = "nativerv";
repo = "slpt";
rev = "8d70db4d8dfcd624ed49b9e6fb0ad449b6f25b89";
hash = "sha256-sCHZsf7Y36iAesh7BeSxy9WhE/uQv13/VWmjlaVSEcU=";
};
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 ]}"
''