From 4e5ec8423ee22dba82b01ca4fe4696a2059f9556 Mon Sep 17 00:00:00 2001 From: Volker Diels-Grabsch Date: Tue, 30 Jun 2026 11:41:41 +0200 Subject: [PATCH] ocamlPackages.alcobar: init at 0.3.1 --- .../ocaml-modules/alcobar/default.nix | 49 +++++++++++++++++++ pkgs/top-level/ocaml-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/ocaml-modules/alcobar/default.nix 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 { };