nix-init(1)

πŸ“¦ version 0.3.6, in nixos 26.05, nixpkgs unstable

NAME πŸ’«

okay bestie, meet nix-init β€” the tool that generates Nix packages with hash prefetching, license detection, and more. The project lives at https://github.com/nix-community/nix-init, iykyk ✨

This is the nix-init(1) page from the General Commands Manual, and we’re gonna get through every flag together, no cap πŸ’–


🌸 SYNOPSIS 🌸

nix-init [-u|--url] [--rev] [-S|--submodules] [-V|--version] [--pname] [--builder] [--cargo-vendor] [-y|--overwrite] [--headless] [-n|--nixpkgs] [-C|--commit] [-c|--config] [-h|--help] [OUTPUT]

πŸ’– DESCRIPTION πŸ’–

fr fr, nix-init is here to generate Nix packages with hash prefetching, license detection, and more. The project link is https://github.com/nix-community/nix-init β€” iconic behavior, honestly πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

  • -u, --url <URL> β€” specify the URL. This is the β€œwhere are we pulling from” moment πŸ’…
  • --rev <REV> β€” specify the tag or revision.
  • -S, --submodules[=<SUBMODULES>] β€” always fetch submodules when possible. Use --submodules=false to never fetch submodules. The possible values are:
    • true
    • false
  • -V, --version [<VERSION>] β€” specify the version of the package, or print the nix-init version if no arguments are present. Versatile queen 🫢
  • --pname <PNAME> β€” specify the pname.
  • --builder <BUILDER> β€” specify the builder. The possible values are:
    • buildGoModule
    • buildPythonApplication
    • buildPythonPackage
    • buildRustPackage
    • stdenv.mkDerivation
    • stdenvNoCC.mkDerivation
  • --cargo-vendor <CARGO_VENDOR> β€” specify how the cargo dependencies are vendored. The possible values are:
    • fetchCargoVendor
    • importCargoLock
  • -y, --overwrite[=<OVERWRITE>] β€” always overwrite files. Use --overwrite=false to never overwrite files. The possible values are:
    • true
    • false
  • --headless β€” don’t prompt for anything. Heads up bestie: this one requires --url ⚠️
  • -n, --nixpkgs <NIXPKGS> β€” path to nixpkgs (in nix). The examples are:
    • {n} -n ./. β€” use the current directory
    • {n} -n 'builtins.getFlake "nixpkgs"' β€” use the nixpkgs from the flake registry
    • {n} -n '<nixpkgs>' β€” default, use the nixpkgs from channels
  • -C, --commit[=<COMMIT>] β€” 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 information. The possible values are:
    • true
    • false
  • -c, --config <CONFIG> β€” specify the config file.
  • -h, --help β€” print help (see a summary with -h). Yes, the help text says to see -h for a summary β€” little self-referential icon behavior πŸ˜­πŸ’€
  • [OUTPUT] β€” the path or directory to output the generated file to.

That’s the whole nix-init(1) page from the nix-init manual β€” bye bestie, mwah! πŸ’–πŸ«Ά

πŸ“¦ where this page comes from