Merge pull request #144754 from alyssais/connman-musl

authored by Doron Behar and committed by GitHub 7c8883cf 66c041e3

+9
+9
pkgs/tools/networking/connman/connman.nix
··· 1 { lib, stdenv 2 , fetchurl 3 , pkg-config 4 , file 5 , glib ··· 60 url = "mirror://kernel/linux/network/connman/${pname}-${version}.tar.xz"; 61 sha256 = "sha256-GleufOI0qjoXRKrDvlwhIdmNzpmUQO+KucxO39XtyxI="; 62 }; 63 64 buildInputs = [ 65 glib
··· 1 { lib, stdenv 2 , fetchurl 3 + , fetchpatch 4 , pkg-config 5 , file 6 , glib ··· 61 url = "mirror://kernel/linux/network/connman/${pname}-${version}.tar.xz"; 62 sha256 = "sha256-GleufOI0qjoXRKrDvlwhIdmNzpmUQO+KucxO39XtyxI="; 63 }; 64 + 65 + patches = lib.optionals stdenv.hostPlatform.isMusl [ 66 + # Fix Musl build by avoiding a Glibc-only API. 67 + (fetchpatch { 68 + url = "https://git.alpinelinux.org/aports/plain/community/connman/libresolv.patch?id=e393ea84386878cbde3cccadd36a30396e357d1e"; 69 + sha256 = "1kg2nml7pdxc82h5hgsa3npvzdxy4d2jpz2f93pa97if868i8d43"; 70 + }) 71 + ]; 72 73 buildInputs = [ 74 glib