]> Git — Sourcephile - gargantext.git/commit
make gargantext buildable with stack & cabal in a nix environment
authorAlp Mestanogullari <alp@well-typed.com>
Tue, 22 Jun 2021 12:20:58 +0000 (14:20 +0200)
committerAlp Mestanogullari <alp@well-typed.com>
Tue, 22 Jun 2021 12:39:55 +0000 (14:39 +0200)
commiteb307705b6e607feab0527370af0ce4dff901536
tree4306542638b1b46dcc820abb9cb1263b617551cf
parentaa74cafa04ab04767efe18e6b548c9285dcf7251
make gargantext buildable with stack & cabal in a nix environment

I revamped the whole Nix infrastructure a bit to clearly delineate the bits
about providing a suitable environment (with respect to non Haskell deps) and
the shell and stack helper expressions, and moved it all under `nix/` to
make it easier to ignore (if not interested) or focus on (if interested) the Nix
infrastructure of this repository.

For some reason, this required changes that don't seem necessary in the
Docker environment, even though this all happens using the same GHC version
as used in the Docker environment/Stackage LTS snapshot.

The said changes correspond to the source repositories mentioned in the
cabal.project and stack.yaml files that have not been left untouched, for which
I either pointed to a fork I made, or a different commit that I pushed in a
dedicated branch (for the ISCPIF gitlab repositories to which I seemingly
have write access).

Many of the changes were about Haddock `-- |` style syntax being used in an
unexpected place, and this was making GHC's parser quite sad.

This commit doesn't (yet?) provide Nix infrastructure for building everything
in/through Nix, but shouldn't be too much work with something like haskell.nix,
which has suitable tooling to import stack.yaml or cabal.project based
project specifications and turn them into fully nixified builds, which might
or might not be desirable.
13 files changed:
bin/gargantext-adaptative-phylo/Main.hs
bin/gargantext-upgrade/Main.hs
build-shell.nix [deleted file]
cabal.project [new file with mode: 0644]
nix/pinned-20.09.nix [moved from pinned-20.09.nix with 87% similarity]
nix/pinned-21.05.nix [new file with mode: 0644]
nix/pkgs.nix [new file with mode: 0644]
nix/shell.nix [new file with mode: 0644]
nix/stack-shell.nix [new file with mode: 0644]
pinned-19.09.nix [deleted file]
pinned.nix [deleted file]
shell.nix [deleted file]
stack.yaml