Home Explore Blog CI



nix

doc/manual/source/installation/obtaining-source.md
83734435a24a6568a15c7259786efead76cb89104c819cc20000000300000191
# Obtaining the Source

The most recent sources of Nix can be obtained from its [Git
repository](https://github.com/NixOS/nix). For example, the following
command will check out the latest revision into a directory called
`nix`:

```console
$ git clone https://github.com/NixOS/nix
```

Likewise, specific releases can be obtained from the
[tags](https://github.com/NixOS/nix/tags) of the repository.

Chunks
769f2e8e (1st chunk of `doc/manual/source/installation/obtaining-source.md`)
Title: Obtaining Nix Source Code from Git Repository
Summary
The most up-to-date source code for Nix is readily available through its Git repository, hosted on GitHub. This repository serves as the central location for all Nix development and provides various ways to access the source code. To obtain the latest version, you can use the `git clone` command followed by the repository's URL. This will create a local copy of the repository in a directory you specify, such as 'nix'. This method ensures you have the absolute newest code, reflecting all recent changes and updates. Alternatively, if you require a specific release, you can explore the repository's tags. Tags represent stable releases of Nix, allowing you to obtain a particular version with a known state. This is useful for reproducibility or if you need to work with a specific Nix version due to compatibility reasons. By cloning from the Git repository or checking out a specific tag, developers can easily access and contribute to the Nix project.