about summary refs log tree commit diff stats
path: root/pkgs/by-name/mp/mpp-lyrics/package.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-14 11:52:31 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-04-14 11:52:31 +0200
commit406cb749db8eee88c3d74b04389d8a5dd0cb9ebe (patch)
treedb08c5f669fb86d973e7e991f238d93de5a0371c /pkgs/by-name/mp/mpp-lyrics/package.nix
parentpkgs/mpp-beetrm: Migrate to `writeShellApplication` (diff)
downloadnixos-config-406cb749db8eee88c3d74b04389d8a5dd0cb9ebe.zip
pkgs/mpp-lyrics: Migrate to `writeShellApplication`
Diffstat (limited to '')
-rw-r--r--pkgs/by-name/mp/mpp-lyrics/package.nix17
1 files changed, 6 insertions, 11 deletions
diff --git a/pkgs/by-name/mp/mpp-lyrics/package.nix b/pkgs/by-name/mp/mpp-lyrics/package.nix
index 76b590c7..23979c14 100644
--- a/pkgs/by-name/mp/mpp-lyrics/package.nix
+++ b/pkgs/by-name/mp/mpp-lyrics/package.nix
@@ -1,23 +1,18 @@
 {
-  sysLib,
+  writeShellApplication,
+  # Dependencies
   exiftool,
   mpc,
   jq,
   less,
   locale, # dependency of less
-  mpd_music_dir ? "\${XDG_MUSIC_DIR}",
 }:
-sysLib.writeShellScript {
+writeShellApplication {
   name = "mpp-lyrics";
-  src = ./mpp-lyrics.sh;
-  generateCompletions = false;
-  keepPath = false;
+  text = builtins.readFile ./mpp-lyrics.sh;
+  inheritPath = false;
 
-  replacementStrings = {
-    MPD_MUSIC_DIR = mpd_music_dir;
-  };
-
-  dependencies = [
+  runtimeInputs = [
     exiftool
     mpc
     jq