From c6e4c59f1c84de44a66773a8878410487228962a Mon Sep 17 00:00:00 2001 From: Jon Hermansen Date: Thu, 3 Jul 2025 14:15:48 +0000 Subject: [PATCH 1/3] xbill: fix build --- pkgs/by-name/xb/xbill/package.nix | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/xb/xbill/package.nix b/pkgs/by-name/xb/xbill/package.nix index 031f63141907..b42510aff92d 100644 --- a/pkgs/by-name/xb/xbill/package.nix +++ b/pkgs/by-name/xb/xbill/package.nix @@ -1,21 +1,26 @@ { stdenv, lib, + autoreconfHook, makeDesktopItem, copyDesktopItems, + fetchpatch, fetchurl, libX11, libXpm, libXt, motif, - ... }: stdenv.mkDerivation rec { pname = "xbill"; version = "2.1"; - nativeBuildInputs = [ copyDesktopItems ]; + nativeBuildInputs = [ + autoreconfHook # Fix configure script that fails basic compilation check + copyDesktopItems + ]; + buildInputs = [ libX11 libXpm @@ -32,9 +37,17 @@ stdenv.mkDerivation rec { src = fetchurl { url = "http://www.xbill.org/download/${pname}-${version}.tar.gz"; - sha256 = "13b08lli2gvppmvyhy0xs8cbjbkvrn4b87302mx0pxrdrvqzzz8f"; + hash = "sha256-Dv3/8c4t9wt6FWActIjNey65GNIdeOh3vXc/ESlFYI0="; }; + # xbill requires strcasecmp and strncasecmp but is missing proper includes + patches = [ + (fetchpatch { + url = "https://raw.githubusercontent.com/gentoo/gentoo/7c2c329a5a80781a9aaca24221675a0db66fd244/games-arcade/xbill/files/xbill-2.1-clang16.patch"; + hash = "sha256-Eg8qbSOdUoENcYruH6hSVIHcORkJeP8FXvp09cj/IXA="; + }) + ]; + desktopItems = [ (makeDesktopItem { name = "xbill"; @@ -53,7 +66,7 @@ stdenv.mkDerivation rec { install -Dm644 pixmaps/icon.xpm $out/share/pixmaps/xbill.xpm ''; - meta = with stdenv; { + meta = { description = "Protect a computer network from getting infected"; homepage = "http://www.xbill.org/"; license = lib.licenses.gpl1Only; From 1b12701e6b4121bb3eb305c337316f83b002eb39 Mon Sep 17 00:00:00 2001 From: Jon Hermansen Date: Thu, 3 Jul 2025 14:16:15 +0000 Subject: [PATCH 2/3] maintainers: add jonhermansen --- maintainers/maintainer-list.nix | 7 +++++++ pkgs/by-name/xb/xbill/package.nix | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index a16f316ac287..d940d78a4321 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -12330,6 +12330,13 @@ githubId = 31407988; name = "Jon Bosque"; }; + jonhermansen = { + name = "Jon Hermansen"; + email = "jon@jh86.org"; + matrix = "@jonhermansen:matrix.org"; + github = "jonhermansen"; + githubId = 660911; + }; jonnybolton = { email = "jonnybolton@gmail.com"; github = "jonnynightingale"; diff --git a/pkgs/by-name/xb/xbill/package.nix b/pkgs/by-name/xb/xbill/package.nix index b42510aff92d..fb2f4906bcb9 100644 --- a/pkgs/by-name/xb/xbill/package.nix +++ b/pkgs/by-name/xb/xbill/package.nix @@ -70,7 +70,10 @@ stdenv.mkDerivation rec { description = "Protect a computer network from getting infected"; homepage = "http://www.xbill.org/"; license = lib.licenses.gpl1Only; - maintainers = with lib.maintainers; [ aw ]; + maintainers = with lib.maintainers; [ + aw + jonhermansen + ]; 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 From dbcd3fcef426d58b8e9011ec9d6d7caa3dab06f9 Mon Sep 17 00:00:00 2001 From: Jon Hermansen Date: Thu, 3 Jul 2025 16:14:41 +0000 Subject: [PATCH 3/3] xbill: add platforms --- pkgs/by-name/xb/xbill/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/xb/xbill/package.nix b/pkgs/by-name/xb/xbill/package.nix index fb2f4906bcb9..0663503c3162 100644 --- a/pkgs/by-name/xb/xbill/package.nix +++ b/pkgs/by-name/xb/xbill/package.nix @@ -82,5 +82,6 @@ stdenv.mkDerivation rec { operating system. ''; mainProgram = "xbill"; + platforms = lib.platforms.unix; }; }