Generate Nix fetcher calls from repository URLs [maintainer=@figsoda]
Go to file
2022-12-30 12:38:41 -05:00
.github initial commit 2022-12-29 13:02:55 -05:00
src clean up 2022-12-30 12:38:41 -05:00
.gitignore add flake 2022-12-30 10:23:21 -05:00
Cargo.lock enum dispatch 2022-12-30 12:33:44 -05:00
Cargo.toml enum dispatch 2022-12-30 12:33:44 -05:00
CHANGELOG.md bump version 2022-12-29 21:11:41 -05:00
flake.lock add flake 2022-12-30 10:23:21 -05:00
flake.nix add flake 2022-12-30 10:23:21 -05:00
LICENSE initial commit 2022-12-29 13:02:55 -05:00
README.md initial implementation 2022-12-29 21:04:19 -05:00
rustfmt.toml initial commit 2022-12-29 13:02:55 -05:00

nurl

release version deps license ci

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