From e86f21205abd6cb6098a6a99bb1f8332efae0cf3 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Wed, 21 Jan 2026 15:59:46 -0600 Subject: [PATCH] ocamlPackages.mirage-crypto: migrate to finalAttrs --- pkgs/development/ocaml-modules/mirage-crypto/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/ocaml-modules/mirage-crypto/default.nix b/pkgs/development/ocaml-modules/mirage-crypto/default.nix index 9a774afcedde..ddfd916532f7 100644 --- a/pkgs/development/ocaml-modules/mirage-crypto/default.nix +++ b/pkgs/development/ocaml-modules/mirage-crypto/default.nix @@ -10,14 +10,14 @@ ocaml-freestanding, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { minimalOCamlVersion = "4.13"; pname = "mirage-crypto"; version = "2.0.2"; src = fetchurl { - url = "https://github.com/mirage/mirage-crypto/releases/download/v${version}/mirage-crypto-${version}.tbz"; + url = "https://github.com/mirage/mirage-crypto/releases/download/v${finalAttrs.version}/mirage-crypto-${finalAttrs.version}.tbz"; hash = "sha256-c5qdOfNAJ/vJNVf4fFysQZClK92t/3LyEvqoA9YhWHQ="; }; @@ -38,7 +38,7 @@ buildDunePackage rec { meta = { homepage = "https://github.com/mirage/mirage-crypto"; description = "Simple symmetric cryptography for the modern age"; - changelog = "https://raw.githubusercontent.com/mirage/mirage-crypto/refs/tags/v${version}/CHANGES.md"; + changelog = "https://raw.githubusercontent.com/mirage/mirage-crypto/refs/tags/v${finalAttrs.version}/CHANGES.md"; license = with lib.licenses; [ isc # default license bsd2 # mirage-crypto-rng-mirage @@ -49,4 +49,4 @@ buildDunePackage rec { momeemt ]; }; -} +})