Files
nixpkgs/pkgs/development/ocaml-modules/fmt/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

45 lines
830 B
Nix

{
lib,
stdenv,
fetchurl,
ocaml,
findlib,
ocamlbuild,
topkg,
cmdliner,
}:
stdenv.mkDerivation rec {
version = "0.11.0";
pname = "ocaml${ocaml.version}-fmt";
src = fetchurl {
url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz";
sha256 = "sha256-hXz9R6VLUkKc2bPiZl5EFzzRvTtDW+znFy+YStU3ahs=";
};
nativeBuildInputs = [
ocaml
findlib
ocamlbuild
topkg
];
buildInputs = [
cmdliner
topkg
];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
meta = {
homepage = "https://erratique.ch/software/fmt";
license = lib.licenses.isc;
description = "OCaml Format pretty-printer combinators";
inherit (ocaml.meta) platforms;
maintainers = [ lib.maintainers.vbgl ];
broken = lib.versionOlder ocaml.version "4.08";
};
}