diff --git a/pkgs/by-name/pl/plasticity/package.nix b/pkgs/by-name/pl/plasticity/package.nix index 75d04eac28d9..ef9427a037f2 100644 --- a/pkgs/by-name/pl/plasticity/package.nix +++ b/pkgs/by-name/pl/plasticity/package.nix @@ -18,6 +18,7 @@ libnotify, libxkbcommon, libgbm, + libGL, nspr, nss, openssl, @@ -40,11 +41,11 @@ }: stdenv.mkDerivation rec { pname = "plasticity"; - version = "25.3.9"; + version = "26.1.3"; src = fetchurl { url = "https://github.com/nkallen/plasticity/releases/download/v${version}/Plasticity-${version}-1.x86_64.rpm"; - hash = "sha256-92DokpVmywh7EZZMKAoXf0RzkEuG/4Ngd5l0l/o6Klk="; + hash = "sha256-gHoih3CldhrHPLBpu3slRUxJSBIbYYhQ9WhEbhjHzyM="; }; passthru.updateScript = ./update.sh; @@ -122,9 +123,17 @@ stdenv.mkDerivation rec { runHook postInstall ''; - #--use-gl=egl for it to use hardware rendering it seems. Otherwise there are terrible framerates preFixup = '' - gappsWrapperArgs+=(--add-flags "--use-gl=egl") + patchelf --add-needed libGL.so.1 \ + --set-rpath "${ + lib.makeLibraryPath [ + libGL + ] + }" \ + $out/bin/Plasticity + + rm "$out/lib/Plasticity/libvulkan.so.1" + ln -s -t "$out/lib/Plasticity" "${lib.getLib vulkan-loader}/lib/libvulkan.so.1" ''; meta = {