Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.0 KiB
Nix

{
lib,
ocaml,
fetchFromGitHub,
buildDunePackage,
algaeff,
bwd,
qcheck-alcotest,
}:
let
params =
if lib.versionAtLeast ocaml.version "5.0" then
{
version = "5.2.0";
hash = "sha256-DJzXjV5Tjf69FKUiRioeHghks72pOOHYd73vqhmecS8=";
propagatedBuildInputs = [
algaeff
bwd
];
}
else
{
version = "2.0.0";
hash = "sha256:1nhz44cyipy922anzml856532m73nn0g7iwkg79yzhq6yb87109w";
};
in
buildDunePackage rec {
pname = "yuujinchou";
inherit (params) version;
minimalOCamlVersion = "4.12";
src = fetchFromGitHub {
owner = "RedPRL";
repo = pname;
rev = version;
inherit (params) hash;
};
propagatedBuildInputs = params.propagatedBuildInputs or [ ];
doCheck = true;
checkInputs = [ qcheck-alcotest ];
meta = {
description = "Name pattern combinators";
homepage = "https://github.com/RedPRL/yuujinchou";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.vbgl ];
};
}