From f338dfad733732590e13007a45bf4b41c38bfa01 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Thu, 22 Jan 2026 10:14:22 -0600 Subject: [PATCH] ocamlPackages.magic-mime: migrate to finalAttrs --- pkgs/development/ocaml-modules/magic-mime/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/magic-mime/default.nix b/pkgs/development/ocaml-modules/magic-mime/default.nix index 9f2af3cea2f1..1ff4253ee077 100644 --- a/pkgs/development/ocaml-modules/magic-mime/default.nix +++ b/pkgs/development/ocaml-modules/magic-mime/default.nix @@ -4,12 +4,12 @@ buildDunePackage, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "magic-mime"; version = "1.3.1"; src = fetchurl { - url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${version}/magic-mime-${version}.tbz"; + url = "https://github.com/mirage/ocaml-magic-mime/releases/download/v${finalAttrs.version}/magic-mime-${finalAttrs.version}.tbz"; hash = "sha256-4CNNA2Jduh76xY5X44dnLXWl6aYh/0ms/g9gnADxOwg="; }; @@ -21,4 +21,4 @@ buildDunePackage rec { license = lib.licenses.isc; maintainers = with lib.maintainers; [ vbgl ]; }; -} +})