diff --git a/pkgs/by-name/ga/gallery-dl/package.nix b/pkgs/by-name/ga/gallery-dl/package.nix index b16a8b26e5b6..2d3edf79a28a 100644 --- a/pkgs/by-name/ga/gallery-dl/package.nix +++ b/pkgs/by-name/ga/gallery-dl/package.nix @@ -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 ]; }; -} +})