ocamlPackages.elpi: 1.14.1 → 1.15.0

authored by Vincent Laporte and committed by Vincent Laporte 18aaa33f 4c97002a

+12 -6
+12 -6
pkgs/development/ocaml-modules/elpi/default.nix
··· 1 1 { lib 2 2 , buildDunePackage, camlp5 3 + , ocaml 4 + , menhir, menhirLib 3 5 , re, perl, ncurses 4 6 , ppxlib, ppx_deriving 5 7 , ppxlib_0_15, ppx_deriving_0_15 6 8 , coqPackages 7 - , version ? "1.14.1" 9 + , version ? if lib.versionAtLeast ocaml.version "4.07" then "1.15.0" else "1.14.1" 8 10 }: 9 11 with lib; 10 12 let fetched = coqPackages.metaFetch ({ 13 + release."1.15.0".sha256 = "sha256:1ngdc41sgyzyz3i3lkzjhnj66gza5h912virkh077dyv17ysb6ar"; 11 14 release."1.14.1".sha256 = "sha256-BZPVL8ymjrE9kVGyf6bpc+GA2spS5JBpkUtZi04nPis="; 12 15 release."1.13.7".sha256 = "10fnwz30bsvj7ii1vg4l1li5pd7n0qqmwj18snkdr5j9gk0apc1r"; 13 16 release."1.13.5".sha256 = "02a6r23mximrdvs6kgv6rp0r2dgk7zynbs99nn7lphw2c4189kka"; ··· 23 26 pname = "elpi"; 24 27 inherit (fetched) version src; 25 28 26 - minimumOCamlVersion = "4.04"; 29 + minimalOCamlVersion = "4.04"; 27 30 28 - buildInputs = [ perl ncurses ]; 31 + buildInputs = [ perl ncurses ] 32 + ++ optional (versionAtLeast version "1.15" || version == "dev") menhir; 29 33 30 - propagatedBuildInputs = [ camlp5 re ] 34 + propagatedBuildInputs = [ re ] 35 + ++ (if versionAtLeast version "1.15" || version == "dev" 36 + then [ menhirLib ] 37 + else [ camlp5 ] 38 + ) 31 39 ++ (if lib.versionAtLeast version "1.13" || version == "dev" 32 40 then [ ppxlib ppx_deriving ] 33 41 else [ ppxlib_0_15 ppx_deriving_0_15 ] ··· 43 51 postPatch = '' 44 52 substituteInPlace elpi_REPL.ml --replace "tput cols" "${ncurses}/bin/tput cols" 45 53 ''; 46 - 47 - useDune2 = true; 48 54 }