srb2kart: add desktop item
This commit is contained in:
parent
731e950709
commit
8f4f53815c
@ -11,6 +11,8 @@
|
||||
, SDL2_mixer
|
||||
, zlib
|
||||
, makeWrapper
|
||||
, makeDesktopItem
|
||||
, copyDesktopItems
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@ -48,6 +50,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
cmake
|
||||
nasm
|
||||
makeWrapper
|
||||
copyDesktopItems
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@ -66,6 +69,19 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
"-DSDL2_INCLUDE_DIR=${lib.getDev SDL2}/include/SDL2"
|
||||
];
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem rec {
|
||||
name = "Sonic Robo Blast 2 Kart";
|
||||
exec = finalAttrs.pname;
|
||||
icon = finalAttrs.pname;
|
||||
comment = "Kart racing mod based on SRB2";
|
||||
desktopName = name;
|
||||
genericName = name;
|
||||
startupWMClass = ".srb2kart-wrapped";
|
||||
categories = [ "Game" ];
|
||||
})
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user