File tree Expand file tree Collapse file tree 3 files changed +17
-23
lines changed
pkgs/by-name/ca/cargo-tauri Expand file tree Collapse file tree 3 files changed +17
-23
lines changed Original file line number Diff line number Diff line change 99 nix-update-script ,
1010 openssl ,
1111 pkg-config ,
12- testers ,
1312 webkitgtk_4_1 ,
1413} :
1514
1615rustPlatform . 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 {
Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments