Skip to content
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

Installing Nix 2.25.0 from the flake is missing the LaunchDaemon plist, installs test programs that fail, and other peculiarities #11862

Open
grahamc opened this issue Nov 12, 2024 · 1 comment
Labels

Comments

@grahamc
Copy link
Member

grahamc commented Nov 12, 2024

Describe the bug

$ nix build github:NixOS/nix/2.25.0

is a bit peculiar in that:

  1. The build output is missing Library/LaunchDaemons/org.nixos.nix-daemon.plist from the result
  2. The default package no longer has a version attribute
  3. The default package is now 4x larger than it used to be (~110MB, ~400MB)
  4. The bin directory now has -test programs, and unfortunately some of those fail:
/nix/store/9pf0gwibm5v7fy4gn8yvp730fzwc44lr-nix-fetchers-tests-2.25.0/bin/nix-fetchers-tests
Running main() from /tmp/nix-build-gtest-1.14.0.drv-0/source/googletest/src/gtest_main.cc
[==========] Running 5 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 5 tests from PublicKeyTest
[ RUN      ] PublicKeyTest.PublicKey_simple_from_json
unknown file: Failure
C++ exception with description "bad_optional_access" thrown in the test fixture's constructor.

[  FAILED  ] PublicKeyTest.PublicKey_simple_from_json (0 ms)
[ RUN      ] PublicKeyTest.PublicKey_simple_to_json
unknown file: Failure
C++ exception with description "bad_optional_access" thrown in the test fixture's constructor.

[  FAILED  ] PublicKeyTest.PublicKey_simple_to_json (0 ms)
[ RUN      ] PublicKeyTest.PublicKey_defaultType_from_json
unknown file: Failure
C++ exception with description "bad_optional_access" thrown in the test fixture's constructor.

[  FAILED  ] PublicKeyTest.PublicKey_defaultType_from_json (0 ms)
[ RUN      ] PublicKeyTest.PublicKey_defaultType_to_json
unknown file: Failure
C++ exception with description "bad_optional_access" thrown in the test fixture's constructor.

[  FAILED  ] PublicKeyTest.PublicKey_defaultType_to_json (0 ms)
[ RUN      ] PublicKeyTest.PublicKey_noRoundTrip_from_json
unknown file: Failure
C++ exception with description "bad_optional_access" thrown in the test fixture's constructor.

[  FAILED  ] PublicKeyTest.PublicKey_noRoundTrip_from_json (0 ms)
[----------] 5 tests from PublicKeyTest (0 ms total)

[----------] Global test environment tear-down
[==========] 5 tests from 1 test suite ran. (0 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 5 tests, listed below:
[  FAILED  ] PublicKeyTest.PublicKey_simple_from_json
[  FAILED  ] PublicKeyTest.PublicKey_simple_to_json
[  FAILED  ] PublicKeyTest.PublicKey_defaultType_from_json
[  FAILED  ] PublicKeyTest.PublicKey_defaultType_to_json
[  FAILED  ] PublicKeyTest.PublicKey_noRoundTrip_from_json

 5 FAILED TESTS

Expected behavior

I expected the default package to remain suitable for installing by default in a variety of environments.

Priorities

Add 👍 to issues you find important.

@grahamc grahamc added the bug label Nov 12, 2024
@edolstra
Copy link
Member

edolstra commented Nov 12, 2024

This is fixed by #11861. In the meantime, you can use the packages.<system>.nix package instead of packages.<system>.default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants