567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
39 lines
762 B
Nix
39 lines
762 B
Nix
{
|
|
lib,
|
|
fetchFromGitLab,
|
|
buildDunePackage,
|
|
alcotest,
|
|
qcheck,
|
|
qcheck-alcotest,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
version = "5.0.1";
|
|
pname = "pratter";
|
|
|
|
minimalOCamlVersion = "4.10";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "forge.tedomum.net";
|
|
owner = "koizel";
|
|
repo = "pratter";
|
|
tag = version;
|
|
hash = "sha256-Ib7EplEvOuYcAS9cfzo5994SqCv2eiysLekYfH09IMw=";
|
|
};
|
|
|
|
checkInputs = [
|
|
alcotest
|
|
qcheck
|
|
qcheck-alcotest
|
|
];
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "Extended Pratt parser";
|
|
homepage = "https://github.com/gabrielhdt/pratter";
|
|
license = lib.licenses.bsd3;
|
|
changelog = "https://github.com/gabrielhdt/pratter/raw/${version}/CHANGELOG.md";
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
};
|
|
}
|