Closed plaflamme closed 2 weeks ago
You probably need to update, this is the failure on hydra (2024-09-05
):
/nix/store/czyw7yx2ywwf7bzndsdkmc9zlfsh5qpa-qemu-9.1.0.drv
https://hydra.nixos.org/build/271629971
There should be 2 new builds after that were successful:
https://hydra.nixos.org/job/nixpkgs/trunk/qemu.aarch64-darwin
@ghpzin Thanks, yeah, I'm pretty sure my flake is on the latest, I did:
> nix flake update
> git add -A && git commit -m "nix flake update"
> darwin-rebuild switch --flake .
And I get the same error. Not sure what else I need to do here. As far as I can tell, my flake.lock
file says my nixpkgs-unstable
dependency is using revision 9357f4f23713673f310988025d9dc261c20e70c6
What channel are you following? Latest nixos-unstable builds
pkgs.colima` just fine in my case.
Here's my flake inputs:
inputs = {
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.follows = "nixpkgs-unstable";
flakelight = {
url = "github:nix-community/flakelight";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
flakelight-darwin.url = "github:cmacrae/flakelight-darwin";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs-stable";
};
k0s.url = "github:johbo/k0s-nix";
lanzaboote = {
url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
Probably did something wrong, my nix-foo is not particularly good.
flakelight-darwin.url = "github:cmacrae/flakelight-darwin";
This does not have follows
and uses nixpkgs from 3 weeks ago (around the time that qemu
build failure happened):
https://github.com/cmacrae/flakelight-darwin/blob/3e211e1cf6e4b08e1669dd96db911809c027f273/flake.lock#L48
But after looking, it seems to take nixpkgs
in some other input there.
You probably want follows
there with something that uses your pinned nixpkgs (nix-darwin
and flakelight
?)
I see. I misread this line; I assumed this meant it was using whatever flakelight
was following. I'll dig around to see how to specify its nixpkgs
dependency. Sorry for the noise.
That may be correct, but your flakelight-darwin
does not follow your flakelight
either.
It is just what was there at the time they generated flake.lock
.
Indeed! Looks like adding inputs.flakelight.follows = "flakelight";
to flakelight-darwin
did the trick. Thanks!
Steps To Reproduce
In my case, this is happening when trying to switch to my configuration after updating flake dependencies, so, something like:
I believe
qemu
is being brough in frompkgs.colima
Build log
And the derivation log itself is attached:
build.txt
Additional context
N/A
Notify maintainers
Metadata
Add a :+1: reaction to issues you find important.