depot/third_party/nixpkgs/pkgs/development/ocaml-modules/gen/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

32 lines
718 B
Nix

{ stdenv, lib, 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 = lib.licenses.bsd3;
platforms = ocaml.meta.platforms or [];
};
}