From 3c998abb1c8f9fce63b384a4f282f2e629a62e90 Mon Sep 17 00:00:00 2001 From: Mynacol Date: Fri, 25 Sep 2026 11:12:05 +0000 Subject: [PATCH] deno: fix WebGPU on Linux by making Vulkan available Resolves https://github.com/NixOS/nixpkgs/issues/558776. Darwin already has working Vulkan support. --- pkgs/by-name/de/deno/package.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/de/deno/package.nix b/pkgs/by-name/de/deno/package.nix index ca06a0e755f3..7fea2631bbff 100644 --- a/pkgs/by-name/de/deno/package.nix +++ b/pkgs/by-name/de/deno/package.nix @@ -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 ];