2018-11-05 10:21:46 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildDunePackage, qtest, result }:
|
2016-02-17 17:54:23 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "sequence";
|
|
|
|
version = "1.1";
|
2018-08-07 19:28:46 +00:00
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
minimumOCamlVersion = "4.02";
|
2016-02-17 17:54:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c-cube";
|
2018-11-05 10:21:46 +00:00
|
|
|
repo = pname;
|
2017-07-08 09:14:16 +00:00
|
|
|
rev = version;
|
2018-08-07 19:28:46 +00:00
|
|
|
sha256 = "08j37nldw47syq3yw4mzhhvya43knl0d7biddp0q9hwbaxhzgi44";
|
2016-02-17 17:54:23 +00:00
|
|
|
};
|
|
|
|
|
2018-11-05 10:21:46 +00:00
|
|
|
buildInputs = [ qtest ];
|
2018-08-07 19:28:46 +00:00
|
|
|
propagatedBuildInputs = [ result ];
|
2016-02-17 17:54:23 +00:00
|
|
|
|
|
|
|
doCheck = 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;
|
|
|
|
};
|
|
|
|
}
|