scripts.makeScript: file -> src
This commit is contained in:
parent
e1993195be
commit
7967a12386
3 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@
|
||||||
makeScript {
|
makeScript {
|
||||||
name = "lofi";
|
name = "lofi";
|
||||||
runtimeInputs = [coreutils mpv];
|
runtimeInputs = [coreutils mpv];
|
||||||
file = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi";
|
url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi";
|
||||||
hash = "sha256-hT+S/rqOHUYnnFcSDFfQht4l1DGasz1L3wDHKUWLraA=";
|
hash = "sha256-hT+S/rqOHUYnnFcSDFfQht4l1DGasz1L3wDHKUWLraA=";
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,12 +6,12 @@
|
||||||
makeBinaryWrapper,
|
makeBinaryWrapper,
|
||||||
}: {
|
}: {
|
||||||
name,
|
name,
|
||||||
file,
|
src,
|
||||||
runtimeInputs ? [],
|
runtimeInputs ? [],
|
||||||
}:
|
}:
|
||||||
# FIXME: incorrect argv0
|
# FIXME: incorrect argv0
|
||||||
runCommandNoCCLocal name {
|
runCommandNoCCLocal name {
|
||||||
src = file;
|
inherit src;
|
||||||
nativeBuildInputs = [makeBinaryWrapper];
|
nativeBuildInputs = [makeBinaryWrapper];
|
||||||
} ''
|
} ''
|
||||||
install -Dm755 $src $out/bin/.$name
|
install -Dm755 $src $out/bin/.$name
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
makeScript {
|
makeScript {
|
||||||
name = "screenshot";
|
name = "screenshot";
|
||||||
runtimeInputs = [coreutils jq grim slurp swappy wl-clipboard libnotify];
|
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";
|
url = "https://raw.githubusercontent.com/nwg-piotr/nwg-shell/c29e8eb4658a2613fb221ead0b101c75f457bcaf/scripts/screenshot";
|
||||||
hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU=";
|
hash = "sha256-Z/fWloz8pLHsvPTPOeBxnbMsGDRTY3G3l/uePQ3ZxjU=";
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
|
|
Loading…
Reference in a new issue