- db-pool-acquisition-timeout is no longer optional, defaults to 10s - new option db-pool-max-lifetime limits the maximal lifetime of a postgresql connection, defaults to 30m
70 lines
1.9 KiB
Nix
70 lines
1.9 KiB
Nix
{ compiler, extraOverrides ? (final: prev: { }) }:
|
|
|
|
self: super:
|
|
let
|
|
inherit (self.haskell) lib;
|
|
|
|
overrides =
|
|
final: prev:
|
|
rec {
|
|
# To pin custom versions of Haskell packages:
|
|
# protolude =
|
|
# prev.callHackageDirect
|
|
# {
|
|
# pkg = "protolude";
|
|
# ver = "0.3.0";
|
|
# sha256 = "<sha256>";
|
|
# }
|
|
# { };
|
|
#
|
|
# To temporarily pin unreleased versions from GitHub:
|
|
# <name> =
|
|
# prev.callCabal2nixWithOptions "<name>" (super.fetchFromGitHub {
|
|
# owner = "<owner>";
|
|
# repo = "<repo>";
|
|
# rev = "<commit>";
|
|
# sha256 = "<sha256>";
|
|
# }) "--subpath=<subpath>" {};
|
|
#
|
|
# To fill in the sha256:
|
|
# update-nix-fetchgit nix/overlays/haskell-packages.nix
|
|
|
|
postgresql-libpq = lib.dontCheck
|
|
(prev.callCabal2nix "postgresql-libpq"
|
|
(super.fetchFromGitHub {
|
|
owner = "PostgREST";
|
|
repo = "postgresql-libpq";
|
|
rev = "890a0a16cf57dd401420fdc6c7d576fb696003bc"; # master
|
|
sha256 = "1wmyhldk0k14y8whp1p4akrkqxf5snh8qsbm7fv5f7kz95nyffd0";
|
|
})
|
|
{ });
|
|
|
|
hasql-notifications = lib.dontCheck
|
|
(prev.callHackageDirect
|
|
{
|
|
pkg = "hasql-notifications";
|
|
ver = "0.2.0.4";
|
|
sha256 = "sha256-fm1xiDyvDkb5WLOJ73/s8wrWEW23XFS7luAv2brfr8I=";
|
|
}
|
|
{ });
|
|
|
|
hasql-pool = lib.dontCheck
|
|
(prev.callHackageDirect
|
|
{
|
|
pkg = "hasql-pool";
|
|
ver = "0.9";
|
|
sha256 = "sha256-5UshbbaBVY8eJ/9VagNVVxonRwMcd7UmGqDc35pJNFY=";
|
|
}
|
|
{ });
|
|
} // extraOverrides final prev;
|
|
in
|
|
{
|
|
haskell =
|
|
super.haskell // {
|
|
packages = super.haskell.packages // {
|
|
"${compiler}" =
|
|
super.haskell.packages."${compiler}".override { inherit overrides; };
|
|
};
|
|
};
|
|
}
|