diff options
author | Ingo Blechschmidt <iblech@speicherleck.de> | 2020-05-04 21:58:47 +0200 |
---|---|---|
committer | Ingo Blechschmidt <iblech@web.de> | 2021-01-11 16:15:08 +0100 |
commit | e7db46ccafd390a05bf054505c107379540482ab (patch) | |
tree | 731597128f68a29bef1c39eb52b63d382da29e57 /pkgs/games/xbill | |
parent | e614b5a2d0dc2dc6eab502f34e72c219ecf8fa46 (diff) | |
download | nixpkgs-e7db46ccafd390a05bf054505c107379540482ab.tar nixpkgs-e7db46ccafd390a05bf054505c107379540482ab.tar.gz nixpkgs-e7db46ccafd390a05bf054505c107379540482ab.tar.bz2 nixpkgs-e7db46ccafd390a05bf054505c107379540482ab.tar.lz nixpkgs-e7db46ccafd390a05bf054505c107379540482ab.tar.xz nixpkgs-e7db46ccafd390a05bf054505c107379540482ab.tar.zst nixpkgs-e7db46ccafd390a05bf054505c107379540482ab.zip |
xbill: install desktop file
Diffstat (limited to 'pkgs/games/xbill')
-rw-r--r-- | pkgs/games/xbill/default.nix | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/pkgs/games/xbill/default.nix b/pkgs/games/xbill/default.nix index f021d9ac7a7..a20b52e7854 100644 --- a/pkgs/games/xbill/default.nix +++ b/pkgs/games/xbill/default.nix @@ -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/"; |