cargo-tauri: rec -> finalAttrs

This commit is contained in:
Seth Flynn
2025-08-21 19:48:12 -04:00
parent 57d00f0855
commit 91d17ed9d7
2 changed files with 8 additions and 11 deletions
+7 -7
View File
@@ -11,14 +11,14 @@
zstd,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tauri";
version = "2.7.1";
src = fetchFromGitHub {
owner = "tauri-apps";
repo = "tauri";
tag = "tauri-cli-v${version}";
tag = "tauri-cli-v${finalAttrs.version}";
hash = "sha256-0J55AvAvvqTVls4474GcgLPBtSC+rh8cXVKluMjAVBE=";
};
@@ -39,7 +39,7 @@ rustPlatform.buildRustPackage rec {
];
cargoBuildFlags = [ "--package tauri-cli" ];
cargoTestFlags = cargoBuildFlags;
cargoTestFlags = finalAttrs.cargoBuildFlags;
env = lib.optionalAttrs stdenv.hostPlatform.isLinux {
ZSTD_SYS_USE_PKG_CONFIG = true;
@@ -47,10 +47,10 @@ rustPlatform.buildRustPackage rec {
passthru = {
# See ./doc/hooks/tauri.section.md
hook = callPackage ./hook.nix { };
hook = callPackage ./hook.nix { cargo-tauri = finalAttrs.finalPackage; };
tests = {
hook = callPackage ./test-app.nix { };
hook = callPackage ./test-app.nix { cargo-tauri = finalAttrs.finalPackage; };
};
updateScript = nix-update-script {
@@ -64,7 +64,7 @@ rustPlatform.buildRustPackage rec {
meta = {
description = "Build smaller, faster, and more secure desktop applications with a web frontend";
homepage = "https://tauri.app/";
changelog = "https://github.com/tauri-apps/tauri/releases/tag/${src.tag}";
changelog = "https://github.com/tauri-apps/tauri/releases/tag/tauri-cli-v${finalAttrs.version}";
license = with lib.licenses; [
asl20 # or
mit
@@ -76,4 +76,4 @@ rustPlatform.buildRustPackage rec {
];
mainProgram = "cargo-tauri";
};
}
})
+1 -4
View File
@@ -4,7 +4,6 @@
rustPlatform,
fetchFromGitHub,
cargo-tauri,
cargo-tauri_1,
gtk3,
libsoup_2_4,
openssl,
@@ -48,9 +47,7 @@ cargo-tauri.overrideAttrs (
webkitgtk_4_0
];
passthru = {
hook = cargo-tauri.hook.override { cargo-tauri = cargo-tauri_1; };
};
passthru = { inherit (oldAttrs.passthru) hook; };
meta = {
inherit (oldAttrs.meta)