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

Undefined variable xor #58

Closed
eyJhb opened this issue Apr 24, 2024 · 0 comments · Fixed by #59
Closed

Undefined variable xor #58

eyJhb opened this issue Apr 24, 2024 · 0 comments · Fixed by #59

Comments

@eyJhb
Copy link
Collaborator

eyJhb commented Apr 24, 2024

pr NixOS/nixpkgs#301556 introduced lib.xor, now nixus gives the following error when trying to build.

error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'deploy'
         whose name attribute is located at /nix/store/qhpbfimgrjbfywkpm9i50c28dpyy39iv-nixpkgs-stable-src/pkgs/stdenv/generic/make-derivation.nix:348:7

       … while evaluating attribute 'text' of derivation 'deploy'

         at /nix/store/qhpbfimgrjbfywkpm9i50c28dpyy39iv-nixpkgs-stable-src/pkgs/build-support/trivial-builders/default.nix:148:16:

          147|     runCommand name
          148|       { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
             |                ^
          149|         passAsFile = [ "text" ];

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: undefined variable 'xor'

       at /nix/store/q53q6j2dixwy77xvxcj41n80z04hw1xd-nixpkgs-src/nixos/modules/config/users-groups.nix:875:16:

          874|               isEffectivelySystemUser = user.isSystemUser || (user.uid != null && user.uid < 1000);
          875|             in xor isEffectivelySystemUser user.isNormalUser;
             |                ^
          876|             message = ''
┏━ 1 Errors:
┃ error:
┃        … while calling the 'derivationStrict' builtin
┃
┃          at /builtin/derivation.nix:9:12: (source not available)
┃
┃        … while evaluating derivation 'deploy'
┃          whose name attribute is located at /nix/store/qhpbfimgrjbfywkpm9i50c28dpyy39iv-nixpkgs-stable-src/pkgs/stdenv/gener…
┃
┃        … while evaluating attribute 'text' of derivation 'deploy'
┃
┃          at /nix/store/qhpbfimgrjbfywkpm9i50c28dpyy39iv-nixpkgs-stable-src/pkgs/build-support/trivial-builders/default.nix:1…
┃
┃           147|     runCommand name
┃           148|       { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
┃              |                ^
┃           149|         passAsFile = [ "text" ];
┃
┃        (stack trace truncated; use '--show-trace' to show the full trace)
┃
┃        error: undefined variable 'xor'
┃
┃        at /nix/store/q53q6j2dixwy77xvxcj41n80z04hw1xd-nixpkgs-src/nixos/modules/config/users-groups.nix:875:16:
┃
┃           874|               isEffectivelySystemUser = user.isSystemUser || (user.uid != null && user.uid < 1000);
┃           875|             in xor isEffectivelySystemUser user.isNormalUser;
┃              |                ^
┃           876|             message = ''
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 15:54:12 after 2s`

I've tried to bump nixus nixpkgs using

eyjhb@chronos /t/nixus (master)> nix-shell -p niv --run 'niv update'
Updating all packages
  INFO: new sources.nix available: 27 -> 28
    Please run 'niv init' or add the following line in the nix/sources.nix file:
    # niv: no_update
  Package: nixpkgs
Done: Updating all packages
eyjhb@chronos /t/nixus (master)> git diff
diff --git a/nix/sources.json b/nix/sources.json
index 2508113..38f2ba0 100644
--- a/nix/sources.json
+++ b/nix/sources.json
@@ -5,10 +5,10 @@
         "homepage": "",
         "owner": "NixOS",
         "repo": "nixpkgs",
-        "rev": "21eb6c6ba74dcbe3ea5926ee46287300fb066630",
-        "sha256": "1p0v1n5px47xlaj3qhqys0l0ia8a8bvgali6lhyjxs2bgspx5fb4",
+        "rev": "1e1dc66fe68972a76679644a5577828b6a7e8be4",
+        "sha256": "1nmra8aiiazi0w19x4cbb3qzy3l6ff9yaki3pkibhwh2grm88132",
         "type": "tarball",
-        "url": "https://github.com/NixOS/nixpkgs/archive/21eb6c6ba74dcbe3ea5926ee46287300fb066630.tar.gz",
+        "url": "https://github.com/NixOS/nixpkgs/archive/1e1dc66fe68972a76679644a5577828b6a7e8be4.tar.gz",
         "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
     }
 }

However it still produces the same error.

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 a pull request may close this issue.

1 participant