[Nix] Adds resource-pool overlay.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7673
GitOrigin-RevId: f4f28c9d3e7f8f79a52fc3a4237ab989fa1096ed
This commit is contained in:
Solomon 2023-01-26 06:39:52 -08:00 committed by hasura-bot
parent 11294d2876
commit 8607769e51
4 changed files with 20 additions and 2 deletions

3
.gitignore vendored
View File

@ -1,6 +1,7 @@
dist
dist-*
cabal-dev
/result
*.o
*.hi
*.chi
@ -58,4 +59,4 @@ ChinookData.xml
tests-hspec.log
# Test run results from Sandwich-powered tests
test_runs/
test_runs/

View File

@ -33,7 +33,10 @@
pkgs = import ./nix/nixpkgs.nix { inherit nixpkgs system; };
in
{
packages.graphql-parser = pkgs.haskell.packages.${pkgs.ghcName}.graphql-parser;
packages = {
graphql-parser = pkgs.haskell.packages.${pkgs.ghcName}.graphql-parser;
resource-pool = pkgs.haskell.packages.${pkgs.ghcName}.resource-pool;
};
formatter = pkgs.nixpkgs-fmt;

View File

@ -10,5 +10,6 @@ import nixpkgs {
(import ./overlays/ghc.nix)
(import ./overlays/msodbcsql18.nix)
(import ./overlays/graphql-parser.nix)
(import ./overlays/resource-pool.nix)
];
}

View File

@ -0,0 +1,13 @@
final: prev: {
haskell = prev.haskell // {
packages = prev.haskell.packages // {
ghc925 = prev.haskell.packages.ghc925.override (old: {
overrides = prev.lib.composeExtensions
(old.overrides or (_: _: { }))
(hfinal: hprev: {
resource-pool = final.haskell.packages."${prev.ghcName}".callCabal2nix "resource-pool" ../../server/lib/pool { };
});
});
};
};
}