2016-10-08 08:44:25 +02:00
|
|
|
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, qtest, ounit }:
|
2016-02-17 18:54:23 +01:00
|
|
|
|
2016-10-24 04:07:53 +02:00
|
|
|
let version = "0.8"; in
|
2016-02-17 18:54:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "ocaml-sequence-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
|
|
|
repo = "sequence";
|
|
|
|
rev = "${version}";
|
2016-10-24 04:07:53 +02:00
|
|
|
sha256 = "1y9nkz6g4plnbk1pcdbvs7f719r48zxrp3gsaxyq1vg98i9h8qr3";
|
2016-02-17 18:54:23 +01:00
|
|
|
};
|
|
|
|
|
2016-10-08 08:44:25 +02:00
|
|
|
buildInputs = [ ocaml findlib ocamlbuild qtest ounit ];
|
2016-02-17 18:54:23 +01: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 18:49:07 +01:00
|
|
|
platforms = ocaml.meta.platforms or [];
|
2016-02-17 18:54:23 +01:00
|
|
|
};
|
|
|
|
}
|