From 29658275efb11e11f34c45bc04b538a73c0644e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 2 Aug 2021 09:14:19 +0200 Subject: [PATCH] mgba: cleanup --- pkgs/misc/emulators/mgba/default.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/misc/emulators/mgba/default.nix b/pkgs/misc/emulators/mgba/default.nix index 4d0f98552717..c15c8a0ad76a 100644 --- a/pkgs/misc/emulators/mgba/default.nix +++ b/pkgs/misc/emulators/mgba/default.nix @@ -9,6 +9,7 @@ , libedit , libelf , libzip +, copyDesktopItems , makeDesktopItem , minizip , pkg-config @@ -48,8 +49,8 @@ stdenv.mkDerivation rec { qttools ]; - postInstall = let - desktopItem = makeDesktopItem { + desktopItems = [ + (makeDesktopItem { name = "mgba"; exec = "mgba-qt"; icon = "mgba"; @@ -58,11 +59,8 @@ stdenv.mkDerivation rec { genericName = "Game Boy Advance Emulator"; categories = "Game;Emulator;"; startupNotify = "false"; - }; - in - '' - cp -r ${desktopItem}/share/applications $out/share - ''; + }) + ]; meta = with lib; { homepage = "https://mgba.io";