{ 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; }; }