Skip to content

Commit

Permalink
Merge pull request #46 from starsep/nix-profile
Browse files Browse the repository at this point in the history
nix profile install example
  • Loading branch information
lazamar authored Aug 29, 2024
2 parents c6b8da7 + cd3c551 commit 5f43f41
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 @@ -284,6 +284,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 5f43f41

Please sign in to comment.