xbill: install desktop file

This commit is contained in:
Ingo Blechschmidt 2020-05-04 21:58:47 +02:00 committed by Ingo Blechschmidt
parent e614b5a2d0
commit e7db46ccaf

View file

@ -1,9 +1,10 @@
{ stdenv, lib, fetchurl, libX11, libXpm, libXt, motif, ... }:
{ stdenv, lib, makeDesktopItem, copyDesktopItems, fetchurl, libX11, libXpm, libXt, motif, ... }:
stdenv.mkDerivation rec {
pname = "xbill";
version = "2.1";
nativeBuildInputs = [ copyDesktopItems ];
buildInputs = [ libX11 libXpm libXt motif ];
NIX_CFLAGS_LINK = "-lXpm";
@ -18,6 +19,19 @@ stdenv.mkDerivation rec {
sha256 = "13b08lli2gvppmvyhy0xs8cbjbkvrn4b87302mx0pxrdrvqzzz8f";
};
desktopItems = [ (makeDesktopItem {
name = "xbill";
exec = "xbill";
icon = "xbill";
desktopName = "XBill";
comment = "Get rid of those Wingdows viruses!";
categories = "Game;ArcadeGame;";
}) ];
postInstall = ''
install -Dm644 pixmaps/icon.xpm $out/share/pixmaps/xbill.xpm
'';
meta = with stdenv; {
description = "Protect a computer network from getting infected";
homepage = "http://www.xbill.org/";