Skip to content

Commit

Permalink
hbmame: fix desktop item
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys-T committed Sep 26, 2024
1 parent aa561d9 commit 9dc9a70
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pkgs/mame/hbmame.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ mame, lib, fetchFromGitHub, fetchpatch, stdenv }: mame.overrideAttrs (old: rec {
{ mame, lib, fetchFromGitHub, fetchpatch, makeDesktopItem, stdenv }: mame.overrideAttrs (old: rec {
pname = "hbmame";
version = "0.245.20";
src = fetchFromGitHub {
Expand All @@ -7,6 +7,19 @@
rev = "tag${builtins.replaceStrings [ "." ] [ "" ] (lib.removePrefix "0." version)}";
sha256 = "sha256-Q4mvgjnlDML1xFORPpcTq/3VKOnCccCXA1cPn+L5jJ8=";
};
desktopItems = [
(makeDesktopItem {
name = "HBMAME";
desktopName = "HBMAME";
exec = "hbmame";
icon = "mame"; # TODO find an HBMAME-specific icon?
type = "Application";
genericName = "Multi-purpose homebrew emulation framework";
# comment = "Play vintage games using the MAME emulator";
categories = [ "Game" "Emulator" ];
keywords = [ "Game" "Emulator" "Arcade" ];
})
];
patches = [
./patches/hbmame/0001-monaco-fix-out-of-bounds-array-access.patch
] ++ map (patch: if lib.hasInfix "001-use-absolute-paths" (""+patch) then fetchpatch {
Expand Down

0 comments on commit 9dc9a70

Please sign in to comment.