From 39db8ac1d87b90a51e53f95b831e7fc140148e30 Mon Sep 17 00:00:00 2001 From: Corey O'Connor Date: Wed, 4 Apr 2018 16:14:40 -0700 Subject: [PATCH] godot: add application metadata and man page to share. --- pkgs/development/tools/godot/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/development/tools/godot/default.nix b/pkgs/development/tools/godot/default.nix index e89b2f62b152..89cc7eb1bfee 100644 --- a/pkgs/development/tools/godot/default.nix +++ b/pkgs/development/tools/godot/default.nix @@ -42,6 +42,19 @@ in stdenv.mkDerivation rec { installPhase = '' mkdir -p $out/bin cp bin/godot.x11.tools.* $out/bin/godot + + mkdir -p "$out/share/applications" + cp misc/dist/linux/godot.desktop "$out/share/applications/" + substituteInPlace "$out/share/applications/godot.desktop" \ + --replace "Exec=godot" \ + "Exec=$out/bin/godot" + + mkdir -p "$out/share/icons/hicolor/scalable/apps/" + cp icon.svg "$out/share/icons/hicolor/scalable/apps/godot.svg" + cp icon.png "$out/share/icons/godot.png" + + mkdir -p "$out/share/man/man6" + cp misc/dist/linux/godot.6 "$out/share/man/man6/" ''; meta = {