xbill: fix build (#422103)

authored by Aleksana and committed by GitHub e1645b6c 67e38442

+29 -5
+7
maintainers/maintainer-list.nix
··· 12330 12330 githubId = 31407988; 12331 12331 name = "Jon Bosque"; 12332 12332 }; 12333 + jonhermansen = { 12334 + name = "Jon Hermansen"; 12335 + email = "jon@jh86.org"; 12336 + matrix = "@jonhermansen:matrix.org"; 12337 + github = "jonhermansen"; 12338 + githubId = 660911; 12339 + }; 12333 12340 jonnybolton = { 12334 12341 email = "jonnybolton@gmail.com"; 12335 12342 github = "jonnynightingale";
+22 -5
pkgs/by-name/xb/xbill/package.nix
··· 1 1 { 2 2 stdenv, 3 3 lib, 4 + autoreconfHook, 4 5 makeDesktopItem, 5 6 copyDesktopItems, 7 + fetchpatch, 6 8 fetchurl, 7 9 libX11, 8 10 libXpm, 9 11 libXt, 10 12 motif, 11 - ... 12 13 }: 13 14 14 15 stdenv.mkDerivation rec { 15 16 pname = "xbill"; 16 17 version = "2.1"; 17 18 18 - nativeBuildInputs = [ copyDesktopItems ]; 19 + nativeBuildInputs = [ 20 + autoreconfHook # Fix configure script that fails basic compilation check 21 + copyDesktopItems 22 + ]; 23 + 19 24 buildInputs = [ 20 25 libX11 21 26 libXpm ··· 32 37 33 38 src = fetchurl { 34 39 url = "http://www.xbill.org/download/${pname}-${version}.tar.gz"; 35 - sha256 = "13b08lli2gvppmvyhy0xs8cbjbkvrn4b87302mx0pxrdrvqzzz8f"; 40 + hash = "sha256-Dv3/8c4t9wt6FWActIjNey65GNIdeOh3vXc/ESlFYI0="; 36 41 }; 37 42 43 + # xbill requires strcasecmp and strncasecmp but is missing proper includes 44 + patches = [ 45 + (fetchpatch { 46 + url = "https://raw.githubusercontent.com/gentoo/gentoo/7c2c329a5a80781a9aaca24221675a0db66fd244/games-arcade/xbill/files/xbill-2.1-clang16.patch"; 47 + hash = "sha256-Eg8qbSOdUoENcYruH6hSVIHcORkJeP8FXvp09cj/IXA="; 48 + }) 49 + ]; 50 + 38 51 desktopItems = [ 39 52 (makeDesktopItem { 40 53 name = "xbill"; ··· 53 66 install -Dm644 pixmaps/icon.xpm $out/share/pixmaps/xbill.xpm 54 67 ''; 55 68 56 - meta = with stdenv; { 69 + meta = { 57 70 description = "Protect a computer network from getting infected"; 58 71 homepage = "http://www.xbill.org/"; 59 72 license = lib.licenses.gpl1Only; 60 - maintainers = with lib.maintainers; [ aw ]; 73 + maintainers = with lib.maintainers; [ 74 + aw 75 + jonhermansen 76 + ]; 61 77 longDescription = '' 62 78 Ever get the feeling that nothing is going right? You're a sysadmin, 63 79 and someone's trying to destroy your computers. The little people ··· 66 82 operating system. 67 83 ''; 68 84 mainProgram = "xbill"; 85 + platforms = lib.platforms.unix; 69 86 }; 70 87 }