Files
nix-homebrew/flake.nix
T
Eric Dattore 0a58629fa9 brew-src: 6.0.11 -> 6.0.12
Updates the brew CLI to support new install steps in formulaes that
break on older versions of the brew CLI.
2026-07-21 14:37:03 -06:00

36 lines
806 B
Nix

{
description = "Homebrew installation manager for nix-darwin";
inputs = {
brew-src = {
url = "github:Homebrew/brew/6.0.12";
flake = false;
};
};
outputs = { self, brew-src }: let
flakeLock = builtins.fromJSON (builtins.readFile ./flake.lock);
brewVersion = flakeLock.nodes.brew-src.original.ref;
ci = (import ./ci/flake-compat.nix).makeCi {
inherit self brew-src;
};
in {
darwinModules = rec {
nix-homebrew = { lib, ... }: {
imports = [
./modules
];
nix-homebrew.package = lib.mkOptionDefault (brew-src // {
name = "brew-${brewVersion}";
version = brewVersion;
});
};
default = nix-homebrew;
};
inherit (ci) packages devShell ciTests githubActions;
};
}