diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-16 21:13:24 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-11-16 21:13:24 +0100 |
commit | b317fc17f00ea74fe2267950b3119dddddd78b09 (patch) | |
tree | bdcf6882c5ba53129001597a9d057a0c4f9d4ca2 /pkgs/by-name/mp/mpc | |
parent | build(treewide): Update (diff) | |
download | nixos-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/mpc')
-rwxr-xr-x | pkgs/by-name/mp/mpc/mpc.sh | 24 | ||||
-rw-r--r-- | pkgs/by-name/mp/mpc/package.nix | 15 |
2 files changed, 0 insertions, 39 deletions
diff --git a/pkgs/by-name/mp/mpc/mpc.sh b/pkgs/by-name/mp/mpc/mpc.sh deleted file mode 100755 index 0d636ac5..00000000 --- a/pkgs/by-name/mp/mpc/mpc.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/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 diff --git a/pkgs/by-name/mp/mpc/package.nix b/pkgs/by-name/mp/mpc/package.nix deleted file mode 100644 index d73c0523..00000000 --- a/pkgs/by-name/mp/mpc/package.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ - sysLib, - mpc-cli, -}: -sysLib.writeShellScript { - name = "mpc"; - src = ./mpc.sh; - generateCompletions = false; - # We source the wrappers from the environment, to ensure that they have the same - # configurations (e.g. MPD_MUSIC_DIR in `mpc-lyrics`) - keepPath = true; - dependencies = [ - mpc-cli - ]; -} |