-
Notifications
You must be signed in to change notification settings - Fork 54
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
Build fails with nix-darwin: The option `_module.args.inputs' is defined multiple times. #113
Comments
I implemented a hacky fix and confirmed that my M1 system builds using the fix, I'll take the weekend to clean it up and issue a PR. |
@bbuscarino If you track the latest from the
Also, I recall running into some issue recently with Nix 2.6.x on a MBP. Not sure if that's been fixed – I'm still running 2.5.1 at the moment. But I may give the latest version another shot soon. |
And, FWIW, I've been using this library with nix-darwin for a while without issue – I don't think LnL7/nix-darwin#319 as mentioned in this project's readme is applicable any longer – see also LnL7/nix-darwin#317. I've been using the I was able to use https://github.com/montchr/dotfield/blob/c6bbf0ab1ac38621f67e9bb37ef96e272cf2df3b/flake.nix#L165 What happens if you try something like this: hosts.demo.builder = darwin.lib.darwinSystem; |
@montchr The latest master Looking through the histories of each repository, it's not clear to me why this didn't break earlier. I recently upgraded to M1 and hit this bug when migrating.
My fix opts to pass |
Can any of you test it with the latest version of FUP? I've added a little example which seems to evaluate https://github.com/gytis-ivaskevicius/flake-utils-plus/tree/master/examples/darwin |
The example builds fine with:
but not with:
error message:
|
Randomly stumbling upon this. NixOS/nixpkgs#160489 is causing this to fail now when it didn't before. The reason it's failing is as the error says, the flake-utils-plus/lib/mkFlake.nix Line 181 in 06dba5f
_file attribute to the module there.
|
For anyone interested, you can use:
as a temporary workaround. |
Any plans for the fix to get merged? |
@ForsakenHarmony both PRs adding it (#117 and #119) fail the tests. We can't merge the fix before making sure tests work as well. @gytis-ivaskevicius planning to fix that PR? |
Fixed in master |
That's great, thanks |
Demo
flake.nix
https://gist.github.com/azuwis/47a67c40f61afaa02362b79a0496afeb:Error log:
The text was updated successfully, but these errors were encountered: