Skip to content

Commit

Permalink
small change to default.nix to allow dev customization of postgres ex…
Browse files Browse the repository at this point in the history
…tensions.
  • Loading branch information
Montmorency committed Feb 9, 2022
1 parent 02441a6 commit 18aacce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion NixSupport/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, projectPath ? ./.
, withHoogle ? false
, additionalNixpkgsOptions ? {}
, postgresExtensions ? (p: [])
, optimized ? false
}:

Expand All @@ -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"
Expand Down

0 comments on commit 18aacce

Please sign in to comment.