Millennium icon indicating copy to clipboard operation
Millennium copied to clipboard

[Bug] [Linux] NixOS build failure

Open fmbearmf opened this issue 1 year ago • 20 comments

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

  1. Include millennium as an input
inputs.millennium.url = "git+https://github.com/SteamClientHomebrew/Millennium";
  1. Add the overlay to local nixpkgs overlays
nixpkgs.overlays = [
        inputs.millennium.overlays.default
];
  1. 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

fmbearmf avatar Jul 04 '25 00:07 fmbearmf

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?

fmbearmf avatar Jul 04 '25 00:07 fmbearmf

@Sk7Str1p3

ejalxndr avatar Jul 04 '25 02:07 ejalxndr

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

Sk7Str1p3 avatar Jul 04 '25 04:07 Sk7Str1p3

Experiencing the same issue on my system.

Siarune avatar Jul 05 '25 21:07 Siarune

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.

Mistyttm avatar Jul 06 '25 05:07 Mistyttm

I think I'm kinda stuck on trying to get past the single failing test.

Mistyttm avatar Jul 06 '25 06:07 Mistyttm

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,

NIMFER avatar Jul 09 '25 17:07 NIMFER

Already fixed on next branch.

Sk7Str1p3 avatar Jul 09 '25 17:07 Sk7Str1p3

@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

Sk7Str1p3 avatar Jul 09 '25 17:07 Sk7Str1p3

@shdwmtr please close this issue as resolved. I don't have rights to do that

Sk7Str1p3 avatar Jul 10 '25 05:07 Sk7Str1p3

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.

ejalxndr avatar Jul 10 '25 06:07 ejalxndr

       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

skoove avatar Jul 13 '25 04:07 skoove

  programs.steam = {
    enable = true;
-   package = pkgs.millennium;
+   package = pkgs.steam-millennium;
    remotePlay.openFirewall = true;
    dedicatedServer.openFirewall = true;
    localNetworkGameTransfers.openFirewall = true;
  };

nevermind, this fixed it

skoove avatar Jul 13 '25 04:07 skoove

That pseudo package should probably get put in the docs instead of milennium since that currently causes the old issue.

Enovale avatar Jul 13 '25 05:07 Enovale

https://github.com/SteamClientHomebrew/SteamBrew/pull/25

made a pr to change it in next branch

skoove avatar Jul 13 '25 10:07 skoove

new failiure from pnpm deps not having fetcherVersion fixing now

skoove avatar Jul 18 '25 09:07 skoove

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;

Superredstone avatar Aug 09 '25 10:08 Superredstone

i have a open pr on the docs to resolve this

https://github.com/SteamClientHomebrew/SteamBrew/pull/25

skoove avatar Aug 09 '25 12:08 skoove

I still have this issue, and the fix mentioned by skoove doesn't help either, is there any new instructions that I should follow?

quotejericho avatar Aug 21 '25 23:08 quotejericho

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' ```

imshinyu avatar Aug 24 '25 17:08 imshinyu