nixpkgs/pkgs/development/compilers/reason/tests/hello/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
521 B
Nix
Raw Normal View History

{ lib, buildDunePackage, 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
];
};
2023-09-22 16:26:46 +00:00
nativeBuildInputs = [
reason
];
buildInputs = [
reason
];
doCheck = true;
doInstallCheck = true;
postInstallCheck = ''
$out/bin/${pname} | grep -q "Hello From Reason" > /dev/null
'';
meta.timeout = 60;
}