2020-05-04 19:58:47 +00:00
|
|
|
{ stdenv, lib, makeDesktopItem, copyDesktopItems, fetchurl, libX11, libXpm, libXt, motif, ... }:
|
2019-05-15 19:09:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xbill";
|
|
|
|
version = "2.1";
|
|
|
|
|
2020-05-04 19:58:47 +00:00
|
|
|
nativeBuildInputs = [ copyDesktopItems ];
|
2019-05-15 19:09:53 +00:00
|
|
|
buildInputs = [ libX11 libXpm libXt motif ];
|
|
|
|
|
2019-10-30 11:34:47 +00:00
|
|
|
NIX_CFLAGS_LINK = "-lXpm";
|
2019-05-15 19:09:53 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-x"
|
|
|
|
"--enable-motif"
|
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.xbill.org/download/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "13b08lli2gvppmvyhy0xs8cbjbkvrn4b87302mx0pxrdrvqzzz8f";
|
|
|
|
};
|
|
|
|
|
2020-05-04 19:58:47 +00:00
|
|
|
desktopItems = [ (makeDesktopItem {
|
|
|
|
name = "xbill";
|
|
|
|
exec = "xbill";
|
|
|
|
icon = "xbill";
|
|
|
|
desktopName = "XBill";
|
|
|
|
comment = "Get rid of those Wingdows viruses!";
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = [ "Game" "ArcadeGame" ];
|
2020-05-04 19:58:47 +00:00
|
|
|
}) ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 pixmaps/icon.xpm $out/share/pixmaps/xbill.xpm
|
|
|
|
'';
|
|
|
|
|
2019-05-15 19:09:53 +00:00
|
|
|
meta = with stdenv; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Protect a computer network from getting infected";
|
2019-05-15 19:09:53 +00:00
|
|
|
homepage = "http://www.xbill.org/";
|
|
|
|
license = lib.licenses.gpl1;
|
|
|
|
maintainers = with lib.maintainers; [ aw ];
|
|
|
|
longDescription = ''
|
|
|
|
Ever get the feeling that nothing is going right? You're a sysadmin,
|
|
|
|
and someone's trying to destroy your computers. The little people
|
|
|
|
running around the screen are trying to infect your computers with
|
|
|
|
Wingdows [TM], a virus cleverly designed to resemble a popular
|
|
|
|
operating system.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|