global pkgs

This commit is contained in:
Joakim Repomaa
2025-01-30 19:33:33 +02:00
parent 6b8c9d6abf
commit ea7c4cbf31
19 changed files with 13 additions and 6 deletions

View File

@@ -0,0 +1 @@
{ util, ... }: util.package

View File

@@ -0,0 +1,14 @@
{ pkgs }:
pkgs.writeShellScriptBin "wl-copy" ''
set -euo pipefail
copy="${pkgs.wl-clipboard}/bin/wl-copy"
paste="${pkgs.wl-clipboard}/bin/wl-paste"
"$copy" "$@"
args="$*"
if [[ "$args" =~ /(^| )(-p|--primary)($| )/ ]]; then
exit
fi
"$paste" -n | "$copy" -p "$@"
''