74 lines
2.1 KiB
Nix
74 lines
2.1 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
|
|
|
|
hasql = lib.dontCheck prev.hasql_1_6_0_1;
|
|
hasql-dynamic-statements = lib.dontCheck prev.hasql-dynamic-statements_0_3_1_2;
|
|
hasql-transaction = lib.dontCheck prev.hasql-transaction_1_0_1_2;
|
|
|
|
hasql-notifications = lib.dontCheck
|
|
(prev.callHackageDirect
|
|
{
|
|
pkg = "hasql-notifications";
|
|
ver = "0.2.0.3";
|
|
sha256 = "sha256-x8EGEMVYSw4O1Kn6MxOB+/3y3ITxqESDfrYgM8B1hOw=";
|
|
}
|
|
{ });
|
|
|
|
hasql-pool = lib.dontCheck
|
|
(prev.callHackageDirect
|
|
{
|
|
pkg = "hasql-pool";
|
|
ver = "0.8.0.2";
|
|
sha256 = "sha256-9GE9qyymTLXw4ZW6LbNnn4T2tCgNYVEuBIPcUA83xCg=";
|
|
}
|
|
{ });
|
|
|
|
postgresql-libpq = lib.dontCheck
|
|
(prev.callCabal2nix "postgresql-libpq"
|
|
(super.fetchFromGitHub {
|
|
owner = "PostgREST";
|
|
repo = "postgresql-libpq";
|
|
rev = "cef92cb4c07b56568dffdbf4b719258b82183119"; # master as of 2022-09-05
|
|
sha256 = "sha256-BWXfGHhcNuOGdFRxDshbcnxaRTDwEC1Eswwf8jOdqWQ=";
|
|
})
|
|
{ });
|
|
} // extraOverrides final prev;
|
|
in
|
|
{
|
|
haskell =
|
|
super.haskell // {
|
|
packages = super.haskell.packages // {
|
|
"${compiler}" =
|
|
super.haskell.packages."${compiler}".override { inherit overrides; };
|
|
};
|
|
};
|
|
}
|