From a7b0ff0a0de9d5576fe15fa9083c933cfd430902 Mon Sep 17 00:00:00 2001 From: Lukas Kohler Date: Tue, 25 Apr 2023 21:09:54 +0200 Subject: [PATCH] bugdom,nanosaur,nanosaur2,otto-matic: add desktop files (#215525) --- pkgs/games/bugdom/default.nix | 2 ++ pkgs/games/nanosaur/default.nix | 2 ++ pkgs/games/nanosaur2/default.nix | 2 ++ pkgs/games/otto-matic/default.nix | 3 ++- 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/games/bugdom/default.nix b/pkgs/games/bugdom/default.nix index 9bceef012907..01db213de985 100644 --- a/pkgs/games/bugdom/default.nix +++ b/pkgs/games/bugdom/default.nix @@ -51,6 +51,8 @@ stdenv.mkDerivation rec { mv Data $out/share/bugdom install -Dm755 {.,$out/bin}/Bugdom wrapProgram $out/bin/Bugdom --run "cd $out/share/bugdom" + install -Dm644 $src/packaging/bugdom.desktop $out/share/applications/bugdom.desktop + install -Dm644 $src/packaging/bugdom-desktopicon.png $out/share/pixmaps/bugdom-desktopicon.png '') + '' runHook postInstall diff --git a/pkgs/games/nanosaur/default.nix b/pkgs/games/nanosaur/default.nix index 32c2a0b9ecc9..45f695edf9f7 100644 --- a/pkgs/games/nanosaur/default.nix +++ b/pkgs/games/nanosaur/default.nix @@ -27,6 +27,8 @@ stdenv.mkDerivation rec { mkdir -p "$out/bin" mv Nanosaur Data ReadMe.txt "$out/" makeWrapper $out/Nanosaur $out/bin/Nanosaur --chdir "$out" + install -Dm644 $src/packaging/nanosaur.desktop $out/share/applications/nanosaur.desktop + install -Dm644 $src/packaging/nanosaur-desktopicon.png $out/share/pixmaps/nanosaur-desktopicon.png runHook postInstall ''; diff --git a/pkgs/games/nanosaur2/default.nix b/pkgs/games/nanosaur2/default.nix index e4e0919cd30c..28ea13ebff3c 100644 --- a/pkgs/games/nanosaur2/default.nix +++ b/pkgs/games/nanosaur2/default.nix @@ -27,6 +27,8 @@ stdenv.mkDerivation rec { mkdir -p "$out/bin" mv Nanosaur2 Data ReadMe.txt "$out/" makeWrapper $out/Nanosaur2 $out/bin/Nanosaur2 --chdir "$out" + install -Dm644 $src/packaging/nanosaur2.desktop $out/share/applications/nanosaur2.desktop + install -Dm644 $src/packaging/nanosaur2-desktopicon.png $out/share/pixmaps/nanosaur2-desktopicon.png runHook postInstall ''; diff --git a/pkgs/games/otto-matic/default.nix b/pkgs/games/otto-matic/default.nix index a3d75bc34aa0..7f066b743af6 100644 --- a/pkgs/games/otto-matic/default.nix +++ b/pkgs/games/otto-matic/default.nix @@ -29,7 +29,8 @@ stdenv.mkDerivation rec { mkdir -p "$out/bin" mv OttoMatic Data ReadMe.txt "$out/" makeWrapper $out/OttoMatic $out/bin/OttoMatic --chdir "$out" - + install -Dm644 $src/packaging/io.jor.ottomatic.desktop $out/share/applications/io.jor.ottomatic.desktop + install -Dm644 $src/packaging/io.jor.ottomatic.png $out/share/pixmaps/io.jor.ottomatic.png runHook postInstall '';