Merge pull request #233743 from vbgl/ocaml-cleaning-20230523

ocamlPackages: small fixes
This commit is contained in:
Weijia Wang 2023-05-24 11:38:41 +03:00 committed by GitHub
commit 703640f648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -16,6 +16,7 @@
, chrome-trace , chrome-trace
, dune_3 , dune_3
, csexp , csexp
, result
, pp , pp
, cmdliner , cmdliner
, ordering , ordering
@ -101,6 +102,7 @@ buildDunePackage rec {
jsonrpc jsonrpc
pp pp
ppx_yojson_conv_lib ppx_yojson_conv_lib
result
uutf uutf
] else [ ] else [
csexp csexp

View File

@ -9,6 +9,7 @@ buildDunePackage rec {
pname = "polynomial"; pname = "polynomial";
version = "0.4.0"; version = "0.4.0";
duneVersion = "3"; duneVersion = "3";
minimalOCamlVersion = "4.08";
src = fetchFromGitLab { src = fetchFromGitLab {
owner = "nomadic-labs"; owner = "nomadic-labs";
repo = "cryptography/ocaml-polynomial"; repo = "cryptography/ocaml-polynomial";

View File

@ -1,4 +1,4 @@
{ lib, fetchurl, yojson, csexp, findlib, buildDunePackage, merlin-lib, merlin }: { lib, fetchurl, yojson, csexp, findlib, buildDunePackage, merlin-lib, merlin, result }:
buildDunePackage rec { buildDunePackage rec {
pname = "dot-merlin-reader"; pname = "dot-merlin-reader";
@ -12,7 +12,7 @@ buildDunePackage rec {
buildInputs = [ findlib ] buildInputs = [ findlib ]
++ (if lib.versionAtLeast version "4.7-414" ++ (if lib.versionAtLeast version "4.7-414"
then [ merlin-lib ] then [ merlin-lib ]
else [ yojson csexp ]); else [ yojson csexp result ]);
meta = with lib; { meta = with lib; {
description = "Reads config files for merlin"; description = "Reads config files for merlin";