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
160
Issues
160
List
Board
Labels
Milestones
Merge Requests
14
Merge Requests
14
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
f3a9483f
Commit
f3a9483f
authored
Dec 07, 2023
by
Alfredo Di Napoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working nix-shell with GHC 9.4.7
parent
60bd8b7b
Pipeline
#5438
failed with stages
in 4 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
1769 additions
and
1527 deletions
+1769
-1527
.gitlab-ci.yml
.gitlab-ci.yml
+1
-1
update-cabal-project
bin/update-cabal-project
+2
-2
cabal.project
cabal.project
+7
-2
cabal.project.freeze
cabal.project.freeze
+1721
-1491
Dockerfile
devops/docker/Dockerfile
+1
-1
pinned-23.11.nix
nix/pinned-23.11.nix
+6
-0
pkgs.nix
nix/pkgs.nix
+30
-26
stack.yaml
stack.yaml
+1
-4
No files found.
.gitlab-ci.yml
View file @
f3a9483f
# Optimising CI speed by using tips from https://blog.nimbleways.com/let-s-make-faster-gitlab-ci-cd-pipelines/
image
:
adinapoli/gargantext:v
2.3
image
:
adinapoli/gargantext:v
3.0
variables
:
STACK_ROOT
:
"
${CI_PROJECT_DIR}/.stack-root"
...
...
bin/update-cabal-project
View file @
f3a9483f
...
...
@@ -11,8 +11,8 @@ STORE_DIR="${1:-$DEFAULT_STORE}"
# `expected_cabal_project_freeze_hash` with the
# `sha256sum` result calculated on the `cabal.project` and `cabal.project.freeze`.
# This ensures the files stay deterministic so that CI cache can kick in.
expected_cabal_project_hash
=
"69
e03370a602f40243373515ff884a2cd50dc02eb6f52cd23ba9016a61fe8069
"
expected_cabal_project_freeze_hash
=
"
796f0109611f3381278b1885ae1fa257c4177b99885eb04701938f1107c06ee5
"
expected_cabal_project_hash
=
"69
933aa295e2ea1c7e223454472f407f7d34bf9a0c76e02152b39a8d0222872b
"
expected_cabal_project_freeze_hash
=
"
bda3de8044e0cf49b077b06261a66fc7103f7bc09dd20f00b2f6b13c091d5512
"
cabal
--store-dir
=
$STORE_DIR
v2-update
'hackage.haskell.org,2023-11-23T20:05:40Z'
...
...
cabal.project
View file @
f3a9483f
--
Generated
by
stack2cabal
index
-
state
:
2023
-
1
2
-
04
T09
:
05
:
40
Z
index
-
state
:
2023
-
1
1
-
23
T20
:
05
:
40
Z
with
-
compiler
:
ghc
-
8.10
.7
with
-
compiler
:
ghc
-
9.4
.7
packages
:
./
...
...
@@ -141,6 +141,11 @@ source-repository-package
location
:
https
://
gitlab
.
iscpif
.
fr
/
gargantext
/
iso639
.
git
tag
:
eab929d106833ded8011a0d6705135e3fc506a9c
source
-
repository
-
package
type
:
git
location
:
https
://
gitlab
.
iscpif
.
fr
/
gargantext
/
servant
-
xml
-
conduit
.
git
tag
:
339f
d608341bd2652cf5c0e9e76a3293acffbea6
source
-
repository
-
package
type
:
git
location
:
https
://
github
.
com
/
haskell
-
servant
/
servant
.
git
...
...
cabal.project.freeze
View file @
f3a9483f
This source diff could not be displayed because it is too large. You can
view the blob
instead.
devops/docker/Dockerfile
View file @
f3a9483f
...
...
@@ -10,7 +10,7 @@ ARG CORENLP=4.5.4
ARG
CORE
COPY
./shell.nix /builds/gargantext/shell.nix
COPY
./nix/pkgs.nix /builds/gargantext/nix/pkgs.nix
COPY
./nix/pinned-2
2.05.nix /builds/gargantext/nix/pinned-22.05
.nix
COPY
./nix/pinned-2
3.11.nix /builds/gargantext/nix/pinned-23.11
.nix
COPY
./nix/overlays/Cabal-3.10.1.0.nix /builds/gargantext/nix/overlays/Cabal-3.10.1.0.nix
COPY
./nix/overlays/cabal-install-3.10.1.0.nix /builds/gargantext/nix/overlays/cabal-install-3.10.1.0.nix
COPY
./nix/overlays/cabal-install-solver-3.10.1.0.nix /builds/gargantext/nix/overlays/cabal-install-solver-3.10.1.0.nix
...
...
nix/pinned-23.11.nix
0 → 100644
View file @
f3a9483f
import
(
builtins
.
fetchGit
{
name
=
"nixos-23.11"
;
url
=
"https://github.com/nixos/nixpkgs"
;
ref
=
"refs/heads/nixos-23.11"
;
rev
=
"057f9aecfb71c4437d2b27d3323df7f93c010b7e"
;
})
nix/pkgs.nix
View file @
f3a9483f
{
pkgs
?
import
./pinned-2
2.05
.nix
{}
}:
{
pkgs
?
import
./pinned-2
3.11
.nix
{}
}:
rec
{
inherit
pkgs
;
# If we are on a Mac, in order to build successfully with cabal we need a bit more work.
ghc
=
if
pkgs
.
stdenv
.
isDarwin
then
haskell1
.
compiler
.
ghc810
7
.
overrideAttrs
(
finalAttrs
:
previousAttrs
:
{
# See https://github.com/NixOS/nixpkgs/pull/149942/files
patches
=
previousAttrs
.
patches
++
[
# Reverts the linking behavior of GHC to not resolve `-libc++` to `c++`.
(
pkgs
.
fetchpatch
{
url
=
"https://raw.githubusercontent.com/input-output-hk/haskell.nix/613ec38dbd62ab7929178c9c7ffff71df9bb86be/overlays/patches/ghc/ghc-macOS-loadArchive-fix.patch"
;
sha256
=
"0IUpuzjZb1G+gP3q6RnwQbW4mFzc/OZ/7QqZy+57kx0="
;
})
];
})
else
pkgs
.
haskell
.
compiler
.
ghc810
7
;
ghc
=
pkgs
.
haskell
.
compiler
.
ghc947
;
#
if pkgs.stdenv.isDarwin
# then haskell1.compiler.ghc94
7.overrideAttrs (finalAttrs: previousAttrs: {
#
# See https://github.com/NixOS/nixpkgs/pull/149942/files
#
patches = previousAttrs.patches ++ [
#
# Reverts the linking behavior of GHC to not resolve `-libc++` to `c++`.
#
(pkgs.fetchpatch {
#
url = "https://raw.githubusercontent.com/input-output-hk/haskell.nix/613ec38dbd62ab7929178c9c7ffff71df9bb86be/overlays/patches/ghc/ghc-macOS-loadArchive-fix.patch";
#
sha256 = "0IUpuzjZb1G+gP3q6RnwQbW4mFzc/OZ/7QqZy+57kx0=";
#
})
#
];
#
})
# else pkgs.haskell.compiler.ghc94
7;
haskell1
=
pkgs
.
haskell
//
{
packages
=
pkgs
.
haskell
.
packages
//
{
ghc
8107
=
pkgs
.
haskell
.
packages
.
ghc810
7
.
override
{
ghc
947
=
pkgs
.
haskell
.
packages
.
ghc94
7
.
override
{
overrides
=
self
:
super
:
{
directory
=
self
.
callPackage
./overlays/directory-1.3.7.0
.nix
{};
process
=
self
.
callPackage
./overlays/process-1.6.15
.0.nix
{};
hackage-security
=
self
.
callPackage
./overlays/hackage-security-0.6.2.3.nix
{};
Cabal
=
self
.
callPackage
./overlays/Cabal-3.10.1.0.nix
{};
Cabal-syntax
=
self
.
callPackage
./overlays/Cabal-syntax-3.10.1.0.nix
{};
cabal-install-solver
=
self
.
callPackage
./overlays/cabal-install-solver-3.10.1.0.nix
{};
cabal-install
=
self
.
callPackage
./overlays/cabal-install-3.10.1.0.nix
{};
#directory = self.callPackage ./overlays/directory-1.3.7.1
.nix {};
#process = self.callPackage ./overlays/process-1.6.17
.0.nix {};
#
hackage-security = self.callPackage ./overlays/hackage-security-0.6.2.3.nix {};
#
Cabal = self.callPackage ./overlays/Cabal-3.10.1.0.nix {};
#
Cabal-syntax = self.callPackage ./overlays/Cabal-syntax-3.10.1.0.nix {};
#
cabal-install-solver = self.callPackage ./overlays/cabal-install-solver-3.10.1.0.nix {};
#
cabal-install = self.callPackage ./overlays/cabal-install-3.10.1.0.nix {};
};
};
};
};
cabal_install_3_10_1_0
=
pkgs
.
haskell
.
lib
.
compose
.
justStaticExecutables
haskell1
.
packages
.
ghc810
7
.
cabal-install
;
#cabal_install_3_10_1_0 = pkgs.haskell.lib.compose.justStaticExecutables haskell1.packages.ghc94
7.cabal-install;
igraph_0_10_4
=
pkgs
.
igraph
.
overrideAttrs
(
finalAttrs
:
previousAttrs
:
{
version
=
"0.10.4"
;
nativeBuildInputs
=
previousAttrs
.
nativeBuildInputs
or
[]
++
[
pkgs
.
gcc7
pkgs
.
clang_11
];
src
=
pkgs
.
fetchFromGitHub
{
owner
=
"igraph"
;
repo
=
"igraph"
;
...
...
@@ -68,7 +70,7 @@ rec {
"-DIGRAPH_USE_INTERNAL_GMP=OFF"
"-DIGRAPH_USE_INTERNAL_PLFIT=OFF"
"-DIGRAPH_GLPK_SUPPORT=ON"
"-DIGRAPH_GRAPHML_SUPPORT=O
N
"
"-DIGRAPH_GRAPHML_SUPPORT=O
FF
"
"-DIGRAPH_OPENMP_SUPPORT=ON"
"-DIGRAPH_ENABLE_LTO=AUTO"
"-DIGRAPH_ENABLE_TLS=ON"
...
...
@@ -89,7 +91,7 @@ rec {
});
hsBuildInputs
=
[
ghc
cabal_install_3_10_1_0
#
cabal_install_3_10_1_0
];
nonhsBuildInputs
=
with
pkgs
;
[
bzip2
...
...
@@ -104,7 +106,7 @@ rec {
lapack
lzma
pcre
pkgconfig
pkg
-
config
postgresql
xz
zlib
...
...
@@ -114,7 +116,9 @@ rec {
expat
icu
graphviz
llvm_9
llvm_11
clang_11
gcc7
igraph_0_10_4
libpqxx
libsodium
...
...
stack.yaml
View file @
f3a9483f
resolver
:
lts-
18.28
resolver
:
lts-
21.17
flags
:
accelerate
:
debug
:
false
...
...
@@ -112,12 +112,9 @@ extra-deps:
-
KMP-0.2.0.0@sha256:6dfbac03ef00ebd9347234732cb86a40f62ab5a80c0cc6bedb8eb51766f7df28,2562
-
MissingH-1.4.3.0@sha256:32f9892ec98cd21df4f4d3ed8d95a3831ae74287ea0641d6f09b2dc6ef061d39,4859
-
Unique-0.4.7.8@sha256:9661f45aa31dde119a2114566166ea38b011a45653337045ee4ced75636533c0,2067
-
constraints-extras-0.3.1.0@sha256:12016ebb91ad5ed2c82bf7e48c6bd6947d164d33c9dca5ac3965de1bb6c780c0,1777
-
context-0.2.0.0@sha256:6b643adb4a64fe521873d08df0497f71f88e18b9ecff4b68b4eef938e446cfc9,1886
-
dependent-sum-0.7.1.0@sha256:0e419237f5b86da3659772afff9cab355c0f8d5b3fdb15a5b30e673d8dc83941,2147
-
duckling-0.2.0.0@sha256:84becd4e48ee3676cdd6fe5745a77ee60e365ea730cd759610c8a7738f3eb4a6,60543
-
fast-tagsoup-utf8-only-1.0.5@sha256:9292c8ff275c08b88b6013ccc410182552f180904214a07ad4db932ab462aaa1,1651
-
fclabels-2.0.5@sha256:817006077632bd29e637956154aa33d3c10a59be0791c308cef955eb951b2675,4473
-
full-text-search-0.2.1.4@sha256:81f6df3327e5b604f99b15e78635e5d6ca996e504c21d268a6d751d7d131aa36,6032
-
fullstop-0.1.4@sha256:80a3e382ef53551bb936e7da8b2825621df0ea169af1212debcb0a90010b30c8,2044
-
ghc-clippy-plugin-0.0.0.1
...
...
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