Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deny_network_access error when trying to install anything that's depending on xz #25

Open
thomasklwong opened this issue Jun 3, 2024 · 0 comments

Comments

@thomasklwong
Copy link

thomasklwong commented Jun 3, 2024

My nix config is based on https://github.com/dustinlyons/nixos-config and here are my flake and home-manager nix-homebrew/homebrew setting.

darwinConfigurations = nixpkgs.lib.genAttrs darwinSystems (system:
        darwin.lib.darwinSystem {
          inherit system;
          specialArgs = inputs;
          modules = [
            home-manager.darwinModules.home-manager
            nix-homebrew.darwinModules.nix-homebrew
            {
              nix-homebrew = {
                inherit user;
                enable = true;
                enableRosetta = true;
                taps = {
                  "homebrew/homebrew-core" = homebrew-core;
                  "homebrew/homebrew-cask" = homebrew-cask;
                  "homebrew/homebrew-bundle" = homebrew-bundle;
                };
                mutableTaps = false;
                autoMigrate = true;
              };
            }
            ./hosts/darwin
          ];
        }
      );
homebrew = {
    enable = true;
    brews = [
      "code-cli"
      "terraform"
    ];
    casks = pkgs.callPackage ./casks.nix {};
    taps = builtins.attrNames config.nix-homebrew.taps;

    onActivation = {
      autoUpdate = true;
      cleanup = "zap";
      upgrade = true;
      extraFlags = [
        "--verbose"
        "--debug"
      ];
    };

    masApps = {};
  };```

And the installation of VS Code CLI will failed with the following error

Already downloaded: /Users/thomas/Library/Caches/Homebrew/downloads/46cc4d8b86844b45f8c6d5d79480a093fb1aa63b208c59f8df9354a2f7f88e00--code-cli-1.89.1.bottle_manifest.json
Error: homebrew/core/xz: undefined method `deny_network_access!' for Formulary::FormulaNamespaced6af8689f9d67fe78906ee1d8991056d52b8b4735aad55203c61e4b64950bbbd::Xz:Class
Installing code-cli has failed!


Is there something wrong in my settings, or what should I do to enable the installation of formulae that's depending on xz?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant