Files
nixpkgs/pkgs/development/ocaml-modules/visitors/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

44 lines
1.0 KiB
Nix

{
lib,
buildDunePackage,
fetchFromGitLab,
ppxlib,
ppx_deriving,
result,
version ? if lib.versionAtLeast ppxlib.version "0.36" then "20251010" else "20250212",
}:
buildDunePackage {
pname = "visitors";
inherit version;
minimalOCamlVersion = "4.08";
src = fetchFromGitLab {
owner = "fpottier";
repo = "visitors";
tag = version;
domain = "gitlab.inria.fr";
hash =
{
"20250212" = "sha256-AFD4+vriwVGt6lzDyIDuIMadakcgB4j235yty5qqFgQ=";
"20251010" = "sha256-3CHXECMHf/UWtLvy7fiOaxx6EizRRtm9HpqRxcRjH3I=";
}
."${version}";
};
propagatedBuildInputs = [
ppxlib
ppx_deriving
result
];
meta = {
homepage = "https://gitlab.inria.fr/fpottier/visitors";
changelog = "https://gitlab.inria.fr/fpottier/visitors/-/raw/${version}/CHANGES.md";
license = lib.licenses.lgpl21;
description = "OCaml syntax extension (technically, a ppx_deriving plugin) which generates object-oriented visitors for traversing and transforming data structures";
maintainers = [ ];
};
}