File tree Expand file tree Collapse file tree 4 files changed +12
-26
lines changed
doc/manual/src/installation Expand file tree Collapse file tree 4 files changed +12
-26
lines changed Original file line number Diff line number Diff line change 11# Building Nix from Source
22
3- After unpacking or checking out the Nix sources, issue the following
4- commands:
3+ After cloning Nix's Git repository, issue the following commands:
54
65``` console
6+ $ ./bootstrap.sh
77$ ./configure options...
88$ make
99$ make install
1010```
1111
1212Nix requires GNU Make so you may need to invoke ` gmake ` instead.
1313
14- When building from the Git repository, these should be preceded by the
15- command:
16-
17- ``` console
18- $ ./bootstrap.sh
19- ```
20-
2114The installation path can be specified by passing the ` --prefix=prefix `
2215to ` configure ` . The default installation directory is ` /usr/local ` . You
2316can change this to any location you like. You must have write permission
Original file line number Diff line number Diff line change 11# Installing Nix from Source
22
3- If no binary package is available, you can download and compile a source
4- distribution .
3+ If no binary package is available or if you want to hack on Nix, you
4+ can build Nix from its Git repository .
Original file line number Diff line number Diff line change 1- # Obtaining a Source Distribution
1+ # Obtaining the Source
22
3- The source tarball of the most recent stable release can be downloaded
4- from the [ Nix homepage] ( http://nixos.org/nix/download.html ) . You can
5- also grab the [ most recent development
6- release] ( http://hydra.nixos.org/job/nix/master/release/latest-finished#tabs-constituents ) .
7-
8- Alternatively, the most recent sources of Nix can be obtained from its
9- [ Git repository] ( https://github.com/NixOS/nix ) . For example, the
10- following command will check out the latest revision into a directory
11- called ` nix ` :
3+ The most recent sources of Nix can be obtained from its [ Git
4+ repository] ( https://github.com/NixOS/nix ) . For example, the following
5+ command will check out the latest revision into a directory called
6+ ` nix ` :
127
138``` console
149$ git clone https://github.com/NixOS/nix
Original file line number Diff line number Diff line change 22
33 - GNU Autoconf (< https://www.gnu.org/software/autoconf/ > ) and the
44 autoconf-archive macro collection
5- (< https://www.gnu.org/software/autoconf-archive/ > ). These are only
6- needed to run the bootstrap script, and are not necessary if your
7- source distribution came with a pre-built ` ./configure ` script.
5+ (< https://www.gnu.org/software/autoconf-archive/ > ). These are
6+ needed to run the bootstrap script.
87
98 - GNU Make.
109
5251 you need version 2.5.35, which is available on
5352 [ SourceForge] ( http://lex.sourceforge.net/ ) . Slightly older versions
5453 may also work, but ancient versions like the ubiquitous 2.5.4a
55- won't. Note that these are only required if you modify the parser or
56- when you are building from the Git repository.
54+ won't.
5755
5856 - The ` libseccomp ` is used to provide syscall filtering on Linux. This
5957 is an optional dependency and can be disabled passing a
You can’t perform that action at this time.
0 commit comments