Files
nix-homebrew/flake.nix
T
Zhaofeng Li 09c0111fe0 Split CI into separate flake, test multiple releases
This is so that users won't need to download our pinned
nixpkgs/nix-darwin versions.
2025-05-25 15:43:00 -06:00

34 lines
770 B
Nix

{
description = "Homebrew installation manager for nix-darwin";
inputs = {
brew-src = {
url = "github:Homebrew/brew/4.5.2";
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 = {
nix-homebrew = { lib, ... }: {
imports = [
./modules
];
nix-homebrew.package = lib.mkOptionDefault (brew-src // {
name = "brew-${brewVersion}";
version = brewVersion;
});
};
};
inherit (ci) packages devShell ciTests githubActions;
};
}