2016-10-08 07:44:25 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, ounit }:
|
2016-02-17 17:54:23 +00:00
|
|
|
|
2017-07-08 10:14:16 +01:00
|
|
|
let version = "0.10"; in
|
2016-02-17 17:54:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2017-07-08 10:14:16 +01:00
|
|
|
name = "ocaml${ocaml.version}-sequence-${version}";
|
2016-02-17 17:54:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = "sequence";
|
2017-07-08 10:14:16 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "0pl8pv758wn8bm555i8f0fvfn2pw88w1bmzjrzrv01092d85wx1g";
|
2016-02-17 17:54:23 +00:00
|
|
|
};
|
|
|
|
|
2016-10-08 07:44:25 +01:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild qtest ounit ];
|
2016-02-17 17:54:23 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-tests"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/c-cube/sequence;
|
|
|
|
description = "Simple sequence (iterator) datatype and combinators";
|
|
|
|
longDescription = ''
|
|
|
|
Simple sequence datatype, intended to transfer a finite number of
|
|
|
|
elements from one data structure to another. Some transformations on sequences,
|
|
|
|
like `filter`, `map`, `take`, `drop` and `append` can be performed before the
|
|
|
|
sequence is iterated/folded on.
|
|
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.bsd2;
|
2015-12-24 17:49:07 +00:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2016-02-17 17:54:23 +00:00
|
|
|
};
|
|
|
|
}
|