diff --git a/shell.nix b/shell.nix
index 73c01bacb3973db4ae2b73a7e1671672bbe35884..e8af4b50d4f4947918c3408ff42012cd7d9f8049 100644
--- a/shell.nix
+++ b/shell.nix
@@ -1,4 +1,5 @@
 # shell.nix
+{ pkgs ? import <nixpkgs> { } }:
 let
   project = import ./default.nix;
 in
@@ -9,6 +10,7 @@ in
 
     withHoogle = false;
 
-    packages = ps: [ ps.stack ];
-
+    buildInputs = [
+      pkgs.stack
+    ];
   }