Skip to content

Commit

Permalink
Add info when init with cached Nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
flandweber committed May 21, 2024
1 parent 0ca27c5 commit 111bf5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Niv/Cli.hs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ 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 111bf5b

Please sign in to comment.