From c2ecdba5e0f5784b84d35e1e05d44b384316dbd9 Mon Sep 17 00:00:00 2001 From: Samuel Ainsworth Date: Fri, 7 Jun 2024 04:00:23 -0400 Subject: [PATCH] Packages.elm: add `nix profile install nixpkgs#foo` directions (#720) Per https://github.com/DeterminateSystems/nix-installer/issues/511#issuecomment-1588399915, `nix profile install nixpkgs#foo` is apparently the new and improved way to install things on channel-less nix installations. Co-authored-by: Rok Garbas --- frontend/src/Page/Packages.elm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/Page/Packages.elm b/frontend/src/Page/Packages.elm index abaa5de..e352892 100644 --- a/frontend/src/Page/Packages.elm +++ b/frontend/src/Page/Packages.elm @@ -652,7 +652,9 @@ viewResultItem nixosChannels channel showInstallDetails show item = , id "package-details-nixpkgs" ] [ pre [ class "code-block shell-command" ] - [ text "nix-env -iA nixpkgs." + [ text "# without flakes:\nnix-env -iA nixpkgs." + , strong [] [ text item.source.attr_name ] + , text "# with flakes:\nnix profile install nixpkgs#" , strong [] [ text item.source.attr_name ] ] ]