mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
44 lines
965 B
Nix
44 lines
965 B
Nix
{ lib, ocaml, fetchFromGitHub, buildDunePackage
|
|
, algaeff, bwd
|
|
, qcheck-alcotest
|
|
}:
|
|
|
|
let params = if lib.versionAtLeast ocaml.version "5.0" then {
|
|
version = "4.0.0";
|
|
hash = "sha256-yNLN5bBe4aft9Rl5VHmlOYTlnCdR2NgDWsc3uJHaZy4=";
|
|
propagatedBuildInputs = [ algaeff bwd ];
|
|
} else {
|
|
version = "2.0.0";
|
|
hash = "sha256:1nhz44cyipy922anzml856532m73nn0g7iwkg79yzhq6yb87109w";
|
|
}
|
|
; in
|
|
|
|
buildDunePackage rec {
|
|
pname = "yuujinchou";
|
|
inherit (params) version;
|
|
|
|
minimalOCamlVersion = "4.12";
|
|
duneVersion = "3";
|
|
|
|
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 ];
|
|
};
|
|
}
|
|
|