nurl(1)

πŸ“¦
version 0.4.1 Β· 2 versions
, in nixpkgs unstable

nurl(1) πŸ’– the General Commands Manual bestie era

okay so welcome to nurl(1) from the General Commands Manual β€” she's cute, she's useful, she generates Nix fetcher calls. periodt.

🌸 NAME 🌸

nurl β€” Generate Nix fetcher calls from repository URLs. The repo is literally https://github.com/nix-community/nurl. That's the name section, bestie πŸ’….

✨ SYNOPSIS ✨

nurl [-S|--submodules] [-f|--fetcher] [-F|--fallback] [-n|--nixpkgs]
[-i|--indent] [-H|--hash] [-j|--json] [-p|--parse] [-a|--arg]
[-A|--arg-str] [-o|--overwrite] [-O|--overwrite-str] [--overwrite-rev]
[--overwrite-rev-str] [-e|--expr] [-l|--list-fetchers]
[-L|--list-possible-fetchers] [-s|--list-sep] [-h|--help] [-V|--version]
[URL] [REV]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so real talk: nurl will Generate Nix fetcher calls from repository URLs. That's the whole vibe. The repo lives at https://github.com/nix-community/nurl and yes, it's iconic ✨.

πŸ’… OPTIONS πŸ’…

Every flag, every default, no skipping β€” we are not leaving the boring parts out, bestie 🫢.

  • -S, --submodules[=<SUBMODULES>] β€” Fetch submodules instead of using the fetcher's default. Possible values: true, false.
  • -f, --fetcher <FETCHER> β€” Specify the fetcher function instead of inferring from the URL. Possible values:
    • builtins.fetchGit
    • fetchCrate
    • fetchFromBitbucket
    • fetchFromGitHub
    • fetchFromGitLab
    • fetchFromGitea
    • fetchFromGitiles
    • fetchFromRepoOrCz
    • fetchFromSourcehut
    • fetchHex
    • fetchPypi
    • fetchgit
    • fetchhg
    • fetchpatch
    • fetchpatch2
    • fetchsvn
    • fetchurl
    • fetchzip
  • -F, --fallback <FALLBACK> β€” The fetcher to fall back to when nurl fails to infer it from the URL. Default: fetchgit. Possible values: builtins.fetchGit, fetchCrate, fetchFromBitbucket, fetchFromGitHub, fetchFromGitLab, fetchFromGitea, fetchFromGitiles, fetchFromRepoOrCz, fetchFromSourcehut, fetchHex, fetchPypi, fetchgit, fetchhg, fetchpatch, fetchpatch2, fetchsvn, fetchurl, fetchzip.
  • -n, --nixpkgs <NIXPKGS> β€” Path to nixpkgs (in nix). Default: <nixpkgs>.
  • -i, --indent <INDENT> β€” Extra indentation (in number of spaces). Default: 0.
  • -H, --hash β€” Only output the hash.
  • -j, --json β€” Output in json format.
  • -p, --parse β€” Parse the url without fetching the hash, output in json format. Note that --arg(-str) and --overwrite(-str) will be ignored silently.
  • -a, --arg <NAME> <EXPR> β€” Additional arguments to pass to the fetcher.
  • -A, --arg-str <NAME> <STRING> β€” Same as --arg, but accepts strings instead of Nix expressions.
  • -o, --overwrite <NAME> <EXPR> β€” Overwrite arguments in the final output, not taken into consideration when fetching the hash. Note that nurl does not verify any of the overwrites; for the final output to be valid, the user should not overwrite anything that would change the hash. Examples: {n} --overwrite repo pname {n} --overwrite rev version.
  • -O, --overwrite-str <NAME> <STRING> β€” Same as --overwrite, but accepts strings instead of Nix expressions. Examples: {n} --overwrite-str rev 'v${version}' {n} --overwrite-str meta.homepage https://example.org.
  • --overwrite-rev <EXPR> β€” Same as --overwrite (rev|tag|version) <EXPR>, depending on the rev-like attribute the fetcher uses.
  • --overwrite-rev-str <STRING> β€” Same as --overwrite-str (rev|tag|version) <STRING>, depending on the rev-like attribute the fetcher uses.
  • -e, --expr <EXPR> β€” Instead of fetching a URL, get the hash of a fixed-output derivation, implies --hash and ignores all other options. Example: --expr '(import <nixpkgs> { }).nurl.src'.
  • -l, --list-fetchers β€” List all available fetchers.
  • -L, --list-possible-fetchers β€” List all fetchers that can be generated without --fetcher.
  • -s, --list-sep <SEPARATOR> β€” Print out the listed fetchers with the specified separator, only used when --list-fetchers or --list-possible-fetchers is specified.
  • -h, --help β€” Print help (see a summary with -h).
  • -V, --version β€” Print version.
  • [URL] β€” URL to the repository to be fetched.
  • [REV] β€” The revision or reference to be fetched.

🌈 VERSION 🌈

v0.4.1 πŸŽ€


okay that's the whole page, bestie πŸ«ΆπŸ’– the footer is giving source/version nurl 0.4.1 with nurl(1) on the right, and there's no date printed on it β€” that's the entire footer vibe, no cap. slay ✨

πŸ“¦ where this page comes from