[Bug] [Linux] NixOS build failure
Before Reporting
- [x] I found no existing issues matching my bug
- [x] My issue is not caused by a theme
- [x] My issue is not caused by a plugin
Describe the Bug
When using Millennium as a Nix flake input, nix fails to build Millennium, stating that the function was called with an unexpected argument (extraEnv)
… while evaluating the option `environment.systemPackages':
… while evaluating definitions from `/nix/store/h2bn031b0fj0ymv9v7bv5rcdjx58y2l9-source/nixos/modules/programs/steam.nix':
… while evaluating the option `programs.steam.package':
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: function 'anonymous lambda' called with unexpected argument 'extraEnv'
at /nix/store/rkc49b8pmj79kwciqqkyv14mvfmnpj1s-source/nix/millennium.nix:1:1:
1| {
| ^
2| steam,
Expected Behavior
To build with no errors.
Steps To Reproduce
- Include millennium as an input
inputs.millennium.url = "git+https://github.com/SteamClientHomebrew/Millennium";
- Add the overlay to local nixpkgs overlays
nixpkgs.overlays = [
inputs.millennium.overlays.default
];
- Set programs.steam.package to the millennium package
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
package = pkgs.millennium;
};
Operating System
Linux
Anything else?
No response
Also interestingly, when extraEnv, extraLibraries, and extraPkgs are added to the inputs
{
steam,
pkgsi686Linux,
replaceVars,
cmake,
ninja,
callPackage,
lib,
extraEnv ? {},
extraLibraries ? {},
extraPkgs ? {},
}:
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: attribute 'run' missing
at /nix/store/h2bn031b0fj0ymv9v7bv5rcdjx58y2l9-source/nixos/modules/programs/steam.nix:247:9:
246| cfg.package
247| cfg.package.run
| ^
248| ]
Did you mean out?
@Sk7Str1p3
It seems like millennium is not compatible with NixOS module yet, i didn't test it. I hope I know how to fix it, but I have no time rn
Experiencing the same issue on my system.
I'm trying to take a look at fixing this myself
https://github.com/Mistyttm/Millennium/blob/main/nix/millennium.nix
and I've made some progress beyond the error: attribute 'run' missing that @fmbearmf got. This could just be because I run the latest unstable, but it seems to fail trying to run some tests
error: builder for '/nix/store/gzhry3wzwanvcgdl2q8v6ggg8mz9996q-python3.11-watchdog-6.0.0.drv' failed with exit code 1;
last 25 log lines:
>
> test_auto_restart_subprocess_termination[True] passed 1 out of the required 1 times. Success!
> test_auto_restart_subprocess_termination[False] passed 1 out of the required 1 times. Success!
> test_delayed_get passed 1 out of the required 1 times. Success!
> test_nondelayed_get passed 1 out of the required 1 times. Success!
> test_create passed 1 out of the required 1 times. Success!
> test_delete passed 1 out of the required 1 times. Success!
> test_modify passed 1 out of the required 1 times. Success!
> test_chmod passed 1 out of the required 1 times. Success!
> test_move passed 1 out of the required 1 times. Success!
> test_case_change passed 1 out of the required 1 times. Success!
> test_move_to passed 1 out of the required 1 times. Success!
> test_move_from passed 1 out of the required 1 times. Success!
> test_separate_consecutive_moves passed 1 out of the required 1 times. Success!
> test_delete_self passed 1 out of the required 1 times. Success!
> test_passing_unicode_should_give_unicode passed 1 out of the required 1 times. Success!
> test_recursive_on passed 1 out of the required 1 times. Success!
> test_recursive_off passed 1 out of the required 1 times. Success!
> test_renaming_top_level_directory passed 1 out of the required 1 times. Success!
> test_file_lifecyle passed 1 out of the required 1 times. Success!
>
> ===End Flaky Test Report===
> =========================== short test summary info ============================
> FAILED tests/test_inotify_c.py::test_select_fd - OSError: [Errno 24] Too many open files: '/build/pytest-of-nixbld/pytest-0/test_select_fd0/new_file'
> =========== 1 failed, 162 passed, 3 skipped, 3 deselected in 53.58s ============
For full logs, run:
nix log /nix/store/gzhry3wzwanvcgdl2q8v6ggg8mz9996q-python3.11-watchdog-6.0.0.drv
I can confirm this is a result of millennium, as putting steam back in place removes this error.
I think I'm kinda stuck on trying to get past the single failing test.
I'm running 25.05 stable, getting the same millennium build error.
error: builder for '/nix/store/gzhry3wzwanvcgdl2q8v6ggg8mz9996q-python3.11-watchdog-6.0.0.drv' failed with exit code 1;
last 25 log lines:
>
> test_auto_restart_subprocess_termination[True] passed 1 out of the required 1 times. Success!
> test_auto_restart_subprocess_termination[False] passed 1 out of the required 1 times. Success!
> test_delayed_get passed 1 out of the required 1 times. Success!
> test_nondelayed_get passed 1 out of the required 1 times. Success!
> test_create passed 1 out of the required 1 times. Success!
> test_delete passed 1 out of the required 1 times. Success!
> test_modify passed 1 out of the required 1 times. Success!
> test_chmod passed 1 out of the required 1 times. Success!
> test_move passed 1 out of the required 1 times. Success!
> test_case_change passed 1 out of the required 1 times. Success!
> test_move_to passed 1 out of the required 1 times. Success!
> test_move_from passed 1 out of the required 1 times. Success!
> test_separate_consecutive_moves passed 1 out of the required 1 times. Success!
> test_delete_self passed 1 out of the required 1 times. Success!
> test_passing_unicode_should_give_unicode passed 1 out of the required 1 times. Success!
> test_recursive_on passed 1 out of the required 1 times. Success!
> test_recursive_off passed 1 out of the required 1 times. Success!
> test_renaming_top_level_directory passed 1 out of the required 1 times. Success!
> test_file_lifecyle passed 1 out of the required 1 times. Success!
>
> ===End Flaky Test Report===
> =========================== short test summary info ============================
> FAILED tests/test_inotify_c.py::test_select_fd - OSError: [Errno 24] Too many open files: '/build/pytest-of-nixbld/pytest-0/test_select_fd0/new_file'
> =========== 1 failed, 162 passed, 3 skipped, 3 deselected in 53.80s ============
For full logs, run:
nix log /nix/store/gzhry3wzwanvcgdl2q8v6ggg8mz9996q-python3.11-watchdog-6.0.0.drv
programs.steam.package fails with anonymous lambda as well.
error: function 'anonymous lambda' called with unexpected argument 'extraEnv'
at /nix/store/fsp2jnhasdx27rqppi516q0aarax43fx-source/nix/millennium.nix:1:1:
1| {
| ^
2| steam,
Already fixed on next branch.
@NIMFER watchdog build failure is known issue which is already solved on unstable branch. You should wait backport, or manually disable failed test with override
@shdwmtr please close this issue as resolved. I don't have rights to do that
I'm likely going to leave this open as a perma issue. Just a place where anyone can dump issues to you. More of a discussion thread then an issue.
error: function 'anonymous lambda' called with unexpected argument 'extraEnv'
at /nix/store/6ilnpnixqy7di3cy4d9j5gvijxi39hh8-source/nix/millennium.nix:1:1:
1| {
| ^
2| pkgsi686Linux,
millennium = {
url = "git+https://github.com/SteamClientHomebrew/Millennium?ref=next";
inputs.nixpkgs.follows = "nixpkgs";
};
still happening on next for me
programs.steam = {
enable = true;
- package = pkgs.millennium;
+ package = pkgs.steam-millennium;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
nevermind, this fixed it
That pseudo package should probably get put in the docs instead of milennium since that currently causes the old issue.
https://github.com/SteamClientHomebrew/SteamBrew/pull/25
made a pr to change it in next branch
new failiure from pnpm deps not having fetcherVersion fixing now
On the docs it says to add the following line:
programs.steam.package = pkgs.millennium;
but as @skoove stated the correct one is this:
programs.steam.package = pkgs.steam-millennium;
i have a open pr on the docs to resolve this
https://github.com/SteamClientHomebrew/SteamBrew/pull/25
I still have this issue, and the fix mentioned by skoove doesn't help either, is there any new instructions that I should follow?
yea its still not building
last 25 log lines:
>
> test_auto_restart_subprocess_termination[True] passed 1 out of the required 1 times. Success!
> test_auto_restart_subprocess_termination[False] passed 1 out of the required 1 times. Success!
> test_delayed_get passed 1 out of the required 1 times. Success!
> test_nondelayed_get passed 1 out of the required 1 times. Success!
> test_create passed 1 out of the required 1 times. Success!
> test_delete passed 1 out of the required 1 times. Success!
> test_modify passed 1 out of the required 1 times. Success!
> test_chmod passed 1 out of the required 1 times. Success!
> test_move passed 1 out of the required 1 times. Success!
> test_case_change passed 1 out of the required 1 times. Success!
> test_move_to passed 1 out of the required 1 times. Success!
> test_move_from passed 1 out of the required 1 times. Success!
> test_separate_consecutive_moves passed 1 out of the required 1 times. Success!
> test_delete_self passed 1 out of the required 1 times. Success!
> test_passing_unicode_should_give_unicode passed 1 out of the required 1 times. Success!
> test_recursive_on passed 1 out of the required 1 times. Success!
> test_recursive_off passed 1 out of the required 1 times. Success!
> test_renaming_top_level_directory passed 1 out of the required 1 times. Success!
> test_file_lifecyle passed 1 out of the required 1 times. Success!
>
> ===End Flaky Test Report===
> =========================== short test summary info ============================
> FAILED tests/test_inotify_c.py::test_select_fd - OSError: [Errno 24] Too many open files: '/build/pytest-of-nixbld/pytest-0/test_select_fd0/new_file' ```