nix-init(1)
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=falseto never fetch submodules. The possible values are:truefalse
-V,--version [<VERSION>]β specify the version of the package, or print thenix-initversion if no arguments are present. Versatile queen π«Ά--pname<PNAME> β specify the pname.--builder<BUILDER> β specify the builder. The possible values are:buildGoModulebuildPythonApplicationbuildPythonPackagebuildRustPackagestdenv.mkDerivationstdenvNoCC.mkDerivation
--cargo-vendor<CARGO_VENDOR> β specify how the cargo dependencies are vendored. The possible values are:fetchCargoVendorimportCargoLock
-y,--overwrite[=<OVERWRITE>]β always overwrite files. Use--overwrite=falseto never overwrite files. The possible values are:truefalse
--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). Seehttps://github.com/NixOS/nixpkgs/tree/master/pkgs/by-namefor more information. The possible values are:truefalse
-c,--config<CONFIG> β specify the config file.-h,--helpβ print help (see a summary with-h). Yes, the help text says to see-hfor 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
- nixos 26.05: nix-init 0.3.6
- nixpkgs unstable: nix-init 0.3.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms