nix-community / nixpkgs-wayland

Automated, pre-built packages for Wayland (sway/wlroots) tools for NixOS. [maintainers=@colemickens, @Artturin]
510 stars 47 forks source link

wlroots fails to build #340

Closed pyrox0 closed 2 years ago

pyrox0 commented 2 years ago

I'm trying to update my system, and wlroots fails to build with the error

cc1: error: /nix/store/mzsb651dndz483j3p3mkdimv6jbipj8a-vulkan-loader-1.3.211.0-dev//nix/store/ricqa5g00rn0rscz2liyiqnhpqgz8kkz-vulkan-headers-1.3.211.0/include: No such file or directory [-Werror=missing-include-dirs]

This breaks my entire config and I can't rebuild. What can I do to fix this? It seems to be concatenating 2 paths together(because of the double slash after the word dev.

Artturin commented 2 years ago

i tested with nix build ".#wlroots" and it built for me

send the output of nixos-version

pyrox0 commented 2 years ago

I'm not on nixos. I'm running nix versionnix (Nix) 2.8.0pre20220322_d5d4d98 on arch.

Artturin commented 2 years ago

what nixpkgs rev

pyrox0 commented 2 years ago

nixpkgs-wayland: 2fefb443e87f9b578329a21e2aaa065aea6748bc nixpkgs: e10da1c7f542515b609f8dfbcf788f3d85b14936

bandithedoge commented 2 years ago

I also have the same issue on 22.05.20220417.bd4dffc (Quokka).

bandithedoge commented 2 years ago

Removing vulkan-headers from buildInputs produces an error that suggests using -Dvulkan=disabled to disable building the Vulkan renderer, but adding it to mesonFlags produces another error:

meson: error: unrecognized arguments: Dvulkan=disabled
berbiche commented 2 years ago

I believe this PR in nixpkgs resolves the issue: https://github.com/NixOS/nixpkgs/pull/170748