diff options
author | Domen Kožar <domen@dev.si> | 2019-08-06 22:50:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-06 22:50:13 +0200 |
commit | 56b452be4bf923bdc36ff7fe93c87095faf71a1f (patch) | |
tree | 20ecab1c51dcd4c58807abee5f040b3bbec98b8b /pkgs/development/haskell-modules | |
parent | ee4b93eab4fe7e97340810eb1b275a26117c8d05 (diff) | |
parent | ddb073ad383afe7f932869430b4ab29829f06d90 (diff) | |
download | nixlib-56b452be4bf923bdc36ff7fe93c87095faf71a1f.tar nixlib-56b452be4bf923bdc36ff7fe93c87095faf71a1f.tar.gz nixlib-56b452be4bf923bdc36ff7fe93c87095faf71a1f.tar.bz2 nixlib-56b452be4bf923bdc36ff7fe93c87095faf71a1f.tar.lz nixlib-56b452be4bf923bdc36ff7fe93c87095faf71a1f.tar.xz nixlib-56b452be4bf923bdc36ff7fe93c87095faf71a1f.tar.zst nixlib-56b452be4bf923bdc36ff7fe93c87095faf71a1f.zip |
Merge pull request #64286 from domenkozar/inline-c-cpp-darwin
haskellPackages.inline-c-cpp: fix build on darwin
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-common.nix | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 524dba0e4c45..6ac2ccf45c18 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -159,16 +159,11 @@ self: super: { then super.double-conversion else addExtraLibrary super.double-conversion pkgs.libcxx; - inline-c-cpp = if !pkgs.stdenv.isDarwin - then super.inline-c-cpp - else - 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-c-cpp = overrideCabal super.inline-c-cpp (drv: { + postPatch = (drv.postPatch or "") + '' + substituteInPlace inline-c-cpp.cabal --replace "-optc-std=c++11" "" + ''; + }); inline-java = addBuildDepend super.inline-java pkgs.jdk; |