2024-03-06 18:43:55 +01:00
|
|
|
{ config, ... }:
|
2022-07-09 06:20:00 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
programs.gallery-dl = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-03-06 18:43:55 +01:00
|
|
|
package = config.lib.test.mkStubPackage { };
|
|
|
|
|
2022-07-09 06:20:00 +02:00
|
|
|
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/"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
''}
|
|
|
|
'';
|
|
|
|
}
|