cargo-tauri: add version test

This commit is contained in:
Seth Flynn
2025-08-21 19:55:45 -04:00
parent 91d17ed9d7
commit ca436e95e2
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -7,6 +7,7 @@
fetchFromGitHub,
nix-update-script,
pkg-config,
testers,
xz,
zstd,
}:
@@ -51,6 +52,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
tests = {
hook = callPackage ./test-app.nix { cargo-tauri = finalAttrs.finalPackage; };
version = testers.testVersion { package = finalAttrs.finalPackage; };
};
updateScript = nix-update-script {
+4 -1
View File
@@ -47,7 +47,10 @@ cargo-tauri.overrideAttrs (
webkitgtk_4_0
];
passthru = { inherit (oldAttrs.passthru) hook; };
passthru = {
inherit (oldAttrs.passthru) hook;
tests = { inherit (oldAttrs.passthru.tests) version; };
};
meta = {
inherit (oldAttrs.meta)