Fix mars build
Nix Flake Check / check (push) Successful in 49s

unstable/26.11 broken for x86_64-darwin
This commit is contained in:
2026-07-12 13:09:27 +02:00
parent c41912da8f
commit 745547bd2a
2 changed files with 100 additions and 41 deletions
Generated
+54 -14
View File
@@ -20,19 +20,20 @@
"darwin": { "darwin": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs-mars"
] ]
}, },
"locked": { "locked": {
"lastModified": 1783395956, "lastModified": 1783744694,
"narHash": "sha256-AAbexQvDoK+6GFJdhY6kqjA+6ECKRkidgWxkn4gMwAA=", "narHash": "sha256-2cp6N3rrwnGYLTx9l6N+NI+kwrCWxvJUbj5WJhvB29A=",
"owner": "nix-darwin", "owner": "nix-darwin",
"repo": "nix-darwin", "repo": "nix-darwin",
"rev": "d5bd9cd77aea4c0a8f49e7fd85545671a208ed15", "rev": "c3e90c89649b07d1a96e4b9dd6cd0d6e44b91a74",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-darwin", "owner": "nix-darwin",
"ref": "nix-darwin-26.05",
"repo": "nix-darwin", "repo": "nix-darwin",
"type": "github" "type": "github"
} }
@@ -96,11 +97,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1783627241, "lastModified": 1783713126,
"narHash": "sha256-KzrOQBguFyW5uA/NNncskOwKa83TCELK3RjT1EN09wU=", "narHash": "sha256-Q36Du9Ed1YwnQO1Mm9CHix/IcqAMkvSg34zExEfe8RI=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "3c760308b3780c4955cd2ce8e2ca046bf543817d", "rev": "56d3b6dfdd46efcfb0a6f4643116a8f54cf2f89e",
"revCount": 43, "revCount": 45,
"type": "git", "type": "git",
"url": "https://github.com/futureware-tech/nix.git" "url": "https://github.com/futureware-tech/nix.git"
}, },
@@ -159,11 +160,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1783618078, "lastModified": 1783823409,
"narHash": "sha256-F43DGcBoIO8xOZFAfodg3jy0VghB9NGdb6xbTYAIx1A=", "narHash": "sha256-OI4IkRjRXa1e7hYmCGJDPDq5H/kPwhsyoS80cNUF9fI=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "144f4e36d0186195037da9fce80a727108978070", "rev": "7566825d4652a1b885bd4ce65bd9e8def432fec9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -172,6 +173,27 @@
"type": "github" "type": "github"
} }
}, },
"home-manager-mars": {
"inputs": {
"nixpkgs": [
"nixpkgs-mars"
]
},
"locked": {
"lastModified": 1783740085,
"narHash": "sha256-qajyHfZY29G2oEQk+uHxmsJcRoBUBXP9maTpFlwP/dI=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "3cd22efe6471dc7365c822bd9ad73a21e55f38fb",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-26.05",
"repo": "home-manager",
"type": "github"
}
},
"jail-nix": { "jail-nix": {
"locked": { "locked": {
"lastModified": 1776230864, "lastModified": 1776230864,
@@ -207,11 +229,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1783224372, "lastModified": 1783776592,
"narHash": "sha256-8i/87eeoqiGE4yOTjwSA3Eh/ziJRQEmd/unYU+K27sk=", "narHash": "sha256-UgCQzxeWI75XM8G+hPrPh+MKzEPjG3SpAj7dtqSbksA=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d407951447dcd00442e97087bf374aad70c04cea", "rev": "e7a3ca8092b61ff85b6a45bf863ea2b2d6a661b3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -221,15 +243,33 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs-mars": {
"locked": {
"lastModified": 1783788001,
"narHash": "sha256-ldd//kQFtHfGWLQd6deNXB6GnN6uLmwjPG6GGx/2vTA=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "572a2c2b6faebd71246e3162e4217d7ca63a9300",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-26.05-darwin",
"repo": "nixpkgs",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"darwin": "darwin", "darwin": "darwin",
"fw_nix": "fw_nix", "fw_nix": "fw_nix",
"git-hooks": "git-hooks_2", "git-hooks": "git-hooks_2",
"home-manager": "home-manager", "home-manager": "home-manager",
"home-manager-mars": "home-manager-mars",
"jail-nix": "jail-nix", "jail-nix": "jail-nix",
"nix-homebrew": "nix-homebrew", "nix-homebrew": "nix-homebrew",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-mars": "nixpkgs-mars",
"systems": "systems_2", "systems": "systems_2",
"vscode-server": "vscode-server" "vscode-server": "vscode-server"
} }
+46 -27
View File
@@ -3,11 +3,16 @@
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-mars.url = "github:nixos/nixpkgs/nixpkgs-26.05-darwin";
systems.url = "github:nix-systems/default"; systems.url = "github:nix-systems/default";
home-manager = { home-manager = {
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager-mars = {
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs-mars";
};
vscode-server = { vscode-server = {
url = "github:nix-community/nixos-vscode-server"; url = "github:nix-community/nixos-vscode-server";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@@ -17,8 +22,8 @@
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
darwin = { darwin = {
url = "github:nix-darwin/nix-darwin"; url = "github:nix-darwin/nix-darwin/nix-darwin-26.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs-mars";
}; };
nix-homebrew.url = "github:zhaofengli/nix-homebrew"; nix-homebrew.url = "github:zhaofengli/nix-homebrew";
git-hooks = { git-hooks = {
@@ -41,19 +46,28 @@
let let
homeManagerUser = "artem"; homeManagerUser = "artem";
eachSystem = nixpkgs.lib.genAttrs (import systems); eachSystem = nixpkgs.lib.genAttrs (import systems);
nixpkgsFor = system: if system == "x86_64-darwin" then inputs.nixpkgs-mars else nixpkgs;
in in
{ {
checks = eachSystem (system: { checks = eachSystem (system: {
pre-commit-check = inputs.git-hooks.lib.${system}.run ( pre-commit-check =
{ let
src = ./.; gitHooksLib = import "${inputs.git-hooks}/nix" {
excludes = [ nixpkgs = nixpkgsFor system;
"^migrated/" inherit system;
"^legacy/" isFlakes = true;
]; };
} in
// inputs.fw_nix.lib.pre-commit gitHooksLib.run (
); {
src = ./.;
excludes = [
"^migrated/"
"^legacy/"
];
}
// inputs.fw_nix.lib.pre-commit
);
}); });
homeModules = { homeModules = {
@@ -82,20 +96,22 @@
]; ];
}; };
homeConfigurations."${homeManagerUser}@mars" = home-manager.lib.homeManagerConfiguration { homeConfigurations."${homeManagerUser}@mars" =
pkgs = import nixpkgs { inputs.home-manager-mars.lib.homeManagerConfiguration
system = "x86_64-darwin"; {
config.allowDeprecatedx86_64Darwin = true; pkgs = import inputs.nixpkgs-mars {
}; system = "x86_64-darwin";
extraSpecialArgs = { config.allowDeprecatedx86_64Darwin = true;
primaryUser = homeManagerUser; };
}; extraSpecialArgs = {
modules = [ primaryUser = homeManagerUser;
inputs.fw_nix.nixosModules.identities };
self.homeModules.mac-portable modules = [
./hosts/mars/home.nix inputs.fw_nix.nixosModules.identities
]; self.homeModules.mac-portable
}; ./hosts/mars/home.nix
];
};
darwinConfigurations.mars = darwin.lib.darwinSystem { darwinConfigurations.mars = darwin.lib.darwinSystem {
system = "x86_64-darwin"; system = "x86_64-darwin";
@@ -138,7 +154,10 @@
devShells = eachSystem ( devShells = eachSystem (
system: system:
let let
pkgs = import nixpkgs { inherit system; }; pkgs = import (nixpkgsFor system) {
inherit system;
config.allowDeprecatedx86_64Darwin = true;
};
inherit (self.checks.${system}.pre-commit-check) shellHook enabledPackages; inherit (self.checks.${system}.pre-commit-check) shellHook enabledPackages;
in in
{ {