From 8b35bbbeb853229f10533446ba1cd0bc9a6330b3 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Tue, 30 Jul 2024 18:19:05 +0100 Subject: [PATCH] nexusmods-app: add long description Add a long description that documents whether or not RAR archive mods are supported. --- pkgs/by-name/ne/nexusmods-app/package.nix | 27 ++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ne/nexusmods-app/package.nix b/pkgs/by-name/ne/nexusmods-app/package.nix index 52c80336e34f1d0..de3789dd6900194 100644 --- a/pkgs/by-name/ne/nexusmods-app/package.nix +++ b/pkgs/by-name/ne/nexusmods-app/package.nix @@ -112,7 +112,6 @@ buildDotnetModule rec { }; meta = { - description = "Game mod installer, creator and manager"; mainProgram = "NexusMods.App"; homepage = "https://github.com/Nexus-Mods/NexusMods.App"; changelog = "https://github.com/Nexus-Mods/NexusMods.App/releases/tag/${src.rev}"; @@ -122,5 +121,31 @@ buildDotnetModule rec { MattSturgeon ]; platforms = lib.platforms.linux; + description = "Game mod installer, creator and manager"; + longDescription = '' + ${meta.description}. + + ${ + if _7zz.meta.unfree then + '' + This "unfree" variant includes support for mods packaged as RAR archives. + '' + else + '' + It is strongly recommended that you use the "unfree" variant of this package, + which provides support for mods packaged as RAR archives. + + You can also enable unrar support manually, by overriding the `_7zz` used: + + ```nix + pkgs.nexusmods-app.override { + _7zz = pkgs._7zz.override { + enableUnfree = true; + }; + } + ``` + '' + } + ''; }; }