Skip to content

Commit

Permalink
simple64: add missing desktop file
Browse files Browse the repository at this point in the history
  • Loading branch information
Gliczy committed Nov 3, 2024
1 parent 181c598 commit 4c077b5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pkgs/by-name/si/simple64/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
hidapi,
qt6,
vulkan-loader,
makeDesktopItem,
copyDesktopItems,
}:

let
Expand Down Expand Up @@ -51,6 +53,7 @@ stdenv.mkDerivation (finalAttrs: {
ninja
pkg-config
makeWrapper
copyDesktopItems
# fake git command for version info generator
(writeShellScriptBin "git" "echo ${finalAttrs.src.rev}")
];
Expand Down Expand Up @@ -84,13 +87,32 @@ stdenv.mkDerivation (finalAttrs: {
mkdir -p $out/share/simple64 $out/bin
cp -r simple64/* $out/share/simple64
mkdir -p $out/share/icons/hicolor/scalable/apps
install -Dm644 ./simple64-gui/icons/simple64.svg $out/share/icons/hicolor/scalable/apps/
makeWrapper $out/share/simple64/simple64-gui $out/bin/simple64-gui \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]} \
"''${qtWrapperArgs[@]}"
runHook postInstall
'';

desktopItems = [
(makeDesktopItem {
name = "simple64";
desktopName = "simple64";
genericName = "Nintendo 64 Emulator";
exec = "simple64-gui";
mimeTypes = [ "application/x-n64-rom" ];
icon = "simple64";
terminal = false;
categories = [
"Game"
"Emulator"
];
})
];

meta = {
description = "Easy to use N64 emulator";
homepage = "https://simple64.github.io";
Expand Down

0 comments on commit 4c077b5

Please sign in to comment.