Commit bab85a28 authored by Julien Moutinho's avatar Julien Moutinho
parent 5e430314
Pipeline #6160 failed with stages
...@@ -301,35 +301,50 @@ ...@@ -301,35 +301,50 @@
pkgs.haskell.packages.${config.compiler-nix-name}.hlint pkgs.haskell.packages.${config.compiler-nix-name}.hlint
]; ];
shellHook = '' shellHook =
export GARGANTEXT_CORENLP_SERVER="nix -L run .#coreNLP" let
# Workaround https://gitlab.haskell.org/ghc/ghc/-/issues/23138#note_567034
cp -f ${pkgs.buildPackages.writeText "cabal.project.local" '' libcxx-workaround = pkgs.symlinkJoin {
-- Same fix as in haskell.nix's packages.haskell-igraph.components.library, name = "libcxx-workaround";
-- but for cabal-install paths = [ pkgs.libcxx ];
package haskell-igraph postBuild = "ln -s libc++.so $out/lib/c++";
extra-include-dirs: ${pkgs.igraph.dev}/include/igraph };
extra-lib-dirs: ${lib.concatMapStringsSep " " (p: "${lib.getLib p}/lib") [ in
pkgs.igraph ''
pkgs.openblas export GARGANTEXT_CORENLP_SERVER="nix -L run .#coreNLP"
]}
-- Enable openblas cp -f ${pkgs.buildPackages.writeText "cabal.project.local" ''
constraints: hmatrix +openblas package accelerate
package hmatrix cc-options: -B${libcxx-workaround}/lib
flags: +openblas cxx-options: -B${libcxx-workaround}/lib
extra-lib-dirs: ${lib.concatMapStringsSep " " (p: "${lib.getLib p}/lib") [ pkgs.openblas ]} package double-conversion
''} cabal.project.local cc-options: -B${libcxx-workaround}/lib
cxx-options: -B${libcxx-workaround}/lib
cat >&2 ${pkgs.buildPackages.writeText "shellEnterMessage.txt" '' -- Same fix as in haskell.nix's packages.haskell-igraph.components.library,
-- but for cabal-install
**Warning** package haskell-igraph
This Nix development shell is not configured to provision extra-include-dirs: ${pkgs.igraph.dev}/include/igraph
`cabal.project`'s `source-repository-package`s and their reverse dependencies, extra-lib-dirs: ${lib.concatMapStringsSep " " (p: "${lib.getLib p}/lib") [
therefore `cabal update` has to be run manually to fetch an `index-state` pkgs.igraph
before `cabal build`. pkgs.openblas
''} ]}
'' + -- Enable openblas
self.checks.${system}.git-hooks-check.shellHook; constraints: hmatrix +openblas
package hmatrix
flags: +openblas
extra-lib-dirs: ${lib.concatMapStringsSep " " (p: "${lib.getLib p}/lib") [ pkgs.openblas ]}
''} cabal.project.local
cat >&2 ${pkgs.buildPackages.writeText "shellEnterMessage.txt" ''
**Warning**
This Nix development shell is not configured to provision
`cabal.project`'s `source-repository-package`s and their reverse dependencies,
therefore `cabal update` has to be run manually to fetch an `index-state`
before `cabal build`.
''}
'' +
self.checks.${system}.git-hooks-check.shellHook;
# When true, builds a Hoogle documentation index of all dependencies, # When true, builds a Hoogle documentation index of all dependencies,
# and provides a "hoogle" command to search the index. # and provides a "hoogle" command to search the index.
......
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