You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
what's currently called "hacking" are really instructions for setting up
a development environment and compiling from source. we have
a contribution guide in the repo (which rightly focuses on GitHub
workflows), and the material in the manual is more about working
on the code itself.
since we'd otherwise have three headings that amount to "Building Nix",
this change also moves the "classic Nix" instructions to the top.
we may want to reorganise this in the future, and bring
contributor-oriented information closer to the code, but for now let's
stick to more accurate names to ease navigation.
Copy file name to clipboardexpand all lines: README.md
+1-2
Original file line number
Diff line number
Diff line change
@@ -20,8 +20,7 @@ Information on additional installation methods is available on the [Nix download
20
20
21
21
## Building And Developing
22
22
23
-
See our [Hacking guide](https://nixos.org/manual/nix/unstable/contributing/hacking.html) in our manual for instruction on how to
24
-
to set up a development environment and build Nix from source.
23
+
Follow instructions in the Nix manual to [set up a development environment and build Nix from source](https://nixos.org/manual/nix/unstable/contributing/hacking.html).
Copy file name to clipboardexpand all lines: doc/manual/src/contributing/hacking.md
+26-27
Original file line number
Diff line number
Diff line change
@@ -1,42 +1,33 @@
1
-
# Hacking
1
+
# Building Nix
2
2
3
-
This section provides some notes on how to hack on Nix. To get the
4
-
latest version of Nix from GitHub:
3
+
This section provides some notes on how to start hacking on Nix.
4
+
To get the latest version of Nix from GitHub:
5
5
6
6
```console
7
7
$ git clone https://github.com/NixOS/nix.git
8
8
$ cd nix
9
9
```
10
10
11
-
The following instructions assume you already have some version of Nix installed locally, so that you can use it to set up the development environment. If you don't have it installed, follow the [installation instructions].
> The following instructions assume you already have some version of Nix installed locally, so that you can use it to set up the development environment.
14
+
> If you don't have it installed, follow the [installation instructions](../installation/installation.md).
22
15
23
16
To build all dependencies and start a shell in which all environment variables are set up so that those dependencies can be found:
24
17
25
18
```console
26
-
$ nix develop
19
+
$ nix-shell
27
20
```
28
21
29
-
This shell also adds `./outputs/bin/nix` to your `$PATH` so you can run `nix` immediately after building it.
30
-
31
22
To get a shell with one of the other [supported compilation environments](#compilation-environments):
0 commit comments