10 desktopName = "Clone Hero";
11 desktopItem = makeDesktopItem {
12 inherit name desktopName;
13 comment = clonehero-unwrapped.meta.description;
16 categories = [ "Game" ];
21 inherit (clonehero-unwrapped) meta;
23 # Clone Hero has /usr/share/fonts hard-coded in its binary for looking up fonts.
24 # This workaround is necessary for rendering text on the keybinding screen (and possibly elsewhere)
25 # If a better solution is found, the FHS environment can be removed.
26 extraBuildCommands = ''
28 mkdir -p usr/share/fonts/truetype
29 ln -s ${liberation_ttf}/share/fonts/truetype/* usr/share/fonts/truetype
32 extraInstallCommands = ''
33 mkdir -p "$out/share/applications" "$out/share/pixmaps"
34 cp ${desktopItem}/share/applications/* "$out/share/applications"
35 ln -s ${clonehero-unwrapped}/share/clonehero_Data/Resources/UnityPlayer.png "$out/share/pixmaps/${name}.png"
38 runScript = callPackage ./xdg-wrapper.nix { };