From 585961d51f06dc04f061dc0319f0c38b824a62a1 Mon Sep 17 00:00:00 2001
From: Florian Sesser <florian@privatestorage.io>
Date: Wed, 9 Jun 2021 13:22:51 +0000
Subject: [PATCH] Add URL and hash to nix-shell for downloading 21.05

---
 nixpkgs-2105.json | 4 ++++
 shell.nix         | 6 ++----
 2 files changed, 6 insertions(+), 4 deletions(-)
 create mode 100644 nixpkgs-2105.json

diff --git a/nixpkgs-2105.json b/nixpkgs-2105.json
new file mode 100644
index 00000000..d441d009
--- /dev/null
+++ b/nixpkgs-2105.json
@@ -0,0 +1,4 @@
+{ "name": "stable2105"
+, "url": "https://releases.nixos.org/nixos/21.05/nixos-21.05.804.5de44c15758/nixexprs.tar.xz"
+, "sha256": "002zvc16hyrbs0icx1qj255c9dqjpdxx4bhhfjndlj3kwn40by0m"
+}
diff --git a/shell.nix b/shell.nix
index eeea205e..6e46c9ca 100644
--- a/shell.nix
+++ b/shell.nix
@@ -1,8 +1,6 @@
 let
-  nixpkgs-pin = builtins.fromJSON (builtins.readFile ./nixpkgs.json);
-  nixpkgs-src = builtins.fetchTarball nixpkgs-pin;
-  nixpkgs = import nixpkgs-src { };
-  stable2105 = import (builtins.fetchTarball https://nixos.org/channels/nixos-21.05/nixexprs.tar.xz) { };
+  nixpkgs = import (builtins.fetchTarball (builtins.fromJSON (builtins.readFile ./nixpkgs.json))) { };
+  stable2105 = import (builtins.fetchTarball (builtins.fromJSON (builtins.readFile ./nixpkgs-2105.json))) { };
 in
 { pkgs ? nixpkgs }:
 pkgs.mkShell {
-- 
GitLab