1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-18 19:07:19 +03:00

Change default repo to NixOS/nixpkgs

Also use defaultNixpkgsUser and defaultNixpkgsRepo in the options parser
This commit is contained in:
Sarah Brofeldt 2020-07-13 19:34:02 +02:00 committed by Nicolas Mattia
parent c27f5a6c57
commit 2521c74b8b
2 changed files with 3 additions and 3 deletions

View File

@ -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
```

View File

@ -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