scripts.makeScript: file -> src

This commit is contained in:
Guanran Wang 2024-06-18 09:42:20 +08:00
parent e1993195be
commit 7967a12386
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF
3 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@
makeScript {
name = "lofi";
runtimeInputs = [coreutils mpv];
file = fetchurl {
src = fetchurl {
url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi";
hash = "sha256-hT+S/rqOHUYnnFcSDFfQht4l1DGasz1L3wDHKUWLraA=";
};

View file

@ -6,12 +6,12 @@
makeBinaryWrapper,
}: {
name,
file,
src,
runtimeInputs ? [],
}:
# FIXME: incorrect argv0
runCommandNoCCLocal name {
src = file;
inherit src;
nativeBuildInputs = [makeBinaryWrapper];
} ''
install -Dm755 $src $out/bin/.$name

View file

@ -12,7 +12,7 @@
makeScript {
name = "screenshot";
runtimeInputs = [coreutils jq grim slurp swappy wl-clipboard libnotify];
file = fetchurl {
src = fetchurl {
url = "https://raw.githubusercontent.com/nwg-piotr/nwg-shell/c29e8eb4658a2613fb221ead0b101c75f457bcaf/scripts/screenshot";
hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU=";
postFetch = ''