From 18aacce488c3d569949b31d446b8e266d38af3b8 Mon Sep 17 00:00:00 2001 From: Henry Lambert Date: Wed, 9 Feb 2022 01:19:25 +0000 Subject: [PATCH] small change to default.nix to allow dev customization of postgres extensions. --- NixSupport/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NixSupport/default.nix b/NixSupport/default.nix index 5848d676e..fd80dc531 100644 --- a/NixSupport/default.nix +++ b/NixSupport/default.nix @@ -5,6 +5,7 @@ , projectPath ? ./. , withHoogle ? false , additionalNixpkgsOptions ? {} +, postgresExtensions ? (p: []) , optimized ? false }: @@ -16,7 +17,8 @@ let then ghc.ghcWithHoogle else ghc.ghcWithPackages) (p: builtins.concatLists [ [p.haskell-language-server] (haskellDeps p) ] ); - allNativePackages = builtins.concatLists [ (otherDeps pkgs) [pkgs.postgresql pkgs.makeWrapper] (if pkgs.stdenv.isDarwin then [] else []) ]; + allNativePackages = builtins.concatLists [ (otherDeps pkgs) + [(pkgs.postgresql_13.withPackages postgresExtensions) pkgs.makeWrapper] (if pkgs.stdenv.isDarwin then [] else []) ]; appBinary = if optimized then "build/bin/RunOptimizedProdServer"