Generate nix sources expr for the latest version of packages
nix-prefetch
with nix-prefetch-git
and nix-prefetch-url
fetchGitHubRelease'
to PackageSet
GetGitCommitDate
rule--keyfile
to pass nvchecker keyfile
There have been many significant changes since the last release. Starting from this version, nvfetcher no longer requires shake database for each project, in other words, there is no need to commit the database in git or share it between machines. Also, a machine-readable generated.json
will be generated for convenience.
The option in TOML configuration cargo_lock
(string) was changed to cargo_locks
(list of strings), since now nvfetcher supports handling multi-cargo locks.
fetchFromGitHub
as the GitHub fetcher (introduces nix-prefetch
)argActionAfterBuild
fetchTarball
generated.json
Config
from Arg
and save it to shake extraArgs
to provide a more concise API_build
to _sources
sources.nix -> _sources/generated.nix
--output
(was used to set the symlink source name, sources.nix
by default)build-dir
to specify build directory (_sources
by default)--commit-changes
to commit changes of build directorynvfetcher clean
to keep the build system consistency manually)There are massive enhancements since the last release:
fetch.url = url:version
-> fetch.url = url
)cargoLock
for rustPlatform.buildRustPackage
git.branch
) from git fetcher.shake
to _build
_build
, and symlink it to ../sources.nix
(You have to keep _build
as the nvfetcher
run result)src.webpage
and src.httpheader
src.github_tag
runNvfetcher
(use nvfetcher
in the DSL way) and nvfetcher
executable programghcWithNvfetcher
for people who want to use nvfetcher
as a Haskell librarynix-git-prefetch
configurations in TOML.nvfetcher
has its own CLI options with completion support.