services-flake/test/nix/pkgs.nix
Shivaraj B H eb4364c92a
fix(test): grafana on darwin is no longer broken in upstream (#161)
fixed here: https://github.com/NixOS/nixpkgs/pull/297968

Also, hydra-checks pass on all four platforms:

```sh
shivaraj in 🌐 nixos in ~
❯ nix run github:nix-community/hydra-check -- grafana --arch aarch64-darwin
Build Status for grafana.aarch64-darwin on jobset nixpkgs/trunk
✔ grafana-10.4.1 from 2024-03-27 - https://hydra.nixos.org/build/254421303

shivaraj in 🌐 nixos in ~ took 45s
❯ nix run github:nix-community/hydra-check -- grafana --arch x86_64-darwin
Build Status for grafana.x86_64-darwin on jobset nixpkgs/trunk
✔ grafana-10.4.1 from 2024-03-27 - https://hydra.nixos.org/build/254422747

shivaraj in 🌐 nixos in ~
❯ nix run github:nix-community/hydra-check -- grafana --arch x86_64-linux
Build Status for nixpkgs.grafana.x86_64-linux on jobset nixos/trunk-combined
✔ grafana-10.4.0 from 2024-03-27 - https://hydra.nixos.org/build/254385494

shivaraj in 🌐 nixos in ~
❯ nix run github:nix-community/hydra-check -- grafana --arch aarch64-linux
Build Status for nixpkgs.grafana.aarch64-linux on jobset nixos/trunk-combined
✔ grafana-10.4.0 from 2024-03-27 - https://hydra.nixos.org/build/254392946
```
2024-04-04 11:14:35 +05:30

26 lines
582 B
Nix

{ 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 {
# Disable tests, because they are failing on darwin:
# https://github.com/NixOS/nixpkgs/issues/281214
pgadmin4 = super.pgadmin4.overrideAttrs (_: {
doInstallCheck =
false;
});
})
];
};
};
}