From 4868c12f4002e4bea45ca255677b86cddf4cf744 Mon Sep 17 00:00:00 2001 From: Mutsuha Asada Date: Fri, 20 Jun 2025 00:09:23 +0900 Subject: [PATCH] ocamlPackages.encore: 0.8 -> 0.8.1 (#414532) * ocamlPackages.encore: 0.8 -> 0.8.1 Diff: https://github.com/mirage/encore/compare/v0.8...v0.8.1 Changelog: https://github.com/mirage/encore/releases/tag/v0.8.1 * ocamlPackages.encore: modernized derivation - Removed duneVersion - Added longDescription and changelog --- .../development/ocaml-modules/encore/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/ocaml-modules/encore/default.nix b/pkgs/development/ocaml-modules/encore/default.nix index e360b0004a6a..0932d3cdf726 100644 --- a/pkgs/development/ocaml-modules/encore/default.nix +++ b/pkgs/development/ocaml-modules/encore/default.nix @@ -10,17 +10,15 @@ buildDunePackage rec { pname = "encore"; - version = "0.8"; + version = "0.8.1"; - minimalOCamlVersion = "4.08"; + minimalOCamlVersion = "4.07"; src = fetchurl { - url = "https://github.com/mirage/encore/releases/download/v${version}/encore-v${version}.tbz"; - sha256 = "a406bc9863b04bb424692045939d6c170a2bb65a98521ae5608d25b0559344f6"; + url = "https://github.com/mirage/encore/releases/download/v${version}/encore-${version}.tbz"; + hash = "sha256-qg6heSBc6OSfb7vZxEi4rrKh+nx+ffnsCfVvhVR3yY0="; }; - duneVersion = "3"; - propagatedBuildInputs = [ angstrom fmt @@ -32,6 +30,12 @@ buildDunePackage rec { meta = { homepage = "https://github.com/mirage/encore"; description = "Library to generate encoder/decoder which ensure isomorphism"; + longDescription = '' + Encore is a little library to provide an interface to generate an angstrom decoder and + an internal encoder from a shared description. The goal is to ensure a dual isomorphism + between them. + ''; + changelog = "https://raw.githubusercontent.com/mirage/encore/refs/tags/v${version}/CHANGES.md"; license = lib.licenses.mit; maintainers = [ lib.maintainers.vbgl ]; };