From b317fc17f00ea74fe2267950b3119dddddd78b09 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 16 Nov 2024 21:13:24 +0100 Subject: 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. --- pkgs/by-name/mp/mpp/mpp.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 pkgs/by-name/mp/mpp/mpp.sh (limited to 'pkgs/by-name/mp/mpp/mpp.sh') 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 -- cgit 1.4.1