Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more [maintainer=@figsoda]

License

MPL-2.0, Unknown licenses found

Licenses found

MPL-2.0
LICENSE
Unknown
license-store-cache.nix
NotificationsYou must be signed in to change notification settings

nix-community/nix-init

nix-init

matrixreleaseversionlicenseci

Generate Nix packages from URLs

Note: It is likely that the generated package will not work without sometweaks, also remember to double check the license and description even if itdoes work

  • Hash prefetching powered bynurl with support forcargoHash andvendorHash
  • Dependency inference for Rust, Go, and Python projects
  • Interactive prompts with fuzzy tab completions
  • License detection

Installation

The latest release of nix-init is packaged in nixpkgs and kept up to date on theunstable branches

If you want to use a more recent snapshot of nix-init, it is also available as aflake. The following command is equivalent to runningnix-init --help:

nix run github:nix-community/nix-init -- --help

or if you don't have flakes enabled:

nix run --extra-experimental-features"flakes nix-command" github:nix-community/nix-init -- --help

Usage

Usage: nix-init [OPTIONS] [OUTPUT]Arguments:  [OUTPUT]  The path or directory to output the generated file toOptions:  -u, --url <URL>          Specify the URL  -n, --nixpkgs <NIXPKGS>  Path to nixpkgs (in nix)  -C, --commit[=<COMMIT>]  Commit the changes if the output path is name-based (RFC 140) [possible values: true, false]  -c, --config <CONFIG>    Specify the config file  -h, --help               Print help  -V, --version            Print version

Supported builders

  • stdenv.mkDerivation
  • buildRustPackage
  • buildPythonApplication andbuildPythonPackage
  • buildGoModule

Supported fetchers

  • fetchCrate
  • fetchFromGitHub
  • fetchFromGitLab
  • fetchFromGitea
  • fetchPypi
  • All other fetchers supported bynurl are also supported, you just have tomanually input the tag/revision of the package

Configuration

nix-init will try to findnix-init/config.toml under XDG configurationdirectories

# ~/.config/nix-init/config.toml# maintainers that will get added to the package metamaintainers = ["figsoda"]# path to nixpkgs (in nix), equivalent to `--nixpkgs`nixpkgs ="<nixpkgs>"# use the nixpkgs from channels (default)# nixpkgs = 'builtins.getFlake "nixpkgs"' # use the nixpkgs from the flake registry# commit the changes if the output path is name-based (RFC 140)# see https://github.com/NixOS/nixpkgs/tree/master/pkgs/by-name for more informationcommit =true# 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"

Changelog

SeeCHANGELOG.md

About

Generate Nix packages from URLs with hash prefetching, dependency inference, license detection, and more [maintainer=@figsoda]

Topics

Resources

License

MPL-2.0, Unknown licenses found

Licenses found

MPL-2.0
LICENSE
Unknown
license-store-cache.nix

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp