From 87b65fa13fabb1a3d895d8d0b0185bf2a556951e Mon Sep 17 00:00:00 2001 From: Atemu Date: Thu, 3 Jun 2021 14:24:13 +0200 Subject: [PATCH] jetbrains: add mainPrograms --- pkgs/applications/editors/jetbrains/common.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/jetbrains/common.nix b/pkgs/applications/editors/jetbrains/common.nix index 635a8dbf46f7..c9903b4a4604 100644 --- a/pkgs/applications/editors/jetbrains/common.nix +++ b/pkgs/applications/editors/jetbrains/common.nix @@ -3,7 +3,7 @@ , vmopts ? null }: -{ name, product, version, src, wmClass, jdk, meta, extraLdPath ? [] }: +{ name, product, version, src, wmClass, jdk, meta, extraLdPath ? [] }@args: with lib; @@ -18,7 +18,9 @@ let loName = toLower product; in with stdenv; lib.makeOverridable mkDerivation rec { - inherit name src meta; + inherit name src; + meta = args.meta // { mainProgram = execName; }; + desktopItem = makeDesktopItem { name = execName; exec = execName;