diff --git a/shell.nix b/shell.nix index 8b37464..afc55b1 100644 --- a/shell.nix +++ b/shell.nix @@ -27,6 +27,12 @@ let drv = variant (haskellPackages.callPackage f {}); + enhancedDrv = if pkgs.lib.inNixShell + then drv.env.overrideAttrs (oldAttrs: { + buildInputs = oldAttrs.buildInputs or [] ++ [ pkgs.postgresql ]; + }) + else drv; + in - if pkgs.lib.inNixShell then drv.env else drv + enhancedDrv