nix-community / nixGL

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

Help with using it #144

Closed 573 closed 9 months ago

573 commented 9 months ago

I tried to use https://github.com/guibou/nixGL/blob/4de92f0/README.md#opengl---hybrid-intel--nvidia-laptop but (https://github.com/guibou/nixGL/tree/489d6b095ab9d289fe11af0219a9ff00fe87c7c5):

nix repl :lf github:guibou/nixGL :p packages.x86_64-linux.nixGLNvidiaBumblebee


error:
… while calling the 'derivationStrict' builtin
     at //builtin/derivation.nix:9:12: (source not available)

   … while evaluating the derivation attribute 'name'

     at /nix/store/kc7nh9sdr4z8c7xc9j9891v212k2zj8k-source/pkgs/stdenv/generic/make-derivation.nix:270:7:

      269|     // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
      270|       name =
         |       ^
      271|         let

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

   error: cannot coerce null to a string

«derivation

573 commented 9 months ago

Is it due to cat /proc/driver/nvidia/version not found (see https://discourse.nixos.org/t/nixgl-needs-you-for-testing/6921/15) ?

573 commented 9 months ago

For the nixGLNvidiaBumblebee wrapper to work one needs to have the drivers installed on their system first, just a very tiny selection of examples for a laptop with hybrid graphics, more to find in the README:

For other hardware scenarios sudo lshw -c display might help.