diff options
Diffstat (limited to '')
-rw-r--r-- | pkgs/by-name/sp/spodi/package.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/by-name/sp/spodi/package.nix b/pkgs/by-name/sp/spodi/package.nix new file mode 100644 index 00000000..83540a21 --- /dev/null +++ b/pkgs/by-name/sp/spodi/package.nix @@ -0,0 +1,39 @@ +{ + sysLib, + # dependencies + gawk, + expect, + spotdl, + fd, + coreutils, + # config + xdgCacheHome ? builtins.getEnv "XDG_CACHE_HOME", + xdgUserDirsMusic ? builtins.getEnv "XDG_MUSIC_HOME", +}: +sysLib.writeShellScriptMultiPart { + name = "spodi"; + src = ./.; + + generateCompletions = true; + keepPath = false; + + baseName = "spodi.sh"; + cmdPrefix = "sh"; + cmdNames = [ + "download.sh" + "update.sh" + ]; + + dependencies = [ + gawk + expect + spotdl + fd + coreutils + ]; + + replacementStrings = { + XDG_CACHE_HOME = xdgCacheHome; + XDG_MUSIC_DIR = xdgUserDirsMusic; + }; +} |