diff options
Diffstat (limited to '')
-rw-r--r-- | pkgs/by-name/sp/spodi/package.nix | 39 | ||||
-rwxr-xr-x | pkgs/by-name/sp/spodi/sh/download.sh (renamed from pkgs/sources/scripts/source/specific/spodi/sh/download.sh) | 0 | ||||
-rwxr-xr-x | pkgs/by-name/sp/spodi/sh/update.sh (renamed from pkgs/sources/scripts/source/specific/spodi/sh/update.sh) | 0 | ||||
-rwxr-xr-x | pkgs/by-name/sp/spodi/spodi.sh (renamed from pkgs/sources/scripts/source/specific/spodi/spodi.sh) | 0 |
4 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; + }; +} diff --git a/pkgs/sources/scripts/source/specific/spodi/sh/download.sh b/pkgs/by-name/sp/spodi/sh/download.sh index fe9746c8..fe9746c8 100755 --- a/pkgs/sources/scripts/source/specific/spodi/sh/download.sh +++ b/pkgs/by-name/sp/spodi/sh/download.sh diff --git a/pkgs/sources/scripts/source/specific/spodi/sh/update.sh b/pkgs/by-name/sp/spodi/sh/update.sh index a289cf58..a289cf58 100755 --- a/pkgs/sources/scripts/source/specific/spodi/sh/update.sh +++ b/pkgs/by-name/sp/spodi/sh/update.sh diff --git a/pkgs/sources/scripts/source/specific/spodi/spodi.sh b/pkgs/by-name/sp/spodi/spodi.sh index 475fd48a..475fd48a 100755 --- a/pkgs/sources/scripts/source/specific/spodi/spodi.sh +++ b/pkgs/by-name/sp/spodi/spodi.sh |