diff options
| author | Isabella Bastaja <isabella@sorre.xyz> | 2026-03-22 21:49:41 +0100 |
|---|---|---|
| committer | Isabella Bastaja <isabella@sorre.xyz> | 2026-03-22 22:26:56 +0100 |
| commit | 50e2588f76ef70c8ea14df13e313618c00d15dcb (patch) | |
| tree | 429c8e853e03932362d70662e65800f36d156658 /wrappers/gallery-dl/default.nix | |
| parent | 4cccd2c27f3108f7fb8aa53b2406b11dd83e31ba (diff) | |
Add wrapper-manger, wrap gallery-dl
Diffstat (limited to 'wrappers/gallery-dl/default.nix')
| -rw-r--r-- | wrappers/gallery-dl/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/wrappers/gallery-dl/default.nix b/wrappers/gallery-dl/default.nix new file mode 100644 index 0000000..1c640f8 --- /dev/null +++ b/wrappers/gallery-dl/default.nix @@ -0,0 +1,19 @@ +{ pkgs, ... }: +let + jsonFormat = pkgs.formats.json { }; + config = (import ./config.nix); + jsonConfig = jsonFormat.generate "gallery-dl-config" config; +in +{ + wrappers.gallery-dl = { + basePackage = pkgs.gallery-dl; + prependFlags = [ + "--config" + jsonConfig + "--option" + # NOTE: escape the $ here because makeCWrapper otherwise expands it, + # evaluating to `/homeless-shelter` + "base-directory=\\$HOME/Pictures/gallery-dl" # TODO: maybe mandate XDG + ]; + }; +} |
