depot/third_party/nixpkgs/pkgs/development/ocaml-modules/gen/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

32 lines
720 B
Nix

{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, ounit }:
let version = "0.5"; in
stdenv.mkDerivation {
name = "ocaml${ocaml.version}-gen-${version}";
src = fetchFromGitHub {
owner = "c-cube";
repo = "gen";
rev = version;
sha256 = "14b8vg914nb0yp1hgxzm29bg692m0gqncjj43b599s98s1cwl92h";
};
buildInputs = [ ocaml findlib ocamlbuild qtest ounit ];
configureFlags = [
"--enable-tests"
];
doCheck = true;
checkTarget = "test";
createFindlibDestdir = true;
meta = {
homepage = "https://github.com/c-cube/gen";
description = "Simple, efficient iterators for OCaml";
license = stdenv.lib.licenses.bsd3;
platforms = ocaml.meta.platforms or [];
};
}