Files
nixpkgs/pkgs/development/compilers/reason/tests/hello/default.nix
Silvan Mosberger c572d05e10 reason.tests.hello: Prevent unnecessary rebuilds
E.g. from Nix file changes
2024-06-14 22:39:48 +02:00

35 lines
540 B
Nix

{ 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;
}