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

Installation failure: error: assertion '(useSettings -> (! libsOnly))' failed #157

Open
samuela opened this issue Jan 20, 2024 · 3 comments

Comments

@samuela
Copy link
Contributor

samuela commented Jan 20, 2024

I'm using nixpkgs=flake:github:NixOS/nixpkgs/nixos-23.11 and am experiencing the following error when following the installation instructions:

ubuntu@ip-172-31-37-110:~$ nix-channel --add https://github.com/guibou/nixGL/archive/main.tar.gz nixgl && nix-channel --update
this derivation will be built:
  /nix/store/xp62806xpgj85gr6b7c2qyzk43wk5dj7-nixgl.drv
building '/nix/store/xp62806xpgj85gr6b7c2qyzk43wk5dj7-nixgl.drv'...
unpacking channels...
ubuntu@ip-172-31-37-110:~$ nix-env -iA nixgl.auto.nixGLDefault
copying path '/nix/store/qra2j0db6rzba2dk0r5dxsial35b56k3-stdenv-linux' from 'https://cache.nixos.org'...
building '/nix/store/901hhn304rny6yy2jz8iiym06l3bqrvr-impure-nvidia-version-file.drv'...
installing 'nixGL'
error:
       … while calling the 'derivationStrict' builtin

         at /derivation-internal.nix:9:12:

            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'nixGL'
         whose name attribute is located at /nix/store/abh0p0f6fcqilmp3v24gfj00lp38wn6l-source/pkgs/stdenv/generic/make-derivation.nix:352:7

       … while evaluating attribute 'buildCommand' of derivation 'nixGL'

         at /nix/store/abh0p0f6fcqilmp3v24gfj00lp38wn6l-source/pkgs/build-support/trivial-builders/default.nix:98:16:

           97|         enableParallelBuilding = true;
           98|         inherit buildCommand name;
             |                ^
           99|         passAsFile = [ "buildCommand" ]

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

       error: assertion '(useSettings -> (! libsOnly))' failed

       at /nix/store/abh0p0f6fcqilmp3v24gfj00lp38wn6l-source/pkgs/os-specific/linux/nvidia-x11/generic.nix:61:1:

           60|
           61| assert useSettings -> !libsOnly;
             | ^
           62| assert !libsOnly -> kernel != null;

I'm running on Ubuntu 22.04.3 LTS with Nix installed via the Determinate Nix installer. NVIDIA driver is installed by the instructions here. Happy to provide any other information that would be useful to debug.

@samuela
Copy link
Contributor Author

samuela commented Jan 20, 2024

Same thing with nix-env -iA nixgl.auto.nixGLNvidia.

@samuela
Copy link
Contributor Author

samuela commented Jan 20, 2024

Using the nix flake directly fails for a different reason:

ubuntu@ip-172-31-37-110:~$ nix run --impure github:nix-community/nixGL
error:
       … while calling the 'derivationStrict' builtin

         at /derivation-internal.nix:9:12:

            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'nixGL'
         whose name attribute is located at /nix/store/kc7nh9sdr4z8c7xc9j9891v212k2zj8k-source/pkgs/stdenv/generic/make-derivation.nix:270:7

       … while evaluating attribute 'buildCommand' of derivation 'nixGL'

         at /nix/store/kc7nh9sdr4z8c7xc9j9891v212k2zj8k-source/pkgs/build-support/trivial-builders.nix:74:14:

           73|       enableParallelBuilding = true;
           74|       inherit buildCommand name;
             |              ^
           75|       passAsFile = [ "buildCommand" ]

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

       error: unable to download 'https://download.nvidia.com/XFree86/Linux-x86_64/545.23.08/NVIDIA-Linux-x86_64-545.23.08.run': HTTP error 404

       response body:

       <?xml version="1.0" encoding="iso-8859-1"?>
       <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       	<head>
       		<title>404 - Not Found</title>
       	</head>
       	<body>
       		<h1>404 - Not Found</h1>
       		<script type="text/javascript" src="//obj.ac.bcon.ecdns.net/ec_tpm_bcon.js"></script>
       	</body>
       </html>

@andreaswolf
Copy link

This is a duplicate of #154 I'd say.

trofi added a commit to trofi/nixpkgs that referenced this issue Jan 25, 2024
…n `libsOnly`"

THe change caused nixGL instantiation failures:

- nix-community/nixGL#157
- nix-community/nixGL#154

I missed the fact that there is no easy way to oberride `useSettings` as
it's an internal argument as ollosed to `useLibs`.

Instead of fixing it let's revert it back and try again later.

This reverts commit 9c51fb0.
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

No branches or pull requests

2 participants