add postgresql to have psql to shell

This commit is contained in:
towards-a-new-leftypol 2023-10-04 18:01:41 -04:00
parent 5af7924779
commit d6ce32187b
1 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,12 @@ let
drv = variant (haskellPackages.callPackage f {}); drv = variant (haskellPackages.callPackage f {});
enhancedDrv = if pkgs.lib.inNixShell
then drv.env.overrideAttrs (oldAttrs: {
buildInputs = oldAttrs.buildInputs or [] ++ [ pkgs.postgresql ];
})
else drv;
in in
if pkgs.lib.inNixShell then drv.env else drv enhancedDrv