From 893384eb875ce66ac3779b64746da6c2f95203e7 Mon Sep 17 00:00:00 2001 From: materus Date: Thu, 5 Oct 2023 17:23:46 +0200 Subject: [PATCH] swiftshader: update swiftshader, add icd file --- pkgs/libs/swiftshader.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/libs/swiftshader.nix b/pkgs/libs/swiftshader.nix index bb436e4..bcaa0c9 100644 --- a/pkgs/libs/swiftshader.nix +++ b/pkgs/libs/swiftshader.nix @@ -3,12 +3,12 @@ stdenv.mkDerivation rec { pname = "swiftshader"; - version = "20072023"; + version = "03102023"; src = fetchFromGitHub { owner = "google"; repo = "SwiftShader"; - rev = "4a260c12b8c155103435a7b2b99b5227f6ce7594"; - sha256 = "sha256-WcA1EazeuRlFhIaAKgJHp+rUkCR2vqcINkTMYOgrbNI="; + rev = "400ac3a175a658d8157f8a363271ae7ab013c2ee"; + sha256 = "sha256-t3XjGPY6CutpyIKolUjvprOkJjKCEfDmU7+x1Hmzpfg="; fetchSubmodules = true; }; @@ -16,7 +16,11 @@ stdenv.mkDerivation rec { installPhase = '' mkdir -p $out/lib - mv libvk_swiftshader.so $out/lib + mkdir -p $out/share/vulkan/icd.d + install -Dm755 libvk_swiftshader.so $out/lib + install -Dm644 Linux/vk_swiftshader_icd.json $out/share/vulkan/icd.d + + sed -i "s#./libvk_swiftshader.so#$out/lib/libvk_swiftshader.so#" $out/share/vulkan/icd.d/vk_swiftshader_icd.json '';