From d6ce32187b9356cc6f9a1e065912dec81b818928 Mon Sep 17 00:00:00 2001 From: towards-a-new-leftypol Date: Wed, 4 Oct 2023 18:01:41 -0400 Subject: [PATCH] add postgresql to have psql to shell --- shell.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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