From 1f8f2b21398fe4a20c1146e8bd85adaaa714ad60 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 15 Sep 2021 12:14:57 +0200 Subject: [PATCH] examples/shell.nix: Add shell version variable This simplifies future shell upgrades. --- examples/shell.nix | 1 + helper/makeShell.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/shell.nix b/examples/shell.nix index 882fc2f..ff0463c 100644 --- a/examples/shell.nix +++ b/examples/shell.nix @@ -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: ''''; } diff --git a/helper/makeShell.nix b/helper/makeShell.nix index ab92b68..7a2d1b1 100644 --- a/helper/makeShell.nix +++ b/helper/makeShell.nix @@ -1,4 +1,4 @@ -{ configDir, extraShellInitCmds ? (pkgs: "") }: +{ configDir, shellVersion ? null, extraShellInitCmds ? (pkgs: "") }: let nixpkgs = (import ../pkgs/nixpkgs-pinned.nix).nixpkgs; pkgs = import nixpkgs {};