about summary refs log tree commit diff stats
path: root/pkgs/by-name/mp/mpp/mpp.sh
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-16 21:13:24 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-11-16 21:13:24 +0100
commitb317fc17f00ea74fe2267950b3119dddddd78b09 (patch)
treebdcf6882c5ba53129001597a9d057a0c4f9d4ca2 /pkgs/by-name/mp/mpp/mpp.sh
parentbuild(treewide): Update (diff)
downloadnixos-config-b317fc17f00ea74fe2267950b3119dddddd78b09.tar.gz
nixos-config-b317fc17f00ea74fe2267950b3119dddddd78b09.zip
refactor(pkgs/mpc): Rename to `mpp`
Nixpkgs has renamed their `mpc-cli` package to just `mpc`, turning this
`mpc` package into an override for the official nixpkgs one. I think
being explicit about the fact, that `mpc` is wrapped is the best
solution here.
Diffstat (limited to 'pkgs/by-name/mp/mpp/mpp.sh')
-rwxr-xr-xpkgs/by-name/mp/mpp/mpp.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/by-name/mp/mpp/mpp.sh b/pkgs/by-name/mp/mpp/mpp.sh
new file mode 100755
index 00000000..0d636ac5
--- /dev/null
+++ b/pkgs/by-name/mp/mpp/mpp.sh
@@ -0,0 +1,24 @@
+#!/usr/bin/env dash
+
+# shellcheck source=/dev/null
+SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH
+
+case "$1" in
+"searchadd")
+    shift 1
+    mpc-searchadd "$@"
+    ;;
+"lyrics")
+    shift 1
+    mpc-lyrics "$@"
+    ;;
+"beetrm")
+    shift 1
+    mpc-beetrm "$@"
+    ;;
+*)
+    mpc "$@"
+    ;;
+esac
+
+# vim: ft=sh