Unverified Commit cb4d42c3 authored by Cosima Neidahl's avatar Cosima Neidahl Committed by GitHub
Browse files

sunvox: added desktop entry for application launchers (#455561)

parents 7115b9f3 52b867cd
Loading
Loading
Loading
Loading
+18 −1
Original line number Diff line number Diff line
@@ -4,14 +4,15 @@
  fetchzip,
  alsa-lib,
  autoPatchelfHook,
  copyDesktopItems,
  libglvnd,
  libjack2,
  libX11,
  libXi,
  makeDesktopItem,
  makeWrapper,
  SDL2,
}:

let
  platforms = {
    "x86_64-linux" = "linux_x86_64";
@@ -41,6 +42,7 @@ stdenv.mkDerivation (finalAttrs: {
  nativeBuildInputs =
    lib.optionals stdenv.hostPlatform.isLinux [
      autoPatchelfHook
      copyDesktopItems
    ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [
      makeWrapper
@@ -58,6 +60,21 @@ stdenv.mkDerivation (finalAttrs: {
    libjack2
  ];

  desktopItems = lib.optionals stdenv.hostPlatform.isLinux [
    (makeDesktopItem {
      name = "sunvox";
      exec = "sunvox";
      desktopName = "SunVox";
      genericName = "Modular Synthesizer";
      comment = "Modular synthesizer with pattern-based sequencer";
      categories = [
        "AudioVideo"
        "Audio"
        "Midi"
      ];
    })
  ];

  dontConfigure = true;
  dontBuild = true;