mirror of
https://github.com/nix-community/nurl.git
synced 2024-08-16 21:41:20 +03:00
Generate Nix fetcher calls from repository URLs [maintainer=@figsoda]
bitbucketcodebergcratecratesfetchgitgiteagithubgitlabhgmercurialnixprefetchsourcehutstarred-nix-community-repostarred-reposvn
.github | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
CHANGELOG.md | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md | ||
rustfmt.toml |
nurl
Generate Nix fetcher calls from repository URLs
Installation
The latest precompiled binaries are available on github.
Alternatively you can install nurl from crates.io with cargo.
cargo install nurl
Building from source
cargo build --release
Usage
Generate Nix fetcher calls from repository URLs
https://github.com/nix-community/nurl
Usage: nurl [OPTIONS] <URL> <REV>
Arguments:
<URL> URL to the repository to be fetched
<REV> the revision or reference to be fetched
Options:
-f, --fetcher <FETCHER> specify the fetcher function instead of inferring from the URL [possible values: fetchFromGitHub, fetchFromGitLab, fetchFromSourcehut, fetchgit, fetchhg]
-i, --indent <INDENT> extra indentation (in number of spaces) [default: 0]
-h, --help Print help information
-V, --version Print version information
Changelog
See CHANGELOG.md