Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
159
Issues
159
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
0564d0ad
Commit
0564d0ad
authored
May 28, 2024
by
Julien Moutinho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: workaround
https://gitlab.haskell.org/ghc/ghc/-/issues/23138#note_567034
parent
5e430314
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
29 deletions
+54
-29
flake.nix
flake.nix
+54
-29
No files found.
flake.nix
View file @
0564d0ad
...
@@ -301,35 +301,60 @@
...
@@ -301,35 +301,60 @@
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"
''
# Pending fix upstream https://github.com/NixOS/nixpkgs/pull/317224
-- Same fix as in haskell.nix's packages.haskell-igraph.components.library,
libcxx-workaround
=
pkgs
.
symlinkJoin
{
-- but for cabal-install
name
=
"libcxx-workaround"
;
package haskell-igraph
paths
=
[
pkgs
.
libcxx
];
extra-include-dirs:
${
pkgs
.
igraph
.
dev
}
/include/igraph
postBuild
=
''
extra-lib-dirs:
${
lib
.
concatMapStringsSep
" "
(
p
:
"
${
lib
.
getLib
p
}
/lib"
)
[
ln -s libc++
${
pkgs
.
stdenv
.
hostPlatform
.
extensions
.
sharedLibrary
}
$out/lib/c++
pkgs
.
igraph
ln -s libc++
${
pkgs
.
stdenv
.
hostPlatform
.
extensions
.
sharedLibrary
}
$out/lib/clang++
pkgs
.
openblas
''
;
]
}
};
-- Enable openblas
in
constraints: hmatrix +openblas
''
package hmatrix
export GARGANTEXT_CORENLP_SERVER="nix -L run .#coreNLP"
flags: +openblas
extra-lib-dirs:
${
lib
.
concatMapStringsSep
" "
(
p
:
"
${
lib
.
getLib
p
}
/lib"
)
[
pkgs
.
openblas
]
}
cp -f
${
pkgs
.
buildPackages
.
writeText
"cabal.project.local"
''
''
}
cabal.project.local
package accelerate
cc-options: -B
${
libcxx-workaround
}
/lib
cat >&2
${
pkgs
.
buildPackages
.
writeText
"shellEnterMessage.txt"
''
cxx-options: -B
${
libcxx-workaround
}
/lib
package crawlerHAL
**Warning**
cc-options: -B
${
libcxx-workaround
}
/lib
This Nix development shell is not configured to provision
cxx-options: -B
${
libcxx-workaround
}
/lib
`cabal.project`'s `source-repository-package`s and their reverse dependencies,
package double-conversion
therefore `cabal update` has to be run manually to fetch an `index-state`
cc-options: -B
${
libcxx-workaround
}
/lib
before `cabal build`.
cxx-options: -B
${
libcxx-workaround
}
/lib
''
}
package llvm-hs
''
+
cc-options: -B
${
libcxx-workaround
}
/lib
self
.
checks
.
${
system
}
.
git-hooks-check
.
shellHook
;
cxx-options: -B
${
libcxx-workaround
}
/lib
-- Same fix as in haskell.nix's packages.haskell-igraph.components.library,
-- but for cabal-install
package haskell-igraph
extra-include-dirs:
${
pkgs
.
igraph
.
dev
}
/include/igraph
extra-lib-dirs:
${
lib
.
concatMapStringsSep
" "
(
p
:
"
${
lib
.
getLib
p
}
/lib"
)
[
pkgs
.
igraph
pkgs
.
openblas
]
}
-- Enable openblas
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment