Skip to content

Commit

Permalink
pinning nixpkgs: link from tutorial to reference
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Jun 11, 2020
1 parent f87bbfd commit 8abe2ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
10 changes: 6 additions & 4 deletions source/reference/pinning-nixpkgs.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _ref-pinning-nixpkgs:

Pinning Nixpkgs
===============

Expand Down Expand Up @@ -31,10 +33,10 @@ Examples
- ``nix-build -I ~/dev``
- ``nix-build -I nixpkgs=http://nixos.org/channels/nixos-17.03/nixexprs.tar.xz``
- ``NIX_PATH=nixpkgs=http://nixos.org/channels/nixos-17.03/nixexprs.tar.xz nix-build ...``
- Using just Nix:

::
- Using just Nix::

with import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-14.12.tar.gz) {};

stdenv.mkDerivation { … }
stdenv.mkDerivation { … }

- To make ad-hoc environment available on NixOS: ``nix.nixPath = [ ("nixpkgs=" + toString pkgs.path) ];``
6 changes: 5 additions & 1 deletion source/tutorials/towards-reproducibility-pinning-nixpkgs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ To update all dependencies::
$ nix-shell -p niv --run "niv update"


.. Reference: nix.nixPath = [ ("nixpkgs=" + toString pkgs.path) ];
Going Forward
-------------

- See reference at :ref:`ref-pinning-nixpkgs`

0 comments on commit 8abe2ee

Please sign in to comment.