From ad5fab6ce54fdc62b196e664a50140d3f07a277f Mon Sep 17 00:00:00 2001 From: Valentin Gagarin Date: Thu, 16 Feb 2023 10:00:06 +0100 Subject: [PATCH] refine the warning on using `nix-env` (#619) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refine the warning on using `nix-env` also highlight the command name * Format --------- Co-authored-by: Naïm Favier --- frontend/src/Page/Packages.elm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/frontend/src/Page/Packages.elm b/frontend/src/Page/Packages.elm index 6c80e23..dad3325 100644 --- a/frontend/src/Page/Packages.elm +++ b/frontend/src/Page/Packages.elm @@ -603,16 +603,18 @@ viewResultItem nixosChannels channel showInstallDetails show item = ] [ p [] [ strong [] [ text "Warning:" ] + , text " Using " + , code [] [ text "nix-env" ] , text """ - Using nix-env permanently modifies a - local profile of installed packages. - This must be cleaned up, updated and - maintained by the user, in the same - way as a traditional package - manager. Using nix-shell or a NixOS - configuration is recommended - instead. - """ + permanently modifies a local profile of installed packages. + This must be updated and maintained by the user in the same + way as with a traditional package manager, foregoing many + of the benefits that make Nix uniquely powerful. Using + """ + , code [] [ text "nix-shell" ] + , text """ + or a NixOS configuration is recommended instead. + """ ] ] , div