mirror of
https://github.com/nmattia/niv.git
synced 2024-09-19 11:27:40 +03:00
Change default repo to NixOS/nixpkgs
Also use defaultNixpkgsUser and defaultNixpkgsRepo in the options parser
This commit is contained in:
parent
c27f5a6c57
commit
2521c74b8b
@ -359,7 +359,7 @@ Available options:
|
||||
--no-nixpkgs Don't add a nixpkgs entry to sources.json.
|
||||
-b,--nixpkgs-branch ARG The nixpkgs branch to use. (default: "release-19.09")
|
||||
--nixpkgs OWNER/REPO Use a custom nixpkgs repository from
|
||||
GitHub. (default: NixOS/nixpkgs-channels)
|
||||
GitHub. (default: NixOS/nixpkgs)
|
||||
-h,--help Show this help text
|
||||
```
|
||||
|
||||
|
@ -109,7 +109,7 @@ instance Show Nixpkgs where
|
||||
|
||||
-- | The default nixpkgs
|
||||
defaultNixpkgsRepo, defaultNixpkgsUser :: T.Text
|
||||
defaultNixpkgsRepo = "nixpkgs-channels"
|
||||
defaultNixpkgsRepo = "nixpkgs"
|
||||
defaultNixpkgsUser = "NixOS"
|
||||
|
||||
parseCmdInit :: Opts.ParserInfo (NIO ())
|
||||
@ -139,7 +139,7 @@ parseCmdInit = Opts.info (cmdInit <$> parseNixpkgs <**> Opts.helper) $ mconcat d
|
||||
Opts.showDefault <>
|
||||
Opts.help "Use a custom nixpkgs repository from GitHub." <>
|
||||
Opts.metavar "OWNER/REPO" <>
|
||||
Opts.value (Nixpkgs "NixOS" "nixpkgs-channels")
|
||||
Opts.value (Nixpkgs defaultNixpkgsUser defaultNixpkgsRepo)
|
||||
))
|
||||
desc =
|
||||
[ Opts.fullDesc
|
||||
|
Loading…
Reference in New Issue
Block a user