summaryrefslogtreecommitdiff
path: root/tests/.nix/derivation.nix
blob: 1e20c5c5e01bcd477e5890ac15da4505fcca4873 (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
{ lib
, stdenvNoCC
, scons
, clang
, clang-tools
, version
, forstio
}:

stdenvNoCC.mkDerivation {
  pname = "forstio-test-cases";
  inherit version;
  src = ./..;

  enableParallelBuilding = true;

  nativeBuildInputs = [
    scons
    clang
    clang-tools
    forstio.core
    forstio.async
    forstio.test
    forstio.codec
    forstio.codec-json
  ];

  doCheck = true;
  checkPhase = ''
    scons test
    ./bin/tests
  '';

  outputs = ["out" "dev"];
}