about summary refs log tree commit diff stats
path: root/pkgs/by-name/mp/mpc-rm
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-11 13:43:40 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-11 14:03:45 +0200
commit9207419322db99e4d565d1409028175e1403be14 (patch)
tree189313c9ee09f36f1b2731b422857ad36fc3cea9 /pkgs/by-name/mp/mpc-rm
parentfeat(home/beets): Init the xtractor plugin (diff)
downloadnixos-config-9207419322db99e4d565d1409028175e1403be14.zip
fix(pkgs/mpc-rm): Rename to `mpc-beetrm`
This avoids shadowing the original `mpc rm` command
Diffstat (limited to 'pkgs/by-name/mp/mpc-rm')
-rwxr-xr-xpkgs/by-name/mp/mpc-rm/mpc-rm.sh11
-rw-r--r--pkgs/by-name/mp/mpc-rm/package.nix16
2 files changed, 0 insertions, 27 deletions
diff --git a/pkgs/by-name/mp/mpc-rm/mpc-rm.sh b/pkgs/by-name/mp/mpc-rm/mpc-rm.sh
deleted file mode 100755
index 3209503c..00000000
--- a/pkgs/by-name/mp/mpc-rm/mpc-rm.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/env dash
-
-# shellcheck source=/dev/null
-SHELL_LIBRARY_VERSION="2.1.2" . %SHELL_LIBRARY_PATH
-
-beet remove --delete \
-    title:"$(mpc --format '%title%' current)" \
-    album:"$(mpc --format '%album%' current)"
-mpc del 0
-
-# vim: ft=sh
diff --git a/pkgs/by-name/mp/mpc-rm/package.nix b/pkgs/by-name/mp/mpc-rm/package.nix
deleted file mode 100644
index 8af84279..00000000
--- a/pkgs/by-name/mp/mpc-rm/package.nix
+++ /dev/null
@@ -1,16 +0,0 @@
-{
-  sysLib,
-  mpc-cli,
-  beets,
-}:
-sysLib.writeShellScript {
-  name = "mpc-rm";
-  src = ./mpc-rm.sh;
-  generateCompletions = false;
-  keepPath = false;
-
-  dependencies = [
-    mpc-cli
-    beets
-  ];
-}