Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 buildDunePackage, 5 mdx, 6 ounit2, 7 qcheck-core, 8}: 9 10buildDunePackage rec { 11 pname = "iter"; 12 version = "1.9"; 13 14 minimalOCamlVersion = "4.08"; 15 16 src = fetchurl { 17 url = "https://github.com/c-cube/iter/releases/download/v${version}/iter-${version}.tbz"; 18 hash = "sha256-26nluxUuDQ2wBUw2sqlHZ0eihKdzjxXxGVo+IDXH6Wg="; 19 }; 20 21 doCheck = true; 22 nativeCheckInputs = [ mdx.bin ]; 23 checkInputs = [ 24 ounit2 25 qcheck-core 26 ]; 27 28 meta = { 29 homepage = "https://github.com/c-cube/sequence"; 30 description = "Simple sequence (iterator) datatype and combinators"; 31 longDescription = '' 32 Simple sequence datatype, intended to transfer a finite number of 33 elements from one data structure to another. Some transformations on sequences, 34 like `filter`, `map`, `take`, `drop` and `append` can be performed before the 35 sequence is iterated/folded on. 36 ''; 37 license = lib.licenses.bsd2; 38 }; 39}