Skip to content

Commit

Permalink
nix profile install example
Browse files Browse the repository at this point in the history
  • Loading branch information
starsep committed Aug 20, 2024
1 parent d5076f6 commit cd3c551
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ pageHome database request = do
H.p $ "Use " <> H.code (toMarkup keyName) <> " in a " <> H.code "nix-shell" <> "."
nixCodeBlock $ "nix-shell -p " <> keyName <> " -I nixpkgs=" <> revisionURL hash

H.p $ "Use " <> H.code (toMarkup keyName) <> " with " <> H.code "nix profile" <> "."
nixCodeBlock $ "nix profile install nixpkgs/" <> fromHash hash <> "#" <> keyName

H.p $ "Use " <> H.code (toMarkup name) <> " in a nix script via tarball"
nixCodeBlock $ Text.unlines
[ "let"
Expand Down

0 comments on commit cd3c551

Please sign in to comment.