From b2eaf26e71c593f1262ce31ef13602eced0b2eff Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 28 Nov 2025 06:09:26 +0100 Subject: [PATCH] =?UTF-8?q?ocamlPackages.opam-file-format:=202.1.6=20?= =?UTF-8?q?=E2=86=92=202.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../opam-file-format/default.nix | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/pkgs/development/ocaml-modules/opam-file-format/default.nix b/pkgs/development/ocaml-modules/opam-file-format/default.nix index eaf87e5684f8..ceffbbfb914f 100644 --- a/pkgs/development/ocaml-modules/opam-file-format/default.nix +++ b/pkgs/development/ocaml-modules/opam-file-format/default.nix @@ -1,27 +1,26 @@ { lib, - fetchFromGitHub, + fetchurl, buildDunePackage, + menhir, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "opam-file-format"; - version = "2.1.6"; + version = "2.2.0"; - src = fetchFromGitHub { - owner = "ocaml"; - repo = pname; - rev = version; - sha256 = "sha256-Ka9pMYB99kM+5X7wf9F13gUrjouZucGevvkSY0TaXGg="; + src = fetchurl { + url = "https://github.com/ocaml/opam-file-format/releases/download/${finalAttrs.version}/opam-file-format-${finalAttrs.version}.tar.gz"; + hash = "sha256-SrU1Cw3L1EwFmrDFnYE2jzSvdwccDmXYHGpbm/ql6Ck="; }; - useDune2 = true; + nativeBuildInputs = [ menhir ]; - meta = with lib; { + meta = { description = "Parser and printer for the opam file syntax"; - license = licenses.lgpl21; - maintainers = with maintainers; [ vbgl ]; + license = lib.licenses.lgpl21; + maintainers = with lib.maintainers; [ vbgl ]; homepage = "https://github.com/ocaml/opam-file-format/"; - changelog = "https://github.com/ocaml/opam-file-format/raw/${version}/CHANGES"; + changelog = "https://github.com/ocaml/opam-file-format/raw/${finalAttrs.version}/CHANGES"; }; -} +})