From 73cb8c56c72de9dc4e3cc69ea82bde3964632564 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 23 Mar 2024 20:48:36 +0100 Subject: feat(pkgs/scripts/spodi): Rewrite to support artist `update` --- sys/nixpkgs/pkgs/scripts/default.nix | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'sys/nixpkgs/pkgs/scripts/default.nix') 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 { -- cgit 1.4.1