Nu

Nurl: Generate Nix fetcher calls from repository URLs

Hacker News

Nurl: Generate Nix fetcher calls from repository URLs

`nurl` is like a `nix-prefetch-git` that selects the optimal fetcher inferred from the URL, with a wide support of fetchers listed below. Here is a quick demo of how it works: $ nurl https://github.com/nix-community/patsh v0.2.0 2>/dev/null fetchFromGitHub { owner = "nix-community"; repo = "patsh"; rev = "v0.2.0"; hash = "sha256-7HXJspebluQeejKYmVA7sy/F3dtU1gc4eAbKiPexMMA="; } ### Supported Fetchers - builtins.fetchGit - fetchCrate - fetchFromBitbucket - fetchFromGitHub - fetchFromGitLab - fetchFromGitea - fetchFromGitiles - fetchFromRepoOrCz - fetchFromSourcehut - fetchHex - fetchPypi - fetchgit - fetchhg - fetchsvn ### Usage Usage: nurl [OPTIONS] [URL] [REV] Arguments: [URL] URL to the repository to be fetched [REV] The revision or reference to be fetched Options: -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, fetchsvn] -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, fetchsvn] -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 -a, --arg <NAME> <EXPR> Additional arguments to pass to the fetcher -A, --arg-str <NAME> <STRING> Same as --arg, but accepts strings instead Nix expressions -o, --overwrite <NAME> <EXPR> Overwrite arguments in the final output, not taken into consideration when fetching the hash -O, --overwrite-str <NAME> <STRING> Same as --overwrite, but accepts strings instead Nix expressions -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 -V, --version Print version

Share card

Actual performance

1points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntUnlikely to reach the leaderboard · Strong signals: using · Missing: mac, agents, macos
45%45% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
TrustMRRLess likely to generate early MRR · Strong signals: para · Missing: mobile apps, ios, personal
43%43% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: calls · Missing: plus, platform, intuitive
42%42% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: ide, io · Missing: https docs, excited, just released
30%30% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersIH features products with proven revenue · Strong signals: para · Missing: supports, reddit linkedin, podcasting
18%18% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
15%15% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
2%2% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Th
The immutable repository52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The immutable repository

Hacker News1
Un
Unofficial Debian Sid Repository for Hyprland48%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Unofficial Debian Sid Repository for Hyprland

Hacker News3
Re
Redu – ncdu for your restic repository41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Redu – ncdu for your restic repository

Hacker News4
Waybash
Waybash63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Crawling URLs for Targets from Wayback Implementation in Bas

Indie Hackers1$10,000/moanalytics
Sh
Shout Link – An API to Generate Memorable URLs40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Shout Link – An API to Generate Memorable URLs

Hacker News1
GitAgent by Lyzr
GitAgent by Lyzr72%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Your repository becomes your agent

Product Hunt+230Artificial Intelligence
Ge
Generate OpenGraph Images from Figma URLs32%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Generate OpenGraph Images from Figma URLs

Hacker News2
Eb
Ebola Outbreak Data Repository46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Ebola Outbreak Data Repository

Hacker News2
Gi
GitOps Repository Management41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GitOps Repository Management

Hacker News2
WhereToTrek
WhereToTrek47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A repository of treks around the world

Indie Hackers1community