1{
2 lib,
3 buildDunePackage,
4 reason,
5}:
6
7buildDunePackage rec {
8 pname = "helloreason";
9 version = "0.0.1";
10
11 src = lib.fileset.toSource {
12 root = ./.;
13 fileset = lib.fileset.unions [
14 ./helloreason.opam
15 ./helloreason.re
16 ./dune-project
17 ./dune
18 ];
19 };
20
21 nativeBuildInputs = [
22 reason
23 ];
24
25 buildInputs = [
26 reason
27 ];
28
29 doCheck = true;
30
31 doInstallCheck = true;
32 postInstallCheck = ''
33 $out/bin/${pname} | grep -q "Hello From Reason" > /dev/null
34 '';
35
36 meta.timeout = 60;
37}