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 {
|
||||
name = "lofi";
|
||||
runtimeInputs = [coreutils mpv];
|
||||
file = fetchurl {
|
||||
src = fetchurl {
|
||||
url = "https://raw.githubusercontent.com/lime-desu/bin/69422c37582c5914863997c75c268791a0de136e/lofi";
|
||||
hash = "sha256-hT+S/rqOHUYnnFcSDFfQht4l1DGasz1L3wDHKUWLraA=";
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue