godot_4-export-templates: add version to derivation

This commit is contained in:
David McFarland
2025-03-08 11:17:24 -04:00
parent 1fd7e115a8
commit a30f85f22c
2 changed files with 16 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ let
export-templates-bin = (
callPackage ./export-templates-bin.nix {
inherit version;
inherit version godot;
hash = exportTemplatesHash;
}
);
@@ -1,6 +1,8 @@
{
fetchzip,
godot,
hash,
lib,
version,
}:
# Export templates is necessary for setting up Godot engine, it's used when exporting projects.
@@ -8,8 +10,20 @@
# Export templates version should be kept in sync with Godot version.
# https://docs.godotengine.org/en/stable/tutorials/export/exporting_projects.html#export-templates
fetchzip {
pname = "export_templates";
pname = "godot-export-templates";
version = version;
extension = "zip";
url = "https://github.com/godotengine/godot/releases/download/${version}/Godot_v${version}_export_templates.tpz";
inherit hash;
meta = {
inherit (godot.meta)
changelog
description
homepage
license
maintainers
;
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
};
}