librashader: add updateScript

This commit is contained in:
Sizhe Zhao
2025-06-08 02:43:25 +08:00
parent 251dfdfd3e
commit 13df5fa80d
+8
View File
@@ -1,6 +1,7 @@
{
fetchFromGitHub,
lib,
nix-update-script,
rustPlatform,
stdenv,
}:
@@ -58,6 +59,13 @@ rustPlatform.buildRustPackage (finalAttrs: {
runHook postInstall
'';
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"librashader-v(.*)"
];
};
meta = {
description = "RetroArch Shaders for All";
homepage = "https://github.com/SnowflakePowered/librashader";