nixpkgs/pkgs/by-name/xb/xbill/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

50 lines
1.4 KiB
Nix

{ 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";
configureFlags = [
"--with-x"
"--enable-motif"
];
src = fetchurl {
url = "http://www.xbill.org/download/${pname}-${version}.tar.gz";
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/";
license = lib.licenses.gpl1Only;
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.
'';
mainProgram = "xbill";
};
}