about summary refs log tree commit diff
path: root/pkgs/development/compilers/reason/tests/hello/default.nix
blob: 831b528c6ba95472a4f60da9014fc27a949bc734 (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
32
33
34
{ lib, buildDunePackage, ppxlib, reason }:

buildDunePackage rec {
  pname = "helloreason";
  version = "0.0.1";

  src = lib.fileset.toSource {
    root = ./.;
    fileset = lib.fileset.unions [
      ./helloreason.opam
      ./helloreason.re
      ./dune-project
      ./dune
    ];
  };

  nativeBuildInputs = [
    reason
  ];

  buildInputs = [
    ppxlib
    reason
  ];

  doCheck = true;

  doInstallCheck = true;
  postInstallCheck = ''
    $out/bin/${pname} | grep -q "Hello From Reason" > /dev/null
  '';

  meta.timeout = 60;
}