mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
doc/tauri: fix example, make openssl linux-only
This commit is contained in:
parent
c76ede329c
commit
0605191248
1 changed files with 8 additions and 9 deletions
|
@ -30,8 +30,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
|
|
||||||
# Assuming our app's frontend uses `npm` as a package manager
|
# Assuming our app's frontend uses `npm` as a package manager
|
||||||
npmDeps = fetchNpmDeps {
|
npmDeps = fetchNpmDeps {
|
||||||
name = "${finalAttrs.pname}-npm-deps-${finalAttrs.version}";
|
name = "${finalAttrs.pname}-${finalAttrs.version}-npm-deps";
|
||||||
inherit src;
|
inherit (finalAttrs) src;
|
||||||
hash = "...";
|
hash = "...";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -51,17 +51,16 @@ rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
wrapGAppsHook4
|
wrapGAppsHook4
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs =
|
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
|
||||||
[ openssl ]
|
glib-networking # Most Tauri apps need networking
|
||||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
openssl
|
||||||
glib-networking # Most Tauri apps need networking
|
webkitgtk_4_1
|
||||||
webkitgtk_4_1
|
];
|
||||||
];
|
|
||||||
|
|
||||||
# Set our Tauri source directory
|
# Set our Tauri source directory
|
||||||
cargoRoot = "src-tauri";
|
cargoRoot = "src-tauri";
|
||||||
# And make sure we build there too
|
# And make sure we build there too
|
||||||
buildAndTestSubdir = cargoRoot;
|
buildAndTestSubdir = finalAttrs.cargoRoot;
|
||||||
|
|
||||||
# ...
|
# ...
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue