ITADN

Flake with nix-darwin failing to build on aarch64-darwin

#180Closedjmgilman 创建于 2025-04-29
J
jmgilmancommented
## Error ``` ❯ fh apply nix-darwin jmgilman/nix/0.1.5#darwinConfigurations.jmgilman-mbp INFO Resolving output reference output_ref=jmgilman/nix/0.1.5#darwinConfigurations.jmgilman-mbp error: path '/nix/store/22z349qnh61qqx9s848w9ih3nsyymhd5-darwin-system-25.05.4515dac' is required, but there is no substituter that can build it Error: 0: failed to copy resolved store path with Nix 1: Failed to copy resolved store path with Nix 2: Nix command `"nix" "--extra-experimental-features" "nix-command flakes" "copy" "--option" "narinfo-cache-negative-ttl" "0" "--from" "https://cache.flakehub.com/" "/nix/store/22z349qnh61qqx9s848w9ih3nsyymhd5-darwin-system-25.05.4515dac" "--netrc-file" "/var/folders/gv/kllfch6d5l9dq4676hq4260m0000gn/T/.tmpgFgq2l/netrc"` failed; check prior Nix output for details ``` ## Metadata |key|value| |--|--| |**version**|0.1.22| |**os**|macos| |**arch**|aarch64| The source flake is private, but I can share the base `flake.nix` here: ``` { description = "Darwin configuration"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; darwin.url = "github:lnl7/nix-darwin"; darwin.inputs.nixpkgs.follows = "nixpkgs"; fh.url = "https://flakehub.com/f/DeterminateSystems/fh/*"; home-manager.url = "github:nix-community/home-manager"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = inputs@{ nixpkgs, home-manager, darwin, ... }: { darwinConfigurations = { "jmgilman-mbp" = darwin.lib.darwinSystem { system = "aarch64-darwin"; specialArgs = { inherit inputs; }; modules = [ ./configuration.nix home-manager.darwinModules.home-manager { home-manager.users.josh = import ./home; } ]; }; }; }; } ``` Builds fine with: ``` nix run nix-darwin -- switch --flake /path/to/flake ``` FWIW, I tried pinning everything to 24.11 and the error persisted. I'm assuming this has something to do with being on macOS?
关闭于 2025-04-30 7 条评论