-
-
Notifications
You must be signed in to change notification settings - Fork 476
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updating darwin channel stops building #718
Comments
Ok, setting both of the the nix-darwin options https://daiderd.com/nix-darwin/manual/index.html#opt-documentation.doc.enable and https://daiderd.com/nix-darwin/manual/index.html#opt-documentation.man.enable to Those settings prevent both nix-darwin/doc/manual/default.nix Lines 60 to 61 in b06bab8
nix-darwin/doc/manual/default.nix Lines 107 to 108 in b06bab8
|
Thanks for the report; sorry for breaking your systems! Can I ask what nixpkgs version you are both using? Is it 22.11 (guessing from @johnykifle's Home Manager version)? |
Indeed it is:
|
I strongly recommend updating to 23.05, as 22.11 is officially out of support for a month now and will be missing security updates imminently, if it isn't already. However, I did try to explicitly avoid breaking things on 22.11, so I'll try to look into this further today or tomorrow. I will try to reproduce this locally but I might have to ask for details on your configuration if I can't easily achieve that. The documentation won't be able to be built regardless though, so you're not really losing anything from your workaround; with the upstream nixpkgs documentation migration, keeping compatibility with both 22.11 and supported versions wasn't feasible. |
I'm having some trouble reproducing this; when using 22.11 to build the manuals are replaced with the stubs. @StephenWithPH, are you also using Home Manager? Would it be possible to see the full inputs section of your flake and your |
Okay never mind I figured it out, will open a PR later. |
I was blocked from doing so by something unrelated. That just resolved itself, so I bumped versions in I didn't get the same error as before, but something still seems amiss with
The relevant output of
I restored the temporary fix (see below) that had worked on The fix for `nix-darwin': + documentation = {
+ doc.enable = false;
+ man.enable = false;
+ };
+ All of the above is using...
|
I see some breadcrumbs over in nix-community/home-manager#4142 around Given nix-community/home-manager#4142 (comment), I suspect there's a chance that this is fixed in |
I'm guessing your flake looks something roughly like this: {
inputs.nixpkgs.url = "nixpkgs/nixpkgs-22.11-darwin";
inputs.darwin.url = "github:LnL7/nix-darwin";
#inputs.darwin.inputs.nixpkgs.follows = "nixpkgs";
outputs = {self, nixpkgs, darwin}: {
darwinConfigurations.test = darwin.lib.darwinSystem {
system = "x86_64-darwin";
modules = [];
pkgs = nixpkgs.legacyPackages.x86_64-darwin;
};
};
} Note the commented-out You should be able to work around this more effectively, and get your manual back, by making sure nix-darwin's I'm not quite sure if @johnykifle is experiencing the exact same thing, as it seems easier to trigger this bug with a flakes setup, but I can imagine ways it could be happening and hopefully my fix will address that too. |
Another workaround, if you call |
This should be less brittle than the version-based check, although arguably this kind of `lib.version` mismatch should break as early as possible... Fixes: LnL7#718
@johnykifle @StephenWithPH, could you try updating again and seeing if this issue is resolved? It should be much harder to end up with mismatched |
@emilazy ... success! I removed the patch disabling man and docs, and everything built successfully! Thank you for your hard work on this! |
@emilazy thanks for the great work. I have actually upgraded my system to 23.05 and no issue there. But I want to ask what's the recommended of upgrading both nix-darwin and home-manager when you use them both together? Thanks again. |
This should be less brittle than the version-based check, although arguably this kind of `lib.version` mismatch should break as early as possible... Fixes: LnL7#718
After trying to to update my darwin channel with
nix-channel --update darwin
I no longer can build my configuration using
darwin-rebuild switch
.###Error
OS: Mac Ventura 13.4.1
NB. Am using home-manager (v 22.11) together with nix-darwin.
The text was updated successfully, but these errors were encountered: