Skip to content

Commit 71c343e

Browse files
authored
cargo-tauri: 2.1.0 -> 2.1.1 (#356330)
2 parents d903a3e + a36b0ec commit 71c343e

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

pkgs/by-name/ca/cargo-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/by-name/ca/cargo-tauri/package.nix

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,18 @@
99
nix-update-script,
1010
openssl,
1111
pkg-config,
12-
testers,
1312
webkitgtk_4_1,
1413
}:
1514

1615
rustPlatform.buildRustPackage rec {
1716
pname = "tauri";
18-
version = "2.1.0";
17+
version = "2.1.1";
1918

2019
src = fetchFromGitHub {
2120
owner = "tauri-apps";
2221
repo = "tauri";
2322
rev = "refs/tags/tauri-v${version}";
24-
hash = "sha256-n1rSffVef9G9qtLyheuK5k6anAHsZANSu0C73QDdg2o=";
23+
hash = "sha256-HPmViOowP1xAjDJ89YS0BTjNnKI1P0L777ywkqAhhc4=";
2524
};
2625

2726
cargoLock = {
@@ -49,7 +48,6 @@ rustPlatform.buildRustPackage rec {
4948

5049
tests = {
5150
hook = callPackage ./test-app.nix { };
52-
version = testers.testVersion { package = cargo-tauri; };
5351
};
5452

5553
updateScript = nix-update-script {
Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
11
{
22
lib,
33
stdenv,
4-
rustPlatform,
54
cargo-tauri,
6-
darwin,
75
glib-networking,
86
libayatana-appindicator,
97
nodejs,
108
openssl,
119
pkg-config,
1210
pnpm_9,
11+
rustPlatform,
1312
webkitgtk_4_1,
1413
wrapGAppsHook4,
1514
}:
1615

17-
rustPlatform.buildRustPackage rec {
16+
let
17+
pnpm = pnpm_9;
18+
in
19+
stdenv.mkDerivation (finalAttrs: {
1820
pname = "test-app";
1921
inherit (cargo-tauri) version src;
2022

21-
cargoLock = {
22-
inherit (cargo-tauri.cargoDeps) lockFile;
23-
outputHashes = {
24-
"schemars_derive-0.8.21" = "sha256-AmxBKZXm2Eb+w8/hLQWTol5f22uP8UqaIh+LVLbS20g=";
25-
};
26-
};
27-
28-
postPatch = ''
23+
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
2924
substituteInPlace $cargoDepsCopy/libappindicator-sys-*/src/lib.rs \
3025
--replace "libayatana-appindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1"
3126
'';
3227

33-
pnpmDeps = pnpm_9.fetchDeps {
34-
inherit
28+
inherit (cargo-tauri) cargoDeps;
29+
30+
pnpmDeps = pnpm.fetchDeps {
31+
inherit (finalAttrs)
3532
pname
3633
version
3734
src
@@ -45,7 +42,9 @@ rustPlatform.buildRustPackage rec {
4542

4643
nodejs
4744
pkg-config
48-
pnpm_9.configHook
45+
pnpm.configHook
46+
rustPlatform.cargoCheckHook
47+
rustPlatform.cargoSetupHook
4948
wrapGAppsHook4
5049
];
5150

@@ -55,9 +54,6 @@ rustPlatform.buildRustPackage rec {
5554
glib-networking
5655
libayatana-appindicator
5756
webkitgtk_4_1
58-
]
59-
++ lib.optionals stdenv.isDarwin [
60-
darwin.apple_sdk.frameworks.WebKit
6157
];
6258

6359
buildAndTestSubdir = "examples/api/src-tauri";
@@ -74,4 +70,4 @@ rustPlatform.buildRustPackage rec {
7470
meta = {
7571
inherit (cargo-tauri.hook.meta) platforms;
7672
};
77-
}
73+
})

0 commit comments

Comments
 (0)