aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/by-name/sc/screenshot_temporary/package.nix12
-rwxr-xr-xpkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh3
2 files changed, 6 insertions, 9 deletions
diff --git a/pkgs/by-name/sc/screenshot_temporary/package.nix b/pkgs/by-name/sc/screenshot_temporary/package.nix
index f3739b01..1c45a07b 100644
--- a/pkgs/by-name/sc/screenshot_temporary/package.nix
+++ b/pkgs/by-name/sc/screenshot_temporary/package.nix
@@ -1,15 +1,15 @@
{
- sysLib,
+ writeShellApplication,
+ # Dependencies
grim,
slurp,
wl-clipboard,
}:
-sysLib.writeShellScript {
+writeShellApplication {
name = "screenshot_temporary";
- src = ./screenshot_temporary.sh;
- generateCompletions = false;
- keepPath = false;
- dependencies = [
+ text = builtins.readFile ./screenshot_temporary.sh;
+ inheritPath = false;
+ runtimeInputs = [
grim
slurp
wl-clipboard
diff --git a/pkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh b/pkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh
index 8968ca79..60a27057 100755
--- a/pkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh
+++ b/pkgs/by-name/sc/screenshot_temporary/screenshot_temporary.sh
@@ -1,8 +1,5 @@
#! /usr/bin/env dash
-# shellcheck source=/dev/null
-SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH
-
grim -g "$(slurp)" | wl-copy
# vim: ft=sh