Skip to content

Commit

Permalink
Add info when init with cached Nixpkgs (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
flandweber authored May 23, 2024
1 parent 0ca27c5 commit 84fed67
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Niv/Cli.hs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,15 @@ cmdInit nixpkgs = do
tbold (T.pack fp) <> "."
]
]
case nixpkgs of
NixpkgsFast ->
tsay $
T.unlines
[ "",
tbold (tblue "INFO: ") <> "`niv init` didn't fetch the latest commit for nixpkgs (due to --fast).",
" Run `niv update nixpkgs` if you wish to pin the latest."
]
_ -> pure ()
where
createFile :: FilePath -> B.ByteString -> NIO ()
createFile path content = li $ do
Expand Down

0 comments on commit 84fed67

Please sign in to comment.