about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-01-18 21:13:54 +0100
committerGitHub <noreply@github.com>2021-01-18 21:13:54 +0100
commit8f3a9c08bb72a95ea9174fc3038eb9437066aac5 (patch)
tree47274c8820ea8ab1da33c7b84286438bf05e9beb
parentc73cb2b013fafdb41dcf7d80eaaa27b899513fe3 (diff)
parente7db46ccafd390a05bf054505c107379540482ab (diff)
downloadnixlib-8f3a9c08bb72a95ea9174fc3038eb9437066aac5.tar
nixlib-8f3a9c08bb72a95ea9174fc3038eb9437066aac5.tar.gz
nixlib-8f3a9c08bb72a95ea9174fc3038eb9437066aac5.tar.bz2
nixlib-8f3a9c08bb72a95ea9174fc3038eb9437066aac5.tar.lz
nixlib-8f3a9c08bb72a95ea9174fc3038eb9437066aac5.tar.xz
nixlib-8f3a9c08bb72a95ea9174fc3038eb9437066aac5.tar.zst
nixlib-8f3a9c08bb72a95ea9174fc3038eb9437066aac5.zip
Merge pull request #86831 from iblech/patch-14
xbill: install desktop file
-rw-r--r--pkgs/games/xbill/default.nix16
1 files changed, 15 insertions, 1 deletions
diff --git a/pkgs/games/xbill/default.nix b/pkgs/games/xbill/default.nix
index f021d9ac7a75..a20b52e78546 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/";