summaryrefslogtreecommitdiff
path: root/shell.nix
blob: e5e5b523927b147e837bdca70becbe6573bddb78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ pkgs ? import <nixpkgs> { }, ... }:

pkgs.stdenvNoCC.mkDerivation rec {
  name = "openlb-env";

  env = pkgs.buildEnv {
    name = name;
    paths = buildInputs;
  };

  buildInputs = with pkgs; let
    texlive-custom = texlive.combine {
      inherit (texlive) scheme-small collection-langgerman latexmk xpatch xstring siunitx biblatex logreq palatino courier mathpazo helvetic multirow;
    };
  in [
  # make dependencies
    gnumake
    gcc9
    openmpi

  # introspection
    universal-ctags

  # debugging
    gdb
    cgdb
    valgrind

  # autoformat
    astyle

  # result presentation
    gnuplot

  # documentation
    doxygen
    graphviz
    texlive-custom
    biber
  ];

  shellHook = ''
    export NIX_SHELL_NAME="${name}"
  '';
}