Provide non-flake hermetic shell by pinning nixpkgs (#23368)
Provide non-flake solution by pinning in shell.nix Invoking `nix-shell` makes shell.nix not consume the flake. Importing `<nixpkgs>` is dependent on the user's current nixpkgs channel. This is not reproducible. Fix this by pinning nixpkgs to the same revision of the flake input.
This commit is contained in:
committed by
GitHub
parent
9b4325bafc
commit
2629a8d92c
@@ -1,4 +1,8 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
{ pkgs ? import (builtins.fetchTarball {
|
||||
url =
|
||||
"https://github.com/NixOS/nixpkgs/archive/3da785eeaad3d604ee3bccc0a3f07bfd11cb355a.tar.gz";
|
||||
sha256 = "16vkl710mmq176qcj6ygk70kns37fg71ip6x16m6dhpicz90d2gq";
|
||||
}) { } }:
|
||||
|
||||
let
|
||||
dependencies = with pkgs; [
|
||||
|
||||
Reference in New Issue
Block a user