about summary refs log tree commit diff
path: root/pkgs/applications/misc/rxvt_unicode
diff options
context:
space:
mode:
authorTim Nieradzik <tim@metastack.pl>2016-11-11 18:29:46 +0100
committerGraham Christensen <graham@grahamc.com>2016-11-28 08:16:40 -0500
commit70c18b55d71e8bd49c7ac0a1d149cdc1c963f2dd (patch)
treea87df8210849905b783382614157c3092496fb88 /pkgs/applications/misc/rxvt_unicode
parent75d9dc85161e87777188a14da7443a7e4a62c952 (diff)
rxvt_unicode: create .desktop file
Diffstat (limited to 'pkgs/applications/misc/rxvt_unicode')
-rw-r--r--pkgs/applications/misc/rxvt_unicode/default.nix26
1 files changed, 19 insertions, 7 deletions
diff --git a/pkgs/applications/misc/rxvt_unicode/default.nix b/pkgs/applications/misc/rxvt_unicode/default.nix
index 69eda23b14330..f3939d3b6ebaf 100644
--- a/pkgs/applications/misc/rxvt_unicode/default.nix
+++ b/pkgs/applications/misc/rxvt_unicode/default.nix
@@ -1,10 +1,21 @@
-{ stdenv, fetchurl, perlSupport, libX11, libXt, libXft, ncurses, perl,
-  fontconfig, freetype, pkgconfig, libXrender, gdkPixbufSupport, gdk_pixbuf,
-  unicode3Support }:
+{ stdenv, fetchurl, makeDesktopItem, perlSupport, libX11, libXt, libXft,
+  ncurses, perl, fontconfig, freetype, pkgconfig, libXrender,
+  gdkPixbufSupport, gdk_pixbuf, unicode3Support }:
 
 let
   pname = "rxvt-unicode";
   version = "9.22";
+  description = "A clone of the well-known terminal emulator rxvt";
+
+  desktopItem = makeDesktopItem {
+    name = "${pname}";
+    exec = "urxvt";
+    icon = "utilities-terminal";
+    comment = description;
+    desktopName = "URxvt";
+    genericName = "${pname}";
+    categories = "System;TerminalEmulator;";
+  };
 in
 
 stdenv.mkDerivation (rec {
@@ -47,13 +58,14 @@ stdenv.mkDerivation (rec {
   postInstall = ''
     mkdir -p $out/nix-support
     echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
+    cp -r ${desktopItem}/share/applications/ $out/share/
   '';
 
-  meta = {
-    description = "A clone of the well-known terminal emulator rxvt";
+  meta = with stdenv.lib; {
+    inherit description;
     homepage = "http://software.schmorp.de/pkg/rxvt-unicode.html";
     downloadPage = "http://dist.schmorp.de/rxvt-unicode/Attic/";
-    maintainers = [ stdenv.lib.maintainers.mornfall ];
-    platforms = stdenv.lib.platforms.unix;
+    maintainers = [ maintainers.mornfall ];
+    platforms = platforms.unix;
   };
 })