mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-07 13:33:12 +00:00
a42c917e0a
Move rtop to a separate package.
34 lines
521 B
Nix
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;
|
|
}
|