nix-community / nixGL

A wrapper tool for nix OpenGL application [maintainer=@guibou]
628 stars 76 forks source link

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

Open samuela opened 5 months ago

samuela commented 5 months ago

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 commented 5 months ago

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

samuela commented 5 months ago

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 commented 5 months ago

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