nixpkgs/pkgs/development/compilers/reason/tests/hello/default.nix
Vincent Laporte a42c917e0a reason: refactor
Move rtop to a separate package.
2024-11-15 06:26:22 +01:00

34 lines
521 B
Nix

{ 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
];
};
nativeBuildInputs = [
reason
];
buildInputs = [
reason
];
doCheck = true;
doInstallCheck = true;
postInstallCheck = ''
$out/bin/${pname} | grep -q "Hello From Reason" > /dev/null
'';
meta.timeout = 60;
}