satisfactorymodmanager: add desktop file (#399826)

authored by Toma and committed by GitHub 54c2fca0 8f5c5639

+19
+19
pkgs/by-name/sa/satisfactorymodmanager/package.nix
··· 8 wails, 9 wrapGAppsHook3, 10 glib-networking, 11 }: 12 13 buildGoModule rec { ··· 40 pnpm_8.configHook 41 wails 42 wrapGAppsHook3 43 ]; 44 45 buildInputs = [ ··· 78 installPhase = '' 79 runHook preInstall 80 install -Dm755 build/bin/SatisfactoryModManager -t "$out/bin" 81 runHook postInstall 82 ''; 83 84 meta = { 85 broken = stdenv.hostPlatform.isDarwin;
··· 8 wails, 9 wrapGAppsHook3, 10 glib-networking, 11 + makeDesktopItem, 12 + copyDesktopItems, 13 }: 14 15 buildGoModule rec { ··· 42 pnpm_8.configHook 43 wails 44 wrapGAppsHook3 45 + copyDesktopItems 46 ]; 47 48 buildInputs = [ ··· 81 installPhase = '' 82 runHook preInstall 83 install -Dm755 build/bin/SatisfactoryModManager -t "$out/bin" 84 + 85 + for i in 16 32 64 128 256 512; do 86 + install -D ./icons/"$i"x"$i".png "$out"/share/icons/hicolor/"$i"x"$i"/apps/SatisfactoryModManager.png 87 + done 88 runHook postInstall 89 ''; 90 + 91 + desktopItems = [ 92 + (makeDesktopItem { 93 + name = "SatisfactoryModManager"; 94 + desktopName = "Satisfactory Mod Manager"; 95 + exec = "SatisfactoryModManager %u"; 96 + mimeTypes = [ "x-scheme-handler/smmanager" ]; 97 + icon = "SatisfactoryModManager"; 98 + terminal = false; 99 + categories = [ "Game" ]; 100 + }) 101 + ]; 102 103 meta = { 104 broken = stdenv.hostPlatform.isDarwin;