rxvt_unicode: create .desktop file

This commit is contained in:
Tim Nieradzik 2016-11-11 18:29:46 +01:00 committed by Graham Christensen
parent 75d9dc8516
commit 70c18b55d7
No known key found for this signature in database
GPG Key ID: ACA1C1D120C83D5C

View File

@ -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;
};
})