fix: pin nix-darwin to 25.11 and fix CI cross-platform builds #967

Merged
JakeHillion merged 1 commits from feature/qowtuvprozxs into main 2026-03-05 23:11:01 +00:00
3 changed files with 36 additions and 21 deletions

No files matched your search

+1 -1
View File
@@ -25,5 +25,5 @@ jobs:
nix fmt -- . nix fmt -- .
git diff --exit-code git diff --exit-code
- name: flake check - name: flake check
run: nix flake check --all-systems run: nix flake check
timeout-minutes: 10 timeout-minutes: 10
Generated
+4 -3
View File
@@ -214,15 +214,16 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1772379624, "lastModified": 1772129556,
"narHash": "sha256-NG9LLTWlz4YiaTAiRGChbrzbVxBfX+Auq4Ab/SWmk4A=", "narHash": "sha256-Utk0zd8STPsUJPyjabhzPc5BpPodLTXrwkpXBHYnpeg=",
"owner": "lnl7", "owner": "lnl7",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "52d061516108769656a8bd9c6e811c677ec5b462", "rev": "ebec37af18215214173c98cf6356d0aca24a2585",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "lnl7", "owner": "lnl7",
"ref": "nix-darwin-25.11",
"repo": "nix-darwin", "repo": "nix-darwin",
"type": "github" "type": "github"
} }
+31 -17
View File
@@ -10,7 +10,7 @@
treefmt-nix.url = "github:numtide/treefmt-nix"; treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs"; treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
darwin.url = "github:lnl7/nix-darwin"; darwin.url = "github:lnl7/nix-darwin/nix-darwin-25.11";
darwin.inputs.nixpkgs.follows = "nixpkgs"; darwin.inputs.nixpkgs.follows = "nixpkgs";
agenix.url = "github:ryantm/agenix"; agenix.url = "github:ryantm/agenix";
@@ -149,24 +149,38 @@
}; };
} // nixpkgs.lib.recursiveUpdate } // nixpkgs.lib.recursiveUpdate
(flake-utils.lib.eachDefaultSystem (system: (nixpkgs.lib.recursiveUpdate
let (flake-utils.lib.eachDefaultSystem (system:
pkgs = import nixpkgs { let
inherit system; pkgs = import nixpkgs {
overlays = getSystemOverlays system { }; inherit system;
config = { allowUnfree = true; }; overlays = getSystemOverlays system { };
}; config = { allowUnfree = true; };
in };
{ in
formatter = (treefmtEval pkgs).config.build.wrapper; {
formatter = (treefmtEval pkgs).config.build.wrapper;
checks = { checks = {
formatting = (treefmtEval pkgs).config.build.check self; formatting = (treefmtEval pkgs).config.build.check self;
opencode-plugin = pkgs.opencode-plugin; };
};
packages.caddy-with-dns = pkgs.caddy-with-dns; packages.caddy-with-dns = pkgs.caddy-with-dns;
})) }))
(flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = getSystemOverlays system { };
config = { allowUnfree = true; };
};
in
{
# npm tooling doesn't work on Darwin, only build on Linux
checks.opencode-plugin = pkgs.opencode-plugin;
}
)))
(flake-utils.lib.eachSystem [ "x86_64-linux" ] ( (flake-utils.lib.eachSystem [ "x86_64-linux" ] (
system: system:
let let