Skip to content

Commit

Permalink
refactor: overlays for packages in test flake (#120)
Browse files Browse the repository at this point in the history
Avoid test flake clutter; separate overlay for each package.
  • Loading branch information
shivaraj-bh authored Mar 6, 2024
1 parent b4275fc commit 9cdee29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 1 addition & 6 deletions test/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,7 @@
inherit system;
# Required for elastic search
config.allowUnfree = true;
overlays = [
(final: prev: {
# Because tests are failing on darwin: https://github.com/juspay/services-flake/pull/115#issuecomment-1970467684
pgadmin4 = prev.pgadmin4.overrideAttrs (_: { doInstallCheck = false; });
})
];
overlays = import ./overlays;
};
process-compose =
let
Expand Down
3 changes: 3 additions & 0 deletions test/overlays/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
(import ./pgadmin.nix)
]
4 changes: 4 additions & 0 deletions test/overlays/pgadmin.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
final: prev: {
# Because tests are failing on darwin: https://github.com/juspay/services-flake/pull/115#issuecomment-1970467684
pgadmin4 = prev.pgadmin4.overrideAttrs (_: { doInstallCheck = false; });
}

0 comments on commit 9cdee29

Please sign in to comment.