diff --git a/pkgs/development/ocaml-modules/alcobar/default.nix b/pkgs/development/ocaml-modules/alcobar/default.nix new file mode 100644 index 000000000000..fa91d72dacd8 --- /dev/null +++ b/pkgs/development/ocaml-modules/alcobar/default.nix @@ -0,0 +1,49 @@ +{ + afl-persistent, + alcotest, + buildDunePackage, + calendar, + cmdliner, + fetchurl, + fpath, + lib, + ocaml, + pprint, + uucp, + uunf, +}: + +buildDunePackage (finalAttrs: { + pname = "alcobar"; + version = "0.3.1"; + minimalOCamlVersion = "4.10"; + __structuredAttrs = true; + + src = fetchurl { + url = "https://github.com/samoht/alcobar/releases/download/v${finalAttrs.version}/alcobar-${finalAttrs.version}.tbz"; + hash = "sha256-V2UnvLrtf+XXkp7uFlrIpxg6+fZqwhCS/J7C3Nw+eVU="; + }; + + propagatedBuildInputs = [ + afl-persistent + alcotest + cmdliner + ]; + + checkInputs = [ + calendar + fpath + pprint + uucp + uunf + ]; + doCheck = lib.versionAtLeast ocaml.version "5.0"; + + meta = { + description = "Crowbar with an Alcotest-compatible API"; + homepage = "https://github.com/samoht/alcobar"; + changelog = "https://github.com/samoht/alcobar/blob/v${finalAttrs.version}/CHANGES.md"; + license = lib.licenses.isc; + maintainers = [ lib.maintainers.vog ]; + }; +}) diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 6858539d4229..754f86881773 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -24,6 +24,8 @@ let aeneas = callPackage ../development/ocaml-modules/aeneas { }; + alcobar = callPackage ../development/ocaml-modules/alcobar { }; + alcotest = callPackage ../development/ocaml-modules/alcotest { }; alcotest-lwt = callPackage ../development/ocaml-modules/alcotest/lwt.nix { };