mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
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:
@@ -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 ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user