gallery-dl: refactor

this shouldn't create any rebuilds
This commit is contained in:
quantenzitrone
2026-02-07 09:48:39 +01:00
parent f55f0a55c0
commit aee00ac804
+4 -7
View File
@@ -6,18 +6,15 @@
python3Packages,
}:
let
python3Packages.buildPythonApplication (finalAttrs: {
pname = "gallery-dl";
version = "1.31.5";
in
python3Packages.buildPythonApplication {
inherit pname version;
pyproject = true;
src = fetchFromGitHub {
owner = "mikf";
repo = "gallery-dl";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-jrTLiZs3LJaFZL40vxWS/1J9HHke9gmV9840AOUtLCU=";
};
@@ -50,7 +47,7 @@ python3Packages.buildPythonApplication {
passthru.updateScript = nix-update-script { };
meta = {
changelog = "https://github.com/mikf/gallery-dl/blob/v${version}/CHANGELOG.md";
changelog = "https://github.com/mikf/gallery-dl/blob/v${finalAttrs.version}/CHANGELOG.md";
description = "Command-line program to download image-galleries and -collections from several image hosting sites";
homepage = "https://github.com/mikf/gallery-dl";
license = lib.licenses.gpl2Only;
@@ -61,4 +58,4 @@ python3Packages.buildPythonApplication {
lucasew
];
};
}
})