summary refs log tree commit diff
path: root/pkgs/development/tools/godot/headless.nix
diff options
context:
space:
mode:
authorYusuf Bera Ertan <y.bera003.06@protonmail.com>2020-08-22 18:39:26 +0300
committerYusuf Bera Ertan <y.bera003.06@protonmail.com>2020-08-22 19:13:31 +0300
commit92470eba197efc2024582da6787f39f2f72008e2 (patch)
tree8c4b4251bc32622c7b35eb178f75b9060bafa794 /pkgs/development/tools/godot/headless.nix
parent1566bd75204d700af2330b987c6b29e0cef3cab6 (diff)
downloadnixpkgs-92470eba197efc2024582da6787f39f2f72008e2.tar
nixpkgs-92470eba197efc2024582da6787f39f2f72008e2.tar.gz
nixpkgs-92470eba197efc2024582da6787f39f2f72008e2.tar.bz2
nixpkgs-92470eba197efc2024582da6787f39f2f72008e2.tar.lz
nixpkgs-92470eba197efc2024582da6787f39f2f72008e2.tar.xz
nixpkgs-92470eba197efc2024582da6787f39f2f72008e2.tar.zst
nixpkgs-92470eba197efc2024582da6787f39f2f72008e2.zip
godot-headless: init at 3.2.2
Diffstat (limited to 'pkgs/development/tools/godot/headless.nix')
-rw-r--r--pkgs/development/tools/godot/headless.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/tools/godot/headless.nix b/pkgs/development/tools/godot/headless.nix
new file mode 100644
index 00000000000..0ae28b774fb
--- /dev/null
+++ b/pkgs/development/tools/godot/headless.nix
@@ -0,0 +1,18 @@
+{ godot, stdenv }:
+godot.overrideAttrs (oldAttrs: rec {
+  pname = "godot-headless";
+  sconsFlags = "target=release_debug platform=server tools=yes";
+  installPhase = ''
+    mkdir -p "$out/bin"
+    cp bin/godot_server.* $out/bin/godot-headless
+
+    mkdir "$dev"
+    cp -r modules/gdnative/include $dev
+
+    mkdir -p "$man/share/man/man6"
+    cp misc/dist/linux/godot.6 "$man/share/man/man6/"
+  '';
+  meta.description =
+    "Free and Open Source 2D and 3D game engine (headless build)";
+  meta.maintainers = with stdenv.lib.maintainers; [ twey yusdacra ];
+})