mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-13 19:33:55 +03:00
[Nix] Adds resource-pool overlay.
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7673 GitOrigin-RevId: f4f28c9d3e7f8f79a52fc3a4237ab989fa1096ed
This commit is contained in:
parent
11294d2876
commit
8607769e51
3
.gitignore
vendored
3
.gitignore
vendored
@ -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/
|
||||
|
@ -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;
|
||||
|
||||
|
@ -10,5 +10,6 @@ import nixpkgs {
|
||||
(import ./overlays/ghc.nix)
|
||||
(import ./overlays/msodbcsql18.nix)
|
||||
(import ./overlays/graphql-parser.nix)
|
||||
(import ./overlays/resource-pool.nix)
|
||||
];
|
||||
}
|
||||
|
13
nix/overlays/resource-pool.nix
Normal file
13
nix/overlays/resource-pool.nix
Normal 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 { };
|
||||
});
|
||||
});
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user