feat(package): slpt: jq dependency
This commit is contained in:
@@ -1,8 +1,12 @@
|
|||||||
{ lib, writeShellScriptBin, fetchFromGitHub }: let
|
{ lib, writeShellScriptBin, fetchFromGitHub, pkgs }: let
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nativerv";
|
owner = "nativerv";
|
||||||
repo = "slpt";
|
repo = "slpt";
|
||||||
rev = "8d70db4d8dfcd624ed49b9e6fb0ad449b6f25b89";
|
rev = "8d70db4d8dfcd624ed49b9e6fb0ad449b6f25b89";
|
||||||
hash = "sha256-sCHZsf7Y36iAesh7BeSxy9WhE/uQv13/VWmjlaVSEcU=";
|
hash = "sha256-sCHZsf7Y36iAesh7BeSxy9WhE/uQv13/VWmjlaVSEcU=";
|
||||||
};
|
};
|
||||||
in writeShellScriptBin "slpt" (builtins.readFile "${src}/slpt")
|
in writeShellScriptBin "slpt" ''
|
||||||
|
#!${pkgs.runtimeShell}
|
||||||
|
PATH=${lib.makeBinPath [ pkgs.jq ]}:$PATH
|
||||||
|
${builtins.readFile "${src}/slpt"}
|
||||||
|
''
|
||||||
|
|||||||
Reference in New Issue
Block a user