summary refs log tree commit diff
path: root/pkgs/build-support/make-desktopitem
diff options
context:
space:
mode:
authorAntoine Fontaine <antoine.fontaine@epfl.ch>2021-04-14 20:59:10 +0200
committerAntoine Fontaine <antoine.fontaine@epfl.ch>2021-06-04 17:48:46 +0200
commitc4b3aa62608d592d8a983be685f7e82000f4de30 (patch)
tree6cd4148bc2be09fe51b3a25fa625f539febe6f62 /pkgs/build-support/make-desktopitem
parent42e87863e61ed6080d4c2932165fb6035a42e994 (diff)
downloadnixpkgs-c4b3aa62608d592d8a983be685f7e82000f4de30.tar
nixpkgs-c4b3aa62608d592d8a983be685f7e82000f4de30.tar.gz
nixpkgs-c4b3aa62608d592d8a983be685f7e82000f4de30.tar.bz2
nixpkgs-c4b3aa62608d592d8a983be685f7e82000f4de30.tar.lz
nixpkgs-c4b3aa62608d592d8a983be685f7e82000f4de30.tar.xz
nixpkgs-c4b3aa62608d592d8a983be685f7e82000f4de30.tar.zst
nixpkgs-c4b3aa62608d592d8a983be685f7e82000f4de30.zip
build-support/make-desktopitem: add some missing fields
Diffstat (limited to 'pkgs/build-support/make-desktopitem')
-rw-r--r--pkgs/build-support/make-desktopitem/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/make-desktopitem/default.nix b/pkgs/build-support/make-desktopitem/default.nix
index 329286bd362..1491a3ad911 100644
--- a/pkgs/build-support/make-desktopitem/default.nix
+++ b/pkgs/build-support/make-desktopitem/default.nix
@@ -12,6 +12,8 @@
 , mimeType ? null
 , categories ? null
 , startupNotify ? null
+, noDisplay ? null
+, prefersNonDefaultGPU ? null
 , extraDesktopEntries ? { } # Extra key-value pairs to add to the [Desktop Entry] section. This may override other values
 , extraEntries ? "" # Extra configuration. Will be appended to the end of the file and may thus contain extra sections
 , fileValidation ? true # whether to validate resulting desktop file.
@@ -35,6 +37,8 @@ let
     "MimeType" = nullableToString mimeType;
     "Categories" = nullableToString categories;
     "StartupNotify" = nullableToString startupNotify;
+    "NoDisplay" = nullableToString noDisplay;
+    "PrefersNonDefaultGPU" = nullableToString prefersNonDefaultGPU;
   } // extraDesktopEntries;
 
   # Map all entries to a list of lines