]> Git — Sourcephile - gargantext.git/blob - nix/pkgs.nix
Merge remote-tracking branch 'origin/adinapoli/issue-180-deps-audit' into dev
[gargantext.git] / nix / pkgs.nix
1 { pkgs ? import ./pinned-22.05.nix {} }:
2
3 rec {
4 inherit pkgs;
5 ghc = pkgs.haskell.compiler.ghc8107;
6 hsBuildInputs = [
7 ghc
8 pkgs.cabal-install
9 ];
10 nonhsBuildInputs = with pkgs; [
11 bzip2
12 czmq
13 docker-compose
14 git
15 gmp
16 gsl
17 #haskell-language-server
18 hlint
19 igraph
20 libffi
21 liblapack
22 lzma
23 pcre
24 pkgconfig
25 postgresql
26 xz
27 zlib
28 blas
29 gfortran7
30 # gfortran7.cc.lib
31 expat
32 icu
33 graphviz
34 llvm_9
35 ] ++ ( lib.optionals stdenv.isDarwin [
36 darwin.apple_sdk.frameworks.Accelerate
37 ]);
38 libPaths = pkgs.lib.makeLibraryPath nonhsBuildInputs;
39 shellHook = ''
40 export LD_LIBRARY_PATH="${pkgs.gfortran7.cc.lib}:${libPaths}:$LD_LIBRARY_PATH"
41 export LIBRARY_PATH="${pkgs.gfortran7.cc.lib}:${libPaths}"
42 '';
43 shell = pkgs.mkShell {
44 name = "gargantext-shell";
45 buildInputs = hsBuildInputs ++ nonhsBuildInputs;
46 inherit shellHook;
47 };
48 }