diff --git a/flake.nix b/flake.nix
index fba461beba6cbe44bdb93c8669a16ef5997d9255..3278945db8d8d4044cd8759326407ba64bb94612 100644
--- a/flake.nix
+++ b/flake.nix
@@ -25,6 +25,7 @@
           ghc = pkgs.haskell.compiler.ghc942;
           haskellLib = pkgs.haskell.lib.compose;
           initialPackages = import ./overlay.nix;
+          nonHackagePackages = self: super: { };
           compilerConfig = pkgs.callPackage ./configuration-ghc-9.4.x.nix { haskellLib = haskellLib; };
         };
         hp' = pkgs.lib.filterAttrs