examples/shell.nix: Add shell version variable

This simplifies future shell upgrades.
This commit is contained in:
Erik Arvstedt 2021-09-15 12:14:57 +02:00
parent ed8792c72b
commit 1f8f2b2139
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ let
in
import "${nix-bitcoin}/helper/makeShell.nix" {
configDir = ./.;
shellVersion = "0.0.51";
# Set this to modify your shell
# extraShellInitCmds = pkgs: ''<my bash code>'';
}

View File

@ -1,4 +1,4 @@
{ configDir, extraShellInitCmds ? (pkgs: "") }:
{ configDir, shellVersion ? null, extraShellInitCmds ? (pkgs: "") }:
let
nixpkgs = (import ../pkgs/nixpkgs-pinned.nix).nixpkgs;
pkgs = import nixpkgs {};