1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00

Merge pull request #243 from BrittonR/patch-1

Change quote formatting to code format on towards-reproducibility-pinning-nixpkgs
This commit is contained in:
Domen Kožar 2022-03-24 07:40:08 +01:00 committed by GitHub
commit 9a554146e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,13 +60,14 @@ dependencies are fetched. It will also create `nix/sources.nix` which glues the
By default `niv` will use the **latest stable** NixOS release. However, you should check to see which version is currently specified in [the niv repository](https://github.com/nmattia/niv) if you require a specific release, as it might lag behind.
You can see which version `niv` is tracking as follow:
> \$ niv show
```
$ niv show
```
And you can change the tracking branch to the one you want like this:
> \$ niv modify nixpkgs --branch nixos-21.05
```
$ niv modify nixpkgs --branch nixos-21.05
```
You can use the generated `nix/sources.nix` with a top-level `default.nix`:
```nix