about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-03-13T16·52+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-03-13T16·52+0000
commitbd67b07f52c5a32fb8f3a4388d896ac01c0dbc42 (patch)
treecb645b599639e1b8840a6c1496952a42c879fe97
parenta2a5a62836aa8cc629b7ba07bd125fabd6520cb2 (diff)
Add default value for pkgs parameter in shell.nix
Commands like `nix-shell shell.nix` couldn't resolve `pkgs` without a default
value. I'm unsure how I expected this to work previously...
-rw-r--r--scratch/deepmind/part_two/shell.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/scratch/deepmind/part_two/shell.nix b/scratch/deepmind/part_two/shell.nix
index f1b02c4d2ed5..606dd7167f7c 100644
--- a/scratch/deepmind/part_two/shell.nix
+++ b/scratch/deepmind/part_two/shell.nix
@@ -1,4 +1,4 @@
-{ pkgs, ... }:
+{ pkgs ? import <nixpkgs> {}, ... }:
 
 pkgs.mkShell {
   buildInputs = with pkgs; [