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

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

  sourceRoot = sourceName + "/warteraum";

  src = rootSrc;

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

  postPatch = ''
    patchShebangs test/integration
  '';

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

  buildInputs = [ scrypt ];
}