diff --git a/doc/hooks/tauri.section.md b/doc/hooks/tauri.section.md index 2908f5ff24f2..290bc3a1d781 100644 --- a/doc/hooks/tauri.section.md +++ b/doc/hooks/tauri.section.md @@ -30,8 +30,8 @@ rustPlatform.buildRustPackage (finalAttrs: { # Assuming our app's frontend uses `npm` as a package manager npmDeps = fetchNpmDeps { - name = "${finalAttrs.pname}-npm-deps-${finalAttrs.version}"; - inherit src; + name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps"; + inherit (finalAttrs) src; hash = "..."; }; @@ -51,17 +51,16 @@ rustPlatform.buildRustPackage (finalAttrs: { wrapGAppsHook4 ]; - buildInputs = - [ openssl ] - ++ lib.optionals stdenv.hostPlatform.isLinux [ - glib-networking # Most Tauri apps need networking - webkitgtk_4_1 - ]; + buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ + glib-networking # Most Tauri apps need networking + openssl + webkitgtk_4_1 + ]; # Set our Tauri source directory cargoRoot = "src-tauri"; # And make sure we build there too - buildAndTestSubdir = cargoRoot; + buildAndTestSubdir = finalAttrs.cargoRoot; # ... })