Nixpkgs/Manuals: Difference between revisions
Phanirithvij (talk | contribs) nix-darwin manual |
Isabelroses (talk | contribs) update link to nix-darwin manual |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
The manual for nix, the package manager | The manual for nix, the package manager | ||
https://nix.dev/manual/nix/unstable | |||
https://nix.dev/manual/nix/stable | https://nix.dev/manual/nix/stable | ||
https://nix.dev/manual/nix/2.29 | |||
https://nix.dev/manual/nix/2. | |||
=== Nixpkgs === | === Nixpkgs === | ||
Line 24: | Line 24: | ||
The manual for nixos, the linux based operating system | The manual for nixos, the linux based operating system | ||
https://nixos.org/manual/nixos/unstable | |||
https://nixos.org/manual/nixos/stable | https://nixos.org/manual/nixos/stable | ||
=== home-manager === | === home-manager === | ||
Line 39: | Line 39: | ||
The manual for [[Nix-darwin]] | The manual for [[Nix-darwin]] | ||
https:// | https://nix-darwin.github.io/nix-darwin/manual/index.html | ||
== Building the manuals yourself == | == Building the manuals yourself == | ||
Line 76: | Line 76: | ||
checkout the specific revision (branch or commit) | checkout the specific revision (branch or commit) | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash">git checkout nixos-24.05 | ||
git checkout nixos-24.05 | nix build .#nixpkgs-manual --print-out-paths --no-link</syntaxhighlight> | ||
nix build .#nixpkgs-manual --print-out-paths --no-link | |||
</syntaxhighlight> | |||
=== nix manual === | === nix manual === | ||
Line 85: | Line 83: | ||
{{Warning|Building the nix manual requires building nix, for master branch it will build from source and it will take quite a while.}} | {{Warning|Building the nix manual requires building nix, for master branch it will build from source and it will take quite a while.}} | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"># before nix version 2.25.0 | ||
# before nix version 2.25.0 | |||
nix build github:nixos/nix/2.24.11#nix^doc --print-out-paths --no-link | nix build github:nixos/nix/2.24.11#nix^doc --print-out-paths --no-link | ||
# after 2.25.x | # after 2.25.x | ||
nix build github:nixos/nix/2.25.0# | nix build github:nixos/nix/2.25.0#nix-manual --print-out-paths --no-link | ||
# master | # master | ||
nix build github:nixos/nix#packages. | nix build github:nixos/nix#nix-manual --print-out-paths --no-link | ||
</syntaxhighlight> | |||
# for other system | |||
nix build github:nixos/nix/2.25.0#packages.aarch64-darwin.nix-manual --print-out-paths --no-link</syntaxhighlight> | |||
=== home-manager manual === | === home-manager manual === | ||
Line 102: | Line 101: | ||
nix build github:nix-community/home-manager#docs-html --print-out-paths --no-link | nix build github:nix-community/home-manager#docs-html --print-out-paths --no-link | ||
# stable version, e.g. | # stable version, e.g. 25.05 | ||
nix build github:nix-community/home-manager/release- | nix build github:nix-community/home-manager/release-25.05#docs-html --print-out-paths --no-link | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 112: | Line 111: | ||
nix build github:LnL7/nix-darwin#manualHTML --print-out-paths --no-link | nix build github:LnL7/nix-darwin#manualHTML --print-out-paths --no-link | ||
# stable version, e.g. | # stable version, e.g. 25.05 | ||
nix build github:LnL7/nix-darwin/nix-darwin- | nix build github:LnL7/nix-darwin/nix-darwin-25.05#manualHTML --print-out-paths --no-link | ||
# in local clone with nix-build | # in local clone with nix-build | ||
nix-build release.nix -A docs.manualHTML | nix-build release.nix -A docs.manualHTML | ||
</syntaxhighlight> | </syntaxhighlight> |