rxvt_unicode: create .desktop file
This commit is contained in:
parent
75d9dc8516
commit
70c18b55d7
@ -1,10 +1,21 @@
|
|||||||
{ stdenv, fetchurl, perlSupport, libX11, libXt, libXft, ncurses, perl,
|
{ stdenv, fetchurl, makeDesktopItem, perlSupport, libX11, libXt, libXft,
|
||||||
fontconfig, freetype, pkgconfig, libXrender, gdkPixbufSupport, gdk_pixbuf,
|
ncurses, perl, fontconfig, freetype, pkgconfig, libXrender,
|
||||||
unicode3Support }:
|
gdkPixbufSupport, gdk_pixbuf, unicode3Support }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "rxvt-unicode";
|
pname = "rxvt-unicode";
|
||||||
version = "9.22";
|
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
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation (rec {
|
stdenv.mkDerivation (rec {
|
||||||
@ -47,13 +58,14 @@ stdenv.mkDerivation (rec {
|
|||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir -p $out/nix-support
|
mkdir -p $out/nix-support
|
||||||
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
|
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
|
||||||
|
cp -r ${desktopItem}/share/applications/ $out/share/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "A clone of the well-known terminal emulator rxvt";
|
inherit description;
|
||||||
homepage = "http://software.schmorp.de/pkg/rxvt-unicode.html";
|
homepage = "http://software.schmorp.de/pkg/rxvt-unicode.html";
|
||||||
downloadPage = "http://dist.schmorp.de/rxvt-unicode/Attic/";
|
downloadPage = "http://dist.schmorp.de/rxvt-unicode/Attic/";
|
||||||
maintainers = [ stdenv.lib.maintainers.mornfall ];
|
maintainers = [ maintainers.mornfall ];
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user