summary refs log tree commit diff
path: root/pkgs/development/libraries/libbsd/default.nix
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-10-13 19:53:19 -0500
committerWill Dietz <w@wdtz.org>2018-10-13 19:53:19 -0500
commite2f8d7bd447bf06496cf3f8c151ccbb58e08ebbe (patch)
tree27eced7a0a097adf229422712008d033b29df126 /pkgs/development/libraries/libbsd/default.nix
parent36af9cbb4c53d2a10b379624be6b09ebf3d8344d (diff)
libbsd: fix build w/musl by adding missing include
Patch from void, with prefix added.
Diffstat (limited to 'pkgs/development/libraries/libbsd/default.nix')
-rw-r--r--pkgs/development/libraries/libbsd/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libbsd/default.nix b/pkgs/development/libraries/libbsd/default.nix
index dc7213acd6388..a8d1925e5c0d3 100644
--- a/pkgs/development/libraries/libbsd/default.nix
+++ b/pkgs/development/libraries/libbsd/default.nix
@@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
   # the configure scripts
   nativeBuildInputs = [ autoreconfHook ];
 
-  patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch;
+  patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch
+    # Suitable for all but limited to musl to avoid rebuild
+    ++ stdenv.lib.optional stdenv.hostPlatform.isMusl ./musl.patch;
 
   meta = with stdenv.lib; {
     description = "Common functions found on BSD systems";