summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-01-13 10:56:33 -0600
committerWill Dietz <w@wdtz.org>2018-02-13 09:44:45 -0600
commit4a5aa55d736bf80eae325d06f659c5c518ce5adc (patch)
tree611b96ecc0f1afd5136873408b3ecf97a708b83c /pkgs/development
parent6c2e8b36cf1b8399a00b362411f19aa05677f7cf (diff)
downloadnixpkgs-4a5aa55d736bf80eae325d06f659c5c518ce5adc.tar
nixpkgs-4a5aa55d736bf80eae325d06f659c5c518ce5adc.tar.gz
nixpkgs-4a5aa55d736bf80eae325d06f659c5c518ce5adc.tar.bz2
nixpkgs-4a5aa55d736bf80eae325d06f659c5c518ce5adc.tar.lz
nixpkgs-4a5aa55d736bf80eae325d06f659c5c518ce5adc.tar.xz
nixpkgs-4a5aa55d736bf80eae325d06f659c5c518ce5adc.tar.zst
nixpkgs-4a5aa55d736bf80eae325d06f659c5c518ce5adc.zip
ti-rpc: patch to fix w/musl
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/libraries/ti-rpc/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/ti-rpc/default.nix b/pkgs/development/libraries/ti-rpc/default.nix
index 0156c64306c..d34a6dca783 100644
--- a/pkgs/development/libraries/ti-rpc/default.nix
+++ b/pkgs/development/libraries/ti-rpc/default.nix
@@ -1,4 +1,4 @@
-{ fetchurl, stdenv, autoreconfHook, libkrb5 }:
+{ fetchurl, fetchpatch, stdenv, autoreconfHook, libkrb5 }:
 
 stdenv.mkDerivation rec {
   name = "libtirpc-1.0.2";
@@ -8,6 +8,12 @@ stdenv.mkDerivation rec {
     sha256 = "1xchbxy0xql7yl7z4n1icj8r7dmly46i22fvm00vdjq64zlmqg3j";
   };
 
+  patches = stdenv.lib.optional stdenv.hostPlatform.isMusl
+    (fetchpatch {
+      url = "https://raw.githubusercontent.com/openembedded/openembedded-core/2be873301420ec6ca2c70d899b7c49a7e2b0954d/meta/recipes-extended/libtirpc/libtirpc/0001-replace-__bzero-with-memset-API.patch";
+      sha256 = "1jmbn0j2bnjp0j9z5vzz5xiwyv3kd28w5pixbqsy2lz6q8nii7cf";
+    });
+
   postPatch = ''
     sed '1i#include <stdint.h>' -i src/xdr_sizeof.c
   '';