diff options
author | Artemis Tosini <me@artem.ist> | 2021-05-08 02:06:09 +0000 |
---|---|---|
committer | Artemis Tosini <me@artem.ist> | 2022-05-23 01:17:19 +0000 |
commit | e5caa559c41a0b23c0fcdf16bcdf9f84c5c7e83f (patch) | |
tree | 8e9e8ad6703a5a7b9d44a5f05323aab6a7ab80f5 /pkgs/development | |
parent | 772e39b23727a5e69bf021fe1bde079b965580e8 (diff) |
mesa: Add support for building the Zink driver
Zink requires vulkan-loader to build. Enable vulkan-loader when Zink is explicitally specified as a build target
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/mesa/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index 1e84498d9a9e..9b5a3e877f9a 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -5,6 +5,7 @@ , llvmPackages, libffi, libomxil-bellagio, libva-minimal , libelf, libvdpau , libglvnd, libunwind +, vulkan-loader , galliumDrivers ? ["auto"] , vulkanDrivers ? ["auto"] , eglPlatforms ? [ "x11" ] ++ lib.optionals stdenv.isLinux [ "wayland" ] @@ -144,7 +145,9 @@ self = stdenv.mkDerivation { ++ lib.optionals stdenv.isLinux [ libomxil-bellagio libva-minimal ] ++ lib.optionals stdenv.isDarwin [ libunwind ] ++ lib.optionals enableOpenCL [ libclc llvmPackages.clang llvmPackages.clang-unwrapped ] - ++ lib.optional withValgrind valgrind-light; + ++ lib.optional withValgrind valgrind-light + # Mesa will not build zink when gallium-drivers=auto + ++ lib.optional (elem "zink" galliumDrivers) vulkan-loader; depsBuildBuild = [ pkg-config ]; |