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

bug: nixGLNvidia: No such file or directory #6035

Open
2 tasks done
punkfairie opened this issue Nov 3, 2024 · 5 comments
Open
2 tasks done

bug: nixGLNvidia: No such file or directory #6035

punkfairie opened this issue Nov 3, 2024 · 5 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@punkfairie
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

I am trying to use the new NixGL integration with the proprietary Nvidia drivers on Arch Linux. I am getting the following error when trying to run Wezterm with a wrapper:

/nix/store/mf134rlg5b0sy7apqxm11whnc3gkswv0-nixGLCombinedWrapper-Nvidia/bin/nixGLCombinedWrapper-Nvidia: line 2: /nix/store/p13zc1ai6a9c2djr2nki7bf9xg2a681i-nixGLNvidia-565.57.01/bin/nixGLNvidia: No such file or directory

The file which actually exists includes the version number:

/nix/store/p13zc1ai6a9c2djr2nki7bf9xg2a681i-nixGLNvidia-565.57.01/bin/nixGLNvidia-565.57.01

The relevant configuration using flakes:

# Input defined as
# nixgl.url = "github:nix-community/nixGL";

# Within home-manager output:
nixGL.packages = nixgl.packages;
nixGL.defaultWrapper = "nvidia";
nixGL.installScripts = [ "nvidia" ];

programs.wezterm.package = (config.lib.nixGL.wrap pkgs.wezterm);

The wrapper is being created correctly, it's just referencing the wrong NixGL script. As far as I can tell my configuration is correct but if it isn't let me know.

Maintainer CC

@Smona

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.11.6-arch1-1, Arch Linux, noversion, rolling`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.25.0pre20240920_ca3fc169`
 - nixpkgs: `/home/marley/.nix-defexpr/channels/nixpkgs`
@punkfairie punkfairie added bug triage Issues or feature request that have not been triaged yet labels Nov 3, 2024
@Smona
Copy link
Contributor

Smona commented Nov 3, 2024

Hey @punkfairie, can you you post the revision of nixGL that you're using?

Also CC @exzombie in case they have time to look into this before I do.

@exzombie
Copy link
Contributor

exzombie commented Nov 3, 2024

I can't reproduce this. In my case, the generated wrapper correctly refers to the versioned NixGL NVidia wrapper. I also tried switching from nixos-24.05 to nixos-unstable to see if there's any change. The versions I tested with:

'github:NixOS/nixpkgs/7ffd9ae656aec493492b44d0ddfb28e79a1ea25d' (2024-11-02)
'github:nix-community/home-manager/8f6ca7855d409aeebe2a582c6fd6b6a8d0bf5661' (2024-11-03)
'github:guibou/nixGL/310f8e49a149e4c9ea52f1adf70cdc768ec53f8a' (2024-04-19)

As expected, I get

❯ less ./result/home-path/bin/wezterm
#! /nix/store/mm0pa3z7kk6jh1i9rkxqxjqmd8h1qpxf-bash-5.2p37/bin/bash -e
exec -a "wezterm" "/nix/store/n0mlyblzsaz3j11yijbgjqclxplx9zfv-nixGLCombinedWrapper-Nvidia/bin/nixGLCombinedWrapper-Nvidia"  /nix/store/ps9ipfzjlp97v4kh4gdrcpnrqsrr80r4-wezterm-20240203-110809-5046fc22/bin/wezterm "$@"
❯ less /nix/store/n0mlyblzsaz3j11yijbgjqclxplx9zfv-nixGLCombinedWrapper-Nvidia/bin/nixGLCombinedWrapper-Nvidia
#!/nix/store/mm0pa3z7kk6jh1i9rkxqxjqmd8h1qpxf-bash-5.2p37/bin/bash
exec /nix/store/n0lwgw8wvk907kvs9slzx1vr7wnbyywi-nixGLNvidia-560.35.03/bin/nixGLNvidia-560.35.03  "$@"

What's funny is that my Nvidia version is 560.35.03; @punkfairie, how did you get
565.57.01?

@punkfairie
Copy link
Author

punkfairie commented Nov 3, 2024

Strange. My Nvidia driver version is 565.57.01 according to the settings panel - the driver was installed through Pacman and that's the version number I see in the package repo as well.

I tried completely removing all references to NixGL, running home-manager switch --refresh, garbage collecting, then adding NixGL back in and running home-manager switch --refresh again. The result is the same.

It's very possible that this is just some strange alchemy of Arch Linux & Nix - I do plan to switch to NixOS eventually so if this is only a me problem I can live without NixGL and use the Pacman version of those packages that require it for now >.<

@punkfairie
Copy link
Author

Hey @punkfairie, can you you post the revision of nixGL that you're using?

Sorry - just realized there was a reply above exzombie's.

My flake.lock lists

"rev": "310f8e49a149e4c9ea52f1adf70cdc768ec53f8a"

Is that what you're after?

@exzombie
Copy link
Contributor

exzombie commented Nov 4, 2024

🤦

Of course, how silly of me. The version of the Nvidia driver comes from the OS. I was confused by the fact that NixGL also installs it from nixpkgs, but it naturally has to match the OS version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

6 participants