- Add statix sugegstions
- Fetch submodules (if supported, otherwise warn)
- Add ability to pass submodules to
builtins.fetchGit
- Remove warnings about GITHUB_INSECURE and GITHUB_PATH
- Support newer GHC
- Update optparse-applicative and aeson (aeson 2)
- Update nixpkgs and track master
- Speed up initialization (skip
nix-prefetch-url
) - Bunch of documentation fixes
- Fix badges and GitHub Actions
- There is a new flag
--no-colors
for avoiding colors in the output
GITHUB_PATH
was renamed toNIV_GITHUB_PATH
#280GITHUB_INSECURE
was renamed toNIV_GITHUB_INSECURE
#280- If
-T
is provided on the command line forniv add
it will be respected and no guessing from the url is done. type
attribute is now respected.- If an url template is updated,
type
needs to be adjusted manuall as it is not guessed from the new url template.
- There is a new flag
-r/--rev
for specifying a revision during update and add - There is a new flag
--version
that instructs niv to show its version and exit
- The derivation name of sources is sanitized
- The
ref
field was deprecated in favor ofbranch
andtag
ingit
sources
- The
sources.nix
can now be imported when there's no localsources.json
- The sources can be overriden with
NIV_OVERRIDE_<source name>
- When
nix-prefetch-url
fails the command is shown - IO operations during update are cached
niv add local
for local sources.- Custom nixpkgs can be specified during
init
.
- The derivation name for package
foo
is nowfoo-src
. - The extension
.tgz
is considered as.tar.gz
. - The default nixpkgs is
release-20.03
. - Nixpkgs is now pulled from
NixOS/nixpkgs
, not from channels.
- The types
builtin-tarbal
andbuiltin-url
were removed.
niv modify -n NAME
to rename a package
- README mentions the
modify
command niv
is not shipped with theniv-test
executable anymorecabal-upload
was simplified
- Examples for building C++ libraries with niv
- Documentation for using niv from nixpkgs
- Only depend on executables in
default.nix
(-A niv
) for smaller closure size - Ensure
<nixpkgs>
is not evaluated insources.nix
unless necessary
- Users can set custom
pkgs
whenimport
ingsources.nix
- The bundled
nix/sources.nix
is formatted withnixpkgs-fmt
niv init
uses nixpkgs 19.09
- Fixed message in
niv init
with customsources.json
- Support for custom path
sources.json
with--sources-json
- Fix
niv update
withgit
specs
- Fix
niv show
adding extra newlines
- Experimental support for
add
subcommands, in particularniv add git
- Various error message fixes
- A new CLI option (
-s
) reads attributes as raw strings.
- The attribute CLI option (
-a
) now allows JSON value. - Some typos were fixed.
- A deprecation warning was added for
builtin-tarball
.
- The
sources.nix
are now versioned. - Show the help when no arguments are provided.
- The
show
command was prettified.