cmocka: fix build for Darwin (#18448)

See https://open.cryptomilk.org/issues/43 for upstream issue.

authored by Alexey Shmalko and committed by vbgl de5d64eb f285ce8f

+14 -2
+14 -2
pkgs/development/libraries/cmocka/default.nix
··· 1 - { fetchurl, stdenv, cmake }: 1 + { fetchurl, stdenv, cmake, fetchpatch }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "cmocka-${version}"; ··· 8 8 url = "https://cmocka.org/files/1.0/cmocka-${version}.tar.xz"; 9 9 sha256 = "0fvm6rdalqcxckbddch8ycdw6n2ckldblv117n09chi2l7bm0q5k"; 10 10 }; 11 + 12 + patches = [ 13 + # This fixes the build for clang-3.7.0 and thus Darwin. 14 + # See https://open.cryptomilk.org/issues/43 for more info. 15 + # 16 + # The patch is already merged to upstream, so it should be removed 17 + # here on next release. 18 + (fetchpatch { 19 + url = "https://git.cryptomilk.org/projects/cmocka.git/patch/?id=1b595a80934fa95234fb290913cfe533f740d965"; 20 + sha256 = "1fg8xwb1mrrmw4dqa65ghnvgfdkpi0lv4j2gq0lm9ayvsi3v00vp"; 21 + }) 22 + ]; 11 23 12 24 nativeBuildInputs = [ cmake ]; 13 25 ··· 43 55 44 56 license = licenses.asl20; 45 57 platforms = platforms.all; 46 - maintainers = with maintainers; [ kragniz ]; 58 + maintainers = with maintainers; [ kragniz rasendubi ]; 47 59 }; 48 60 }