about summary refs log tree commit diff stats
path: root/sys/nixpkgs/pkgs/scripts/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nixpkgs/pkgs/scripts/default.nix')
-rw-r--r--sys/nixpkgs/pkgs/scripts/default.nix24
1 files changed, 21 insertions, 3 deletions
diff --git a/sys/nixpkgs/pkgs/scripts/default.nix b/sys/nixpkgs/pkgs/scripts/default.nix
index 6ef59b0e..6353e690 100644
--- a/sys/nixpkgs/pkgs/scripts/default.nix
+++ b/sys/nixpkgs/pkgs/scripts/default.nix
@@ -306,10 +306,28 @@
         dependencies = builtins.attrValues {inherit (prev) mediainfo jq gawk;};
       };
 
-      spodi-scr = write_shell {
+      spodi-scr = sysLib.writeShellScriptMultiPart {
         name = "spodi";
-        path = "wrappers";
-        dependencies = builtins.attrValues {inherit (prev) gawk expect spotdl fd coreutils;};
+        keepPath = false;
+        src = ./source/specific/spodi;
+        baseName = "spodi.sh";
+        cmdPrefix = "sh";
+        cmdNames = [
+          "download.sh"
+          "update.sh"
+        ];
+        dependencies = with prev; [
+          gawk
+          expect
+          spotdl
+          fd
+          coreutils
+        ];
+        generateCompletions = true;
+        replacementStrings = {
+          XDG_CACHE_HOME = config.xdg.cacheHome;
+          XDG_MUSIC_DIR = config.xdg.userDirs.music;
+        };
       };
 
       update-sys-scr = write_shell {