nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildDunePackage, fetchurl
2, astring, cmdliner, fmt, uuidm, re, stdlib-shims, uutf, ocaml-syntax-shims
3}:
4
5buildDunePackage rec {
6 pname = "alcotest";
7 version = "1.5.0";
8
9 useDune2 = true;
10
11 src = fetchurl {
12 url = "https://github.com/mirage/alcotest/releases/download/${version}/alcotest-js-${version}.tbz";
13 sha256 = "sha256-VCgZB+AteJld8kbcLhDtGCgoKUrSBZNHoeOhM1SEj2w=";
14 };
15
16 nativeBuildInputs = [ ocaml-syntax-shims ];
17
18 propagatedBuildInputs = [ astring cmdliner fmt uuidm re stdlib-shims uutf ];
19
20 doCheck = true;
21
22 meta = with lib; {
23 homepage = "https://github.com/mirage/alcotest";
24 description = "A lightweight and colourful test framework";
25 license = licenses.isc;
26 maintainers = [ maintainers.ericbmerritt ];
27 };
28}