From 18fe86b0a9df27c3bba0bb4506f86090374b6625 Mon Sep 17 00:00:00 2001 From: fricklerhandwerk Date: Mon, 9 Oct 2023 17:52:15 +0200 Subject: [PATCH] point to the pinning reference instead of the tutorial --- source/tutorials/first-steps/ad-hoc-shell-environments.md | 2 +- source/tutorials/first-steps/nix-language.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/tutorials/first-steps/ad-hoc-shell-environments.md b/source/tutorials/first-steps/ad-hoc-shell-environments.md index b670f0970..836411b49 100644 --- a/source/tutorials/first-steps/ad-hoc-shell-environments.md +++ b/source/tutorials/first-steps/ad-hoc-shell-environments.md @@ -185,7 +185,7 @@ There are three things going on here: - {ref}`reproducible-scripts` – use Nix for reproducible scripts - {ref}`reading-nix-language` – learn reading the Nix language, which is used to declare packages and configurations - {ref}`declarative-reproducible-envs` – create reproducible shell environments with a declarative configuration file -- {ref}`pinning-nixpkgs` – learn different ways of specifying exact versions of package sources +- {ref}`ref-pinning-nixpkgs` – learn different ways of specifying exact versions of package sources If you're done trying out Nix for now, you may want to free up some disk space occupied by the different versions of programs you downloaded by running the examples: diff --git a/source/tutorials/first-steps/nix-language.md b/source/tutorials/first-steps/nix-language.md index 7a1c790cd..d98a03336 100644 --- a/source/tutorials/first-steps/nix-language.md +++ b/source/tutorials/first-steps/nix-language.md @@ -1668,7 +1668,7 @@ pkgs.lib.strings.toUpper "always pin your sources" ALWAYS PIN YOUR SOURCES ``` -See [](pinning-nixpkgs) for details. +See [](ref-pinning-nixpkgs) for details. What you will also often see is that `pkgs` is passed as an argument to a function. By convention one can assume that it refers to the Nixpkgs attribute set, which has a `lib` attribute: