mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
4e42cac49d
This change was produced by searching for remaining occurrences of stdenv.lib and replacing them manually. Reference #108938.
33 lines
718 B
Nix
33 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 [];
|
|
};
|
|
}
|