libbsd: apply upstream patch to fix w/musl

This commit is contained in:
Will Dietz
2018-03-25 18:48:26 -05:00
parent 8349d73c8f
commit 88ea78745a
2 changed files with 78 additions and 1 deletions
@@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
# the configure scripts
nativeBuildInputs = [ autoreconfHook ];
patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin.patch ];
patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch
# Suitable for all, but limited to musl to avoid rebuilds
# https://cgit.freedesktop.org/libbsd/patch/?id=1f8a3f7bccfc84b195218ad0086ebd57049c3490
++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./non-glibc.patch;
meta = with stdenv.lib; {
description = "Common functions found on BSD systems";