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

nix: 2.7 -> unstable-2022-11-16 #35

Merged
merged 1 commit into from
Nov 20, 2022

Conversation

milahu
Copy link
Contributor

@milahu milahu commented Nov 20, 2022

use nix with NixOS/nix#7283

fix #29
fix NixOS/nix#6572

@jonringer jonringer merged commit 332e496 into jonringer:main Nov 20, 2022
@milahu
Copy link
Contributor Author

milahu commented Nov 20, 2022

on my system, nixos-rebuild switch fails with

...

nix-unstable> ran test tests/completions.sh... [PASS]
nix-unstable> ran test tests/nix-profile.sh... [PASS]
nix-unstable> ran test tests/path-from-hash-part.sh... [PASS]
nix-unstable> ran test tests/compute-levels.sh... [PASS]
nix-unstable> ran test tests/impure-derivations.sh... [PASS]
nix-unstable> installCheckPhase completed in 3 minutes 8 seconds
building the system configuration...
warning: Git tree '/home/user/etc/nixos' is dirty
error: assertion '(isNixAtLeast "2.2")' failed

       at /nix/store/qx49n5zbgid072vrhv6cjnqc94242y1r-source/nixos/modules/services/misc/nix-daemon.nix:33:5:

           32|   nixConf =
           33|     assert isNixAtLeast "2.2";
             |     ^
           34|     let

looks like we need to override version

should work with

-    version = "unstable-2022-11-16";
+    version = "2.11.1-unstable-2022-11-16";
lib.versionOlder "2.2" "unstable-2022-11-16" == false
lib.versionOlder "2.2" "2.11.1-unstable-2022-11-16" == true

This was referenced Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

nix-build: requires non-existent output 'out' from input derivation
2 participants