Unverified Commit dd439a45 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

knossosnet: add desktop file (#459741)

parents 4adc1681 23784368
Loading
Loading
Loading
Loading
+19 −0
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@
  lib,
  openal,
  dotnetCorePackages,
  copyDesktopItems,
  makeDesktopItem,
}:

buildDotnetModule rec {
@@ -25,6 +27,23 @@ buildDotnetModule rec {

  runtimeDeps = [ openal ];

  nativeBuildInputs = [ copyDesktopItems ];

  desktopItems = [
    (makeDesktopItem {
      name = "knossos";
      exec = "Knossos.NET";
      icon = "knossos";
      desktopName = "Knossos.NET";
      comment = "Multi-platform launcher for Freespace 2 Open";
      categories = [ "Game" ];
    })
  ];

  postInstall = ''
    install -Dm644 $src/packaging/linux/knossos-512.png $out/share/icons/hicolor/512x512/apps/knossos.png
  '';

  meta = with lib; {
    homepage = "https://github.com/KnossosNET/Knossos.NET";
    description = "Multi-platform launcher for Freespace 2 Open";