From 346ae7147c5c5695168c31393b069968b84808f9 Mon Sep 17 00:00:00 2001 From: Hythera <87016780+Hythera@users.noreply.github.com> Date: Tue, 3 Feb 2026 22:41:35 +0100 Subject: [PATCH] reposilitePlugins.*: add pname --- pkgs/by-name/re/reposilite/plugins.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/re/reposilite/plugins.nix b/pkgs/by-name/re/reposilite/plugins.nix index 68a0ea2cfffb..1bac33a36b5f 100644 --- a/pkgs/by-name/re/reposilite/plugins.nix +++ b/pkgs/by-name/re/reposilite/plugins.nix @@ -18,9 +18,13 @@ makeScopeWithSplicing' { reposilite, }: lib.makeOverridable ( - { name, hash }: + { + name, + hash, + }: let inherit (reposilite) version; + pname = name; fancyName = lib.concatStrings [ (lib.toUpper (builtins.substring 0 1 name)) @@ -29,7 +33,7 @@ makeScopeWithSplicing' { in fetchurl { url = "https://maven.reposilite.com/releases/com/reposilite/plugin/${name}-plugin/${version}/${name}-plugin-${version}-all.jar"; - inherit version hash; + inherit pname version hash; meta = { description = "${fancyName} plugin for Reposilite.";