Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1# Version can be selected with the 'version' argument, see generic.nix. 2{ 3 lib, 4 callPackage, 5 buildDunePackage, 6 menhir, 7 ... 8}@args: 9 10let 11 inherit (callPackage ./generic.nix args) src version library_deps; 12 13in 14assert (lib.versionAtLeast version "0.25.1"); 15 16buildDunePackage { 17 pname = "ocamlformat-lib"; 18 inherit src version; 19 20 minimalOCamlVersion = "4.08"; 21 duneVersion = "3"; 22 23 nativeBuildInputs = [ menhir ]; 24 25 propagatedBuildInputs = library_deps; 26 27 meta = { 28 homepage = "https://github.com/ocaml-ppx/ocamlformat"; 29 description = "Auto-formatter for OCaml code (library)"; 30 maintainers = with lib.maintainers; [ 31 Zimmi48 32 Julow 33 ]; 34 license = lib.licenses.mit; 35 }; 36}