ocamlPackages.pp: 1.2.0 → 2.0.0

This commit is contained in:
Vincent Laporte 2024-10-10 21:19:25 +02:00 committed by Vincent Laporte
parent 614a314a56
commit 0d4067f506
2 changed files with 13 additions and 6 deletions

View File

@ -85,7 +85,7 @@ buildDunePackage rec {
stdune
]
else if lib.versionAtLeast version "1.7.0" then
[ pp re ppx_yojson_conv_lib octavius dune-build-info omd cmdliner ocamlformat-rpc-lib ]
[ re octavius dune-build-info omd cmdliner ocamlformat-rpc-lib ]
else
[
ppx_yojson_conv_lib
@ -113,7 +113,7 @@ buildDunePackage rec {
] else if lib.versionAtLeast version "1.7.0" then [
csexp
jsonrpc
pp
(pp.override { version = "1.2.0"; })
ppx_yojson_conv_lib
result
uutf

View File

@ -1,16 +1,23 @@
{ buildDunePackage, fetchurl, ppx_expect, lib }:
{ lib
, buildDunePackage
, fetchurl
, ppx_expect
, version ? "2.0.0"
}:
buildDunePackage rec {
pname = "pp";
version = "1.2.0";
inherit version;
src = fetchurl {
url =
"https://github.com/ocaml-dune/pp/releases/download/${version}/pp-${version}.tbz";
hash = "sha256-pegiVzxVr7Qtsp7FbqzR8qzY9lzy3yh44pHeN0zmkJw=";
hash = {
"2.0.0" = "sha256-hlE1FRiwkrSi3vTggXHCdhUvkvtqhKixm2uSnM20RBk=";
"1.2.0" = "sha256-pegiVzxVr7Qtsp7FbqzR8qzY9lzy3yh44pHeN0zmkJw=";
}."${version}";
};
duneVersion = "3";
minimalOCamlVersion = "4.08";
checkInputs = [ ppx_expect ];