3
0
Fork 0
forked from mirrors/nixpkgs

cmocka: fix build for Darwin (#18448)

See https://open.cryptomilk.org/issues/43 for upstream issue.
This commit is contained in:
Alexey Shmalko 2016-09-09 11:14:10 +03:00 committed by vbgl
parent f285ce8fed
commit de5d64eb2a

View file

@ -1,4 +1,4 @@
{ fetchurl, stdenv, cmake }:
{ fetchurl, stdenv, cmake, fetchpatch }:
stdenv.mkDerivation rec {
name = "cmocka-${version}";
@ -9,6 +9,18 @@ stdenv.mkDerivation rec {
sha256 = "0fvm6rdalqcxckbddch8ycdw6n2ckldblv117n09chi2l7bm0q5k";
};
patches = [
# This fixes the build for clang-3.7.0 and thus Darwin.
# See https://open.cryptomilk.org/issues/43 for more info.
#
# The patch is already merged to upstream, so it should be removed
# here on next release.
(fetchpatch {
url = "https://git.cryptomilk.org/projects/cmocka.git/patch/?id=1b595a80934fa95234fb290913cfe533f740d965";
sha256 = "1fg8xwb1mrrmw4dqa65ghnvgfdkpi0lv4j2gq0lm9ayvsi3v00vp";
})
];
nativeBuildInputs = [ cmake ];
meta = with stdenv.lib; {
@ -43,6 +55,6 @@ stdenv.mkDerivation rec {
license = licenses.asl20;
platforms = platforms.all;
maintainers = with maintainers; [ kragniz ];
maintainers = with maintainers; [ kragniz rasendubi ];
};
}