gallery-dl: add module
gallery-dl [1] is a cli to download image galleries from several image hosting sites. [1] https://github.com/mikf/gallery-dl
This commit is contained in:
parent
4cfc0a1e02
commit
f9f4c8e1e7
7 changed files with 82 additions and 0 deletions
1
tests/modules/programs/gallery-dl/default.nix
Normal file
1
tests/modules/programs/gallery-dl/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ gallery-dl = ./gallery-dl.nix; }
|
||||
28
tests/modules/programs/gallery-dl/gallery-dl.nix
Normal file
28
tests/modules/programs/gallery-dl/gallery-dl.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
programs.gallery-dl = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
cache.file = "~/gallery-dl/cache.sqlite3";
|
||||
extractor.base-directory = "~/gallery-dl/";
|
||||
};
|
||||
};
|
||||
|
||||
test.stubs.gallery-dl = { };
|
||||
|
||||
nmt.script = ''
|
||||
assertFileContent home-files/.config/gallery-dl/config.json \
|
||||
${builtins.toFile "gallery-dl-expected-settings.json" ''
|
||||
{
|
||||
"cache": {
|
||||
"file": "~/gallery-dl/cache.sqlite3"
|
||||
},
|
||||
"extractor": {
|
||||
"base-directory": "~/gallery-dl/"
|
||||
}
|
||||
}
|
||||
''}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue