fix: build terraform on darwin w broken tests

This commit is contained in:
Noah Masur
2024-01-02 16:35:09 -05:00
parent 5d2d26b3d9
commit ab4e516ba8
3 changed files with 15 additions and 0 deletions

12
overlays/terraform.nix Normal file
View File

@ -0,0 +1,12 @@
# Fix for Terraform and Consul on Darwin:
# https://github.com/NixOS/nixpkgs/pull/275534/files
_final: prev: {
girara = prev.girara.overrideAttrs (old: {
mesonFlags = [
"-Ddocs=disabled"
(prev.lib.mesonEnable "tests"
((prev.stdenv.buildPlatform.canExecute prev.stdenv.hostPlatform)
&& (!prev.stdenv.isDarwin)))
];
});
}