Commit 0564d0ad authored by Julien Moutinho's avatar Julien Moutinho
parent 5e430314
Pipeline #6201 failed with stages
...@@ -301,10 +301,35 @@ ...@@ -301,10 +301,35 @@
pkgs.haskell.packages.${config.compiler-nix-name}.hlint pkgs.haskell.packages.${config.compiler-nix-name}.hlint
]; ];
shellHook = '' shellHook =
let
# Workaround https://gitlab.haskell.org/ghc/ghc/-/issues/23138#note_567034
# Pending fix upstream https://github.com/NixOS/nixpkgs/pull/317224
libcxx-workaround = pkgs.symlinkJoin {
name = "libcxx-workaround";
paths = [ pkgs.libcxx ];
postBuild = ''
ln -s libc++${pkgs.stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/c++
ln -s libc++${pkgs.stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/clang++
'';
};
in
''
export GARGANTEXT_CORENLP_SERVER="nix -L run .#coreNLP" export GARGANTEXT_CORENLP_SERVER="nix -L run .#coreNLP"
cp -f ${pkgs.buildPackages.writeText "cabal.project.local" '' cp -f ${pkgs.buildPackages.writeText "cabal.project.local" ''
package accelerate
cc-options: -B${libcxx-workaround}/lib
cxx-options: -B${libcxx-workaround}/lib
package crawlerHAL
cc-options: -B${libcxx-workaround}/lib
cxx-options: -B${libcxx-workaround}/lib
package double-conversion
cc-options: -B${libcxx-workaround}/lib
cxx-options: -B${libcxx-workaround}/lib
package llvm-hs
cc-options: -B${libcxx-workaround}/lib
cxx-options: -B${libcxx-workaround}/lib
-- Same fix as in haskell.nix's packages.haskell-igraph.components.library, -- Same fix as in haskell.nix's packages.haskell-igraph.components.library,
-- but for cabal-install -- but for cabal-install
package haskell-igraph package haskell-igraph
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment