summaryrefslogtreecommitdiff
path: root/doc/hooks/tauri.section.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/hooks/tauri.section.md')
-rw-r--r--doc/hooks/tauri.section.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/hooks/tauri.section.md b/doc/hooks/tauri.section.md
index 400e493d7fee..b46b738d5c88 100644
--- a/doc/hooks/tauri.section.md
+++ b/doc/hooks/tauri.section.md
@@ -23,15 +23,15 @@ In Nixpkgs, `cargo-tauri.hook` overrides the default build and install phases.
wrapGAppsHook4,
}:
-rustPlatform.buildRustPackage rec {
- # . . .
+rustPlatform.buildRustPackage (finalAttrs: {
+ # ...
useFetchCargoVendor = true;
cargoHash = "...";
# Assuming our app's frontend uses `npm` as a package manager
npmDeps = fetchNpmDeps {
- name = "${pname}-npm-deps-${version}";
+ name = "${finalAttrs.pname}-npm-deps-${finalAttrs.version}";
inherit src;
hash = "...";
};
@@ -61,8 +61,8 @@ rustPlatform.buildRustPackage rec {
# And make sure we build there too
buildAndTestSubdir = cargoRoot;
- # . . .
-}
+ # ...
+})
```
## Variables controlling cargo-tauri {#tauri-hook-variables-controlling}