Generate Nix packages from URLs
Note: It is likely that the generated package will not work without some tweaks, also remember to double check the license and description even if it does work
- Hash prefetching powered by nurl
- Dependency inference for Rust packages using the Riff registry and python projects
- Interactive prompts with fuzzy tab completions
- License detection
- Supported builders
stdenv.mkDerivationbuildRustPackagebuildPythonApplicationandbuildPythonPackagebuildGoModule
- Supported fetchers
fetchCratefetchFromGitHubfetchFromGitLabfetchFromGiteafetchPypi- All other fetchers supported by nurl are also supported, you just have to specify the tags manually
Usage: nix-init [OPTIONS] <OUTPUT>
Arguments:
<OUTPUT> The path to output the generated file to
Options:
-u, --url <URL> Specify the URL
-c, --config <CONFIG> Specify the config file
-h, --help Print help
-V, --version Print version
nix-init will try to find nix-init/config.toml under XDG configuration directories
# ~/.config/nix-init/config.toml
# maintainers that will get added to the package meta
maintainers = ["figsoda"]
# access tokens to access private repositories and avoid rate limits
[access-tokens]
"github.com" = "ghp_blahblahblah..."
"gitlab.com".command = ["secret-tool", "or", "whatever", "you", "use"]
"gitlab.gnome.org".file = "/path/to/api/token"See CHANGELOG.md