From e12c398240c251ff35285ee643259ac245226186 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Tue, 27 Jan 2026 22:52:55 +0100 Subject: [PATCH] ocamlPackages.uutf: set pname instead of name --- pkgs/development/ocaml-modules/uutf/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/ocaml-modules/uutf/default.nix b/pkgs/development/ocaml-modules/uutf/default.nix index 86ce05644618..8c3c333c96a6 100644 --- a/pkgs/development/ocaml-modules/uutf/default.nix +++ b/pkgs/development/ocaml-modules/uutf/default.nix @@ -17,8 +17,9 @@ throw "uutf is not available with OCaml ${ocaml.version}", }: -stdenv.mkDerivation { - name = "ocaml${ocaml.version}-uutf-${version}"; +stdenv.mkDerivation (finalAttrs: { + name = "ocaml${ocaml.version}-${finalAttrs.pname}-${finalAttrs.version}"; + pname = "uutf"; inherit version; src = fetchurl { @@ -56,4 +57,4 @@ stdenv.mkDerivation { mainProgram = "utftrip"; inherit (ocaml.meta) platforms; }; -} +})