From 44de0d0deaf7f04ab8ced78d0976800529a47e53 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Fri, 5 Jun 2026 10:59:57 +0200 Subject: [PATCH] Revert "doc: don't use sha256 and non-sri hashes in user docs" This reverts commit 309d5c169b871f8b0584ab93132d02067a682b42. The instructions don't work on NixOS 25.11: Nix 2.31 doesn't suport SRI hashes in builtins.fetchTarball. Moreover the NixOS manual shouldn't recomment using experimental commands. (cherry picked from commit e0a630cb363c69a22b7a54e30ad790ad3e4faad0) --- nixos/doc/manual/release-notes/rl-2605.section.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2605.section.md b/nixos/doc/manual/release-notes/rl-2605.section.md index 72adfb5c298b..30ed07c24604 100644 --- a/nixos/doc/manual/release-notes/rl-2605.section.md +++ b/nixos/doc/manual/release-notes/rl-2605.section.md @@ -24,11 +24,11 @@ # Pinned Nixpkgs archive # # Use `curl -I https://channels.nixos.org/nixos-26.05` to get the - # latest commit of the stable channel and `nix --extra-experimental-features nix-command store prefetch-file --unpack` - # to compute its hash. + # latest commit of the stable channel and `nix-prefetch-url --unpack` + # to compute its sha256 hash. nixpkgs = builtins.fetchTarball { url = "https://github.com/NixOS/nixpkgs/archive/c217913993d6.tar.gz"; - hash = "sha256-D1PA3xQv/s4W3lnR9yJFSld8UOLr0a/cBWMQMXS+1Qg="; + sha256 = "026mprs324330pfazlgbw987qmsa8ligglarvqbcxzig2kgw0lqg"; }; in import "${nixpkgs}/nixos" {