-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: refactor, by factoring 'pkgs' in its own module
We don't need per-file package overlays, since we don't envision having too many of them. Whenever possible, get them from nixpkgs, to keep our tests nimble.
- Loading branch information
Showing
5 changed files
with
30 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ inputs, ... }: | ||
|
||
{ | ||
perSystem = { self', inputs', pkgs, system, lib, ... }: { | ||
_module.args.pkgs = import inputs.nixpkgs { | ||
inherit system; | ||
|
||
# Required for elastic search | ||
config.allowUnfree = true; | ||
|
||
overlays = [ | ||
(self: super: lib.optionalAttrs super.stdenv.isDarwin { | ||
|
||
# grafana is broken on aarch64-darwin, but works on older nixpkgs: | ||
# https://github.com/NixOS/nixpkgs/issues/273998 | ||
grafana = (builtins.getFlake "github:nixos/nixpkgs/b604023e0a5549b65da3040a07d2beb29ac9fc63").legacyPackages.${system}.grafana; | ||
|
||
# Disable tests, because they are failing on darwin: | ||
# https://github.com/NixOS/nixpkgs/issues/281214 | ||
pgadmin4 = super.pgadmin4.overrideAttrs (_: { | ||
doInstallCheck = | ||
false; | ||
}); | ||
|
||
}) | ||
]; | ||
}; | ||
}; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.