···1010 sha256 = "0nii6p4m2x8rkaf8r6smgfwb1q4hpf117kkg64yr6gyqgdchnljv";
1111 };
12121313+ patches = stdenv.lib.optional stdenv.isDarwin ./darwin.patch;
1414+1315 installFlags = [ "DESTDIR=$(out)" "PREFIX=/" ];
14161517 # we build the static library because of two makefile bugs
1618 # * .h files installed for static library target only
1719 # * .so.0 -> .so link only created in the static library install target
1820 buildPhase = ''
1919- make lib-shared lib-static build-shared
2121+ make lib-shared lib-static build-shared CC=cc PREFIX=$out
2022 '';
21232224 # we don't actually want the static library, so we remove it after it