From 2f9fc897eb305abee1206061a20f65c12243b0b4 Mon Sep 17 00:00:00 2001 From: Théo Zimmermann Date: Tue, 30 Oct 2018 01:24:07 +0100 Subject: Add mention of nix-prefetch-github. (#49336) --- doc/coding-conventions.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/coding-conventions.xml b/doc/coding-conventions.xml index b3f7f093835cd..3e8a0ea4a703d 100644 --- a/doc/coding-conventions.xml +++ b/doc/coding-conventions.xml @@ -842,9 +842,12 @@ src = fetchFromGitHub { owner = "NixOS"; repo = "nix"; rev = "1f795f9f44607cc5bec70d1300150bfefcef2aae"; - sha256 = "04yri911rj9j19qqqn6m82266fl05pz98inasni0vxr1cf1gdgv9"; + sha256 = "1i2yxndxb6yc9l6c99pypbd92lfq5aac4klq7y2v93c9qvx2cgpc"; } + Find the value to put as sha256 by running + nix run -f '<nixpkgs>' nix-prefetch-github -c nix-prefetch-github --rev 1f795f9f44607cc5bec70d1300150bfefcef2aae NixOS nix + or nix-prefetch-url --unpack https://github.com/NixOS/nix/archive/1f795f9f44607cc5bec70d1300150bfefcef2aae.tar.gz. -- cgit 1.4.1