From 05ee32473a45dfa6fb550b8e7fe66786a42365bf 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 44b255d19e0e678..dd63e71e69e684a 100644 --- a/pkgs/by-name/ne/nexusmods-app/package.nix +++ b/pkgs/by-name/ne/nexusmods-app/package.nix @@ -125,7 +125,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}"; @@ -135,5 +134,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; + }; + } + ``` + '' + } + ''; }; }