mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
Merge pull request #69337 from vbgl/ocamlformat-0.11.0
ocamlformat: 0.8 → 0.11.0
This commit is contained in:
commit
94bd708252
|
@ -1,35 +1,33 @@
|
||||||
{ stdenv, fetchFromGitHub, ocamlPackages }:
|
{ lib, fetchFromGitHub, ocamlPackages }:
|
||||||
|
|
||||||
with ocamlPackages; buildDunePackage rec {
|
with ocamlPackages; buildDunePackage rec {
|
||||||
pname = "ocamlformat";
|
pname = "ocamlformat";
|
||||||
version = "0.8";
|
version = "0.11.0";
|
||||||
|
|
||||||
minimumOCamlVersion = "4.05";
|
minimumOCamlVersion = "4.06";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ocaml-ppx";
|
owner = "ocaml-ppx";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1i7rsbs00p43362yv7z7dw0qsnv7vjf630qk676qvfg7kg422w6j";
|
sha256 = "0zvjn71jd4d3znnpgh0yphb2w8ggs457b6bl6cg1fmpdgxnds6yx";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
base
|
|
||||||
cmdliner
|
cmdliner
|
||||||
fpath
|
fpath
|
||||||
ocaml-migrate-parsetree
|
ocaml-migrate-parsetree
|
||||||
|
odoc
|
||||||
|
re
|
||||||
stdio
|
stdio
|
||||||
|
uuseg
|
||||||
|
uutf
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
|
||||||
patchShebangs tools/gen_version.sh
|
|
||||||
tools/gen_version.sh src/Version.ml version
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
inherit (src.meta) homepage;
|
inherit (src.meta) homepage;
|
||||||
description = "Auto-formatter for OCaml code";
|
description = "Auto-formatter for OCaml code";
|
||||||
maintainers = [ stdenv.lib.maintainers.Zimmi48 ];
|
maintainers = [ lib.maintainers.Zimmi48 ];
|
||||||
license = stdenv.lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue