Merge pull request #39776 from dtzWill/fix/nss-mdns-musl

nss-mdns: fix build w/musl

authored by Will Dietz and committed by GitHub ebb7c537 982898c9

+12 -2
+12 -2
pkgs/tools/networking/nss-mdns/default.nix
··· 1 - { fetchurl, stdenv }: 1 + { fetchurl, stdenv, fetchpatch }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "nss-mdns-0.10"; ··· 20 20 "--localstatedir=/var" 21 21 ]; 22 22 23 + patches = stdenv.lib.optional stdenv.hostPlatform.isMusl 24 + ( 25 + fetchpatch 26 + { 27 + url = "https://raw.githubusercontent.com/openembedded/openembedded-core/94f780e889f194b67a48587ac68b3200288bee10/meta/recipes-connectivity/libnss-mdns/libnss-mdns/0001-check-for-nss.h.patch"; 28 + sha256 = "1l1kjbdw8z31br4vib3l5b85jy7kxin760a2f24lww8v6lqdpgds"; 29 + } 30 + ); 31 + 32 + 23 33 meta = { 24 34 description = "The mDNS Name Service Switch (NSS) plug-in"; 25 35 longDescription = '' ··· 34 44 license = stdenv.lib.licenses.lgpl2Plus; 35 45 36 46 # Supports both the GNU and FreeBSD NSS. 37 - platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.freebsd; 47 + platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux ++ stdenv.lib.platforms.freebsd; 38 48 39 49 maintainers = [ ]; 40 50 };