diff options
author | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2021-04-16 18:30:17 +0200 |
---|---|---|
committer | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2021-04-16 18:49:20 +0200 |
commit | 7142f594baaffd8822ca92712015b33a9571fe9f (patch) | |
tree | a0017f5f8fb0390f90813b29501892ee3a31bda1 /pkgs/development/tools/godot | |
parent | 339f8138698efc512f2e4df4eb11b7c23cc2a9ee (diff) | |
download | nixpkgs-7142f594baaffd8822ca92712015b33a9571fe9f.tar nixpkgs-7142f594baaffd8822ca92712015b33a9571fe9f.tar.gz nixpkgs-7142f594baaffd8822ca92712015b33a9571fe9f.tar.bz2 nixpkgs-7142f594baaffd8822ca92712015b33a9571fe9f.tar.lz nixpkgs-7142f594baaffd8822ca92712015b33a9571fe9f.tar.xz nixpkgs-7142f594baaffd8822ca92712015b33a9571fe9f.tar.zst nixpkgs-7142f594baaffd8822ca92712015b33a9571fe9f.zip |
godot-export-templates: init at 3.2.3
Diffstat (limited to 'pkgs/development/tools/godot')
-rw-r--r-- | pkgs/development/tools/godot/export-templates.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/development/tools/godot/export-templates.nix b/pkgs/development/tools/godot/export-templates.nix new file mode 100644 index 00000000000..bfcf3e3b3dc --- /dev/null +++ b/pkgs/development/tools/godot/export-templates.nix @@ -0,0 +1,17 @@ +{ godot, lib }: + +# https://docs.godotengine.org/en/stable/development/compiling/compiling_for_x11.html#building-export-templates +godot.overrideAttrs (oldAttrs: rec { + pname = "godot-export-templates"; + sconsFlags = "target=release platform=x11 tools=no"; + installPhase = '' + # The godot export command expects the export templates at + # .../share/godot/templates/3.2.3.stable with 3.2.3 being the godot version. + mkdir -p "$out/share/godot/templates/${oldAttrs.version}.stable" + cp bin/godot.x11.opt.64 $out/share/godot/templates/${oldAttrs.version}.stable/linux_x11_64_release + ''; + outputs = [ "out" ]; + meta.description = + "Free and Open Source 2D and 3D game engine (export templates)"; + meta.maintainers = with lib.maintainers; [ twey jojosch ]; +}) |