Merge pull request #64286 from domenkozar/inline-c-cpp-darwin
haskellPackages.inline-c-cpp: fix build on darwin
This commit is contained in:
commit
56b452be4b
|
@ -159,16 +159,11 @@ self: super: {
|
||||||
then super.double-conversion
|
then super.double-conversion
|
||||||
else addExtraLibrary super.double-conversion pkgs.libcxx;
|
else addExtraLibrary super.double-conversion pkgs.libcxx;
|
||||||
|
|
||||||
inline-c-cpp = if !pkgs.stdenv.isDarwin
|
inline-c-cpp = overrideCabal super.inline-c-cpp (drv: {
|
||||||
then super.inline-c-cpp
|
postPatch = (drv.postPatch or "") + ''
|
||||||
else
|
substituteInPlace inline-c-cpp.cabal --replace "-optc-std=c++11" ""
|
||||||
let drv = addExtraLibrary (overrideCabal super.inline-c-cpp (drv: {
|
'';
|
||||||
postPatch = ''
|
});
|
||||||
substituteInPlace inline-c-cpp.cabal --replace stdc++ c++
|
|
||||||
'';
|
|
||||||
})) pkgs.libcxx;
|
|
||||||
in # https://github.com/fpco/inline-c/issues/75
|
|
||||||
dontCheck drv;
|
|
||||||
|
|
||||||
inline-java = addBuildDepend super.inline-java pkgs.jdk;
|
inline-java = addBuildDepend super.inline-java pkgs.jdk;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue