vassal: add desktop entry (#418154)

authored by Peder Bergebakken Sundt and committed by GitHub 1189c23f b808c31e

+26 -1
+26 -1
pkgs/by-name/va/vassal/package.nix
··· 6 jre, 7 makeWrapper, 8 wrapGAppsHook3, 9 }: 10 11 stdenv.mkDerivation rec { ··· 24 nativeBuildInputs = [ 25 makeWrapper 26 wrapGAppsHook3 27 ]; 28 29 installPhase = '' ··· 39 --add-flags "-Duser.dir=$out -cp $out/share/vassal/Vengine.jar \ 40 VASSAL.launch.ModuleManager" 41 42 runHook postInstall 43 ''; 44 45 # Don't move doc to share/, VASSAL expects it to be in the root 46 forceShare = [ 47 "man" 48 "info" 49 ]; 50 51 meta = with lib; { 52 description = "Free, open-source boardgame engine"; 53 homepage = "https://vassalengine.org/"; 54 sourceProvenance = with sourceTypes; [ binaryBytecode ]; 55 license = licenses.lgpl21Only; 56 maintainers = with maintainers; [ tvestelind ]; 57 - platforms = platforms.unix; 58 mainProgram = "vassal"; 59 }; 60 }
··· 6 jre, 7 makeWrapper, 8 wrapGAppsHook3, 9 + makeDesktopItem, 10 + copyDesktopItems, 11 + versionCheckHook, 12 }: 13 14 stdenv.mkDerivation rec { ··· 27 nativeBuildInputs = [ 28 makeWrapper 29 wrapGAppsHook3 30 + copyDesktopItems 31 ]; 32 33 installPhase = '' ··· 43 --add-flags "-Duser.dir=$out -cp $out/share/vassal/Vengine.jar \ 44 VASSAL.launch.ModuleManager" 45 46 + install -Dm444 -t "$out/share/icons/hicolor/scalable/apps/" VASSAL.svg 47 + 48 runHook postInstall 49 ''; 50 51 + desktopItems = [ 52 + (makeDesktopItem { 53 + name = "VASSAL"; 54 + exec = "vassal"; 55 + icon = "VASSAL"; 56 + desktopName = "VASSAL"; 57 + comment = "The open-source boardgame engine"; 58 + categories = [ "Game" ]; 59 + startupWMClass = "VASSAL-launch-ModuleManager"; 60 + }) 61 + ]; 62 + 63 # Don't move doc to share/, VASSAL expects it to be in the root 64 forceShare = [ 65 "man" 66 "info" 67 ]; 68 69 + nativeInstallCheckInputs = [ 70 + versionCheckHook 71 + ]; 72 + doInstallCheck = true; 73 + versionCheckProgram = "${placeholder "out"}/bin/vassal"; 74 + versionCheckProgramArg = "--version"; 75 + 76 meta = with lib; { 77 description = "Free, open-source boardgame engine"; 78 homepage = "https://vassalengine.org/"; 79 sourceProvenance = with sourceTypes; [ binaryBytecode ]; 80 license = licenses.lgpl21Only; 81 maintainers = with maintainers; [ tvestelind ]; 82 + platforms = with lib.platforms; unix ++ windows; 83 mainProgram = "vassal"; 84 }; 85 }