summary refs log tree commit diff
path: root/nix/warteraum.nix
blob: d1b41ce89364488811469855aecd487060126b63 (plain) (blame)
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
{ stdenv, lib, scrypt
, jq, requests, pytest, pytest-randomly, flipdot-gschichtler, valgrind
, getSrc
}:

stdenv.mkDerivation rec {
  pname = "warteraum";
  version = import ./version.nix;

  src = [
    (getSrc "warteraum")
    (getSrc "third_party")
  ];

  sourceRoot = "warteraum";

  makeFlags = [
    "PREFIX=${placeholder "out"}"
  ];

  postPatch = ''
    patchShebangs test/integration
  '';

  doCheck = true;
  checkInputs = [
    jq valgrind pytest pytest-randomly requests flipdot-gschichtler
  ];

  buildInputs = [ scrypt ];
}