From 61d4e0d9a572fe14a5a0efaec5c891709bc19229 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Thu, 25 Mar 2021 13:41:59 -0400 Subject: [PATCH] Attempt a smarter nixpkgs pin The previous version did pin nixpkgs to the version in nixpkgs.json. However, it did so without a name which means the derivation was only cacheable for a few minutes. By supplying name the resulting derivation can now be stored in /nix/store and re-used as long as the hash does not change. --- nixpkgs.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixpkgs.json b/nixpkgs.json index 25e71e44..392c37b6 100644 --- a/nixpkgs.json +++ b/nixpkgs.json @@ -1,3 +1,4 @@ -{ "url": "https://github.com/NixOS/nixpkgs-channels/archive/353333ef340952c05332e3c271dff953264cb017.tar.gz" +{ "name": "nixpkgs" +, "url": "https://github.com/NixOS/nixpkgs-channels/archive/353333ef340952c05332e3c271dff953264cb017.tar.gz" , "sha256": "sha256:0bv34yz892yxhx2kb8a1yr5pm0g8ck5w021yj87r7kfnp416apdh" } -- GitLab