2024-11-08 07:31:01 +00:00
|
|
|
{ lib, buildDunePackage, reason }:
|
2021-06-08 21:20:38 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "helloreason";
|
|
|
|
version = "0.0.1";
|
|
|
|
|
2024-06-14 19:16:03 +00:00
|
|
|
src = lib.fileset.toSource {
|
|
|
|
root = ./.;
|
|
|
|
fileset = lib.fileset.unions [
|
|
|
|
./helloreason.opam
|
|
|
|
./helloreason.re
|
|
|
|
./dune-project
|
|
|
|
./dune
|
|
|
|
];
|
|
|
|
};
|
2021-06-08 21:20:38 +00:00
|
|
|
|
2023-09-22 16:26:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
reason
|
|
|
|
];
|
2021-06-08 21:20:38 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
reason
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
postInstallCheck = ''
|
|
|
|
$out/bin/${pname} | grep -q "Hello From Reason" > /dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta.timeout = 60;
|
|
|
|
}
|