deno: fix WebGPU on Linux by making Vulkan available

Resolves https://github.com/NixOS/nixpkgs/issues/558776.
Darwin already has working Vulkan support.
This commit is contained in:
Mynacol
2026-09-25 11:12:05 +00:00
parent 8c33f34c45
commit 3c998abb1c

View File

@@ -17,6 +17,7 @@
zstd,
lcms2,
lld,
vulkan-loader,
writableTmpDirAsHomeHook,
# Test deps
@@ -177,10 +178,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
"--skip=npm::lock_file_lock_write"
"--skip=happy_eyeballs::tests::test_parallel_second_wins"
# GPU access
"--skip=js_unit_tests::webgpu_test"
"--skip=js_unit_tests::jupyter_test"
# Use of /usr/bin
"--skip=specs::permission::proc_self_fd"
@@ -267,6 +264,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
--zsh <($out/bin/deno completions zsh)
'';
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
patchelf --add-rpath ${lib.makeLibraryPath [ vulkan-loader ]} $out/bin/deno
'';
doInstallCheck = canExecute;
nativeInstallCheckInputs = [ versionCheckHook ];