mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
simple64: add desktop file (#353525)
This commit is contained in:
commit
033194eea8
@ -15,6 +15,8 @@
|
|||||||
hidapi,
|
hidapi,
|
||||||
qt6,
|
qt6,
|
||||||
vulkan-loader,
|
vulkan-loader,
|
||||||
|
makeDesktopItem,
|
||||||
|
copyDesktopItems,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -51,6 +53,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
ninja
|
ninja
|
||||||
pkg-config
|
pkg-config
|
||||||
makeWrapper
|
makeWrapper
|
||||||
|
copyDesktopItems
|
||||||
# fake git command for version info generator
|
# fake git command for version info generator
|
||||||
(writeShellScriptBin "git" "echo ${finalAttrs.src.rev}")
|
(writeShellScriptBin "git" "echo ${finalAttrs.src.rev}")
|
||||||
];
|
];
|
||||||
@ -84,6 +87,8 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
mkdir -p $out/share/simple64 $out/bin
|
mkdir -p $out/share/simple64 $out/bin
|
||||||
cp -r simple64/* $out/share/simple64
|
cp -r simple64/* $out/share/simple64
|
||||||
|
|
||||||
|
install -Dm644 ./simple64-gui/icons/simple64.svg -t $out/share/icons/hicolor/scalable/apps/
|
||||||
|
|
||||||
makeWrapper $out/share/simple64/simple64-gui $out/bin/simple64-gui \
|
makeWrapper $out/share/simple64/simple64-gui $out/bin/simple64-gui \
|
||||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]} \
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ vulkan-loader ]} \
|
||||||
"''${qtWrapperArgs[@]}"
|
"''${qtWrapperArgs[@]}"
|
||||||
@ -91,6 +96,22 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
runHook postInstall
|
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 = {
|
meta = {
|
||||||
description = "Easy to use N64 emulator";
|
description = "Easy to use N64 emulator";
|
||||||
homepage = "https://simple64.github.io";
|
homepage = "https://simple64.github.io";
|
||||||
|
Loading…
Reference in New Issue
Block a user