nixpkgs/pkgs/development/ocaml-modules/iter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.0 KiB
Nix
Raw Normal View History

2020-11-30 07:18:38 +00:00
{ lib, fetchFromGitHub, buildDunePackage, ocaml, dune-configurator
2022-11-11 20:07:58 +00:00
, result, seq
, mdx, ounit2, qcheck-core
2020-11-30 07:18:38 +00:00
}:
2016-02-17 17:54:23 +00:00
buildDunePackage rec {
pname = "iter";
2022-11-11 20:07:58 +00:00
version = "1.6";
2020-11-30 07:18:38 +00:00
2016-02-17 17:54:23 +00:00
src = fetchFromGitHub {
owner = "c-cube";
repo = pname;
2021-12-17 05:44:10 +00:00
rev = "v${version}";
2022-11-11 20:07:58 +00:00
sha256 = "sha256-FbM/Vk/h4wkrBjyf9/QXTvTOA0nNqsdHP1mDnVkg1is=";
2016-02-17 17:54:23 +00:00
};
2020-11-30 07:18:38 +00:00
buildInputs = [ dune-configurator ];
2022-11-11 20:07:58 +00:00
propagatedBuildInputs = [ result seq ];
2016-02-17 17:54:23 +00:00
doCheck = lib.versionAtLeast ocaml.version "4.08";
nativeCheckInputs = [ mdx.bin ];
checkInputs = [ ounit2 qcheck-core ];
2016-02-17 17:54:23 +00:00
meta = {
homepage = "https://github.com/c-cube/sequence";
2016-02-17 17:54:23 +00:00
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 = lib.licenses.bsd2;
2016-02-17 17:54:23 +00:00
};
}