Skip to content

Commit

Permalink
Unbreak busted linking.
Browse files Browse the repository at this point in the history
We need to pass c++abi as well as c++, however double-conversion does not specify those.
  • Loading branch information
angerman committed Dec 12, 2023
1 parent 2a1000b commit 72e4c13
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions overlays/darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ _final: prev:
# https://github.com/NixOS/nixpkgs/pull/47676
# https://github.com/NixOS/nixpkgs/issues/45042
x509-system.components.library.preBuild = "substituteInPlace System/X509/MacOS.hs --replace security /usr/bin/security";
} // pkgs.lib.optionalAttrs (pkgs.stdenv.hostPlatform.isDarwin)
{
# fix broken c++ library selection for GHC < 9.4
# for GHC >= 9.4 the system-cxx-std-lib pseudo-package does this.
double-conversion.components.library.preConfigure = ''
substituteInPlace double-conversion.cabal --replace 'extra-libraries: c++' 'extra-libraries: c++ c++abi'
'';
};
})
];
Expand Down

0 comments on commit 72e4c13

Please sign in to comment.