ocamlPackages.repr: 0.7.0 → 0.8.0 (#465039)

This commit is contained in:
Ulrik Strid
2025-11-27 09:56:02 +00:00
committed by GitHub
2 changed files with 19 additions and 25 deletions
+19 -13
View File
@@ -1,28 +1,34 @@
{
lib,
buildDunePackage,
fetchFromGitHub,
fetchurl,
base64,
either,
fmt,
jsonm,
uutf,
optint,
# This version constraint strictly applies only to ppx_repr,
# but is enforced here to get a consistent package set
# (with repr and ppx_repr at the same version)
ppxlib,
version ? if lib.versionAtLeast ppxlib.version "0.36" then "0.8.0" else "0.7.0",
}:
buildDunePackage rec {
buildDunePackage {
pname = "repr";
version = "0.7.0";
inherit version;
src = fetchFromGitHub {
owner = "mirage";
repo = "repr";
rev = version;
hash = "sha256-SM55m5NIaQ2UKAtznNFSt3LN4QA7As0DyTxVeQjOTjI=";
src = fetchurl {
url = "https://github.com/mirage/repr/releases/download/${version}/repr-${version}.tbz";
hash =
{
"0.8.0" = "sha256-FyhCO4sCCPmwMq0+Bd2WpDuSzXZBb5FG45TwsLoTM0c=";
"0.7.0" = "sha256-itrJ/oW/ig4g7raBDXIW6Y4bf02b05nmG7ECSs4lAaw=";
}
."${version}";
};
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [
base64
either
@@ -32,10 +38,10 @@ buildDunePackage rec {
optint
];
meta = with lib; {
meta = {
description = "Dynamic type representations. Provides no stability guarantee";
homepage = "https://github.com/mirage/repr";
license = licenses.isc;
maintainers = with maintainers; [ sternenseemann ];
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ sternenseemann ];
};
}
@@ -1,7 +1,6 @@
{
lib,
buildDunePackage,
fetchpatch,
ppx_deriving,
ppxlib,
repr,
@@ -14,17 +13,6 @@ buildDunePackage {
inherit (repr) src version;
patches = lib.optionals (lib.versionAtLeast ppxlib.version "0.36") [
(fetchpatch {
url = "https://github.com/mirage/repr/commit/460fc85a2804e3301bfc0e79413f5df472d95374.patch";
hash = "sha256-8nEPyeZ1s9Q/6+BKtdMb9kVhTfCdMmRrU3xpvizVZHA=";
})
(fetchpatch {
url = "https://github.com/mirage/repr/commit/c939a7317e126589bd6d6bd1d9e38cff749bcdb1.patch";
hash = "sha256-Srf5fZoc0iiJEZiW8PnIM5VdHOGofbdkhfnjQvFcTq0=";
})
];
propagatedBuildInputs = [
ppx_deriving
ppxlib