Skip to content

Commit

Permalink
[Nix] Adds dc-api overlay.
Browse files Browse the repository at this point in the history
PR-URL: hasura/graphql-engine-mono#6889
GitOrigin-RevId: 3ede55fc3a921f4712f1736f338fb46a3e1a1ce7
  • Loading branch information
solomon-b authored and hasura-bot committed Jan 30, 2023
1 parent 5c421ac commit f7d4051
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions nix/nixpkgs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import nixpkgs {
(import ./overlays/msodbcsql18.nix)
(import ./overlays/graphql-parser.nix)
(import ./overlays/resource-pool.nix)
(import ./overlays/dc-api.nix)
(import ./overlays/pg-client-hs.nix)
(import ./overlays/aeson-ordered.nix)
];
Expand Down
15 changes: 15 additions & 0 deletions nix/overlays/dc-api.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
final: prev: {
haskell = prev.haskell // {
packages = prev.haskell.packages // {
ghc925 = prev.haskell.packages."${prev.ghcName}".override (old: {
overrides = prev.lib.composeExtensions
(old.overrides or (_: _: { }))
(hfinal: hprev: {
# Tests don't compile as extra-source-files are missing
dc-api = prev.haskell.lib.dontCheck (final.haskell.packages."${prev.ghcName}".callCabal2nix "dc-api" ../../server/lib/dc-api { });
lens-aeson = prev.haskell.packages."${prev.ghcName}".lens-aeson_1_2_2;
});
});
};
};
}

0 comments on commit f7d4051

Please sign in to comment.