From 3184d53dc86314ba8e87f6cde09d5bbaa50403b7 Mon Sep 17 00:00:00 2001 From: Guy Chronister Date: Thu, 22 Jan 2026 12:08:59 -0600 Subject: [PATCH] ocamlPackages.ppx_deriving: migrate to finalAttrs --- pkgs/development/ocaml-modules/ppx_deriving/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/ppx_deriving/default.nix b/pkgs/development/ocaml-modules/ppx_deriving/default.nix index 3a7b4586bc72..c00f99dc84d5 100644 --- a/pkgs/development/ocaml-modules/ppx_deriving/default.nix +++ b/pkgs/development/ocaml-modules/ppx_deriving/default.nix @@ -36,12 +36,12 @@ let ."${version}"; in -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "ppx_deriving"; inherit version; src = fetchurl { - url = "https://github.com/ocaml-ppx/ppx_deriving/releases/download/v${version}/ppx_deriving-${lib.optionalString (lib.versionOlder version "6.0") "v"}${version}.${ + url = "https://github.com/ocaml-ppx/ppx_deriving/releases/download/v${finalAttrs.version}/ppx_deriving-${lib.optionalString (lib.versionOlder version "6.0") "v"}${finalAttrs.version}.${ if lib.versionAtLeast version "6.1.1" then "tar.gz" else "tbz" }"; inherit hash; @@ -71,4 +71,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.maurer ]; license = lib.licenses.mit; }; -} +})