Skip to content

Commit c3fe31d

Browse files
committed
dioxus shell works for the web and linux desktop targets
1 parent e00b5d1 commit c3fe31d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

rust/flake.nix

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@
2020
flake-utils.lib.eachDefaultSystem (
2121
system: let
2222
pkgs = unstable.legacyPackages.${system};
23+
wasm-bindgen-cli-0_2_106 = with pkgs;
24+
rustPlatform.buildRustPackage rec {
25+
pname = "wasm-bindgen-cli";
26+
version = "0.2.106";
27+
src = pkgs.fetchCrate {
28+
pname = "wasm-bindgen-cli";
29+
version = "0.2.106";
30+
sha256 = "sha256-M6WuGl7EruNopHZbqBpucu4RWz44/MSdv6f0zkYw+44=";
31+
};
32+
cargoLock.lockFile = "${src}/Cargo.lock";
33+
nativeBuildInputs = [pkg-config];
34+
buildInputs =
35+
[openssl]
36+
++ lib.optionals stdenv.hostPlatform.isDarwin [curl];
37+
nativeCheckInputs = [nodejs_latest];
38+
doCheck = false;
39+
};
2340
shell = {
2441
packages = with pkgs; [
2542
alejandra
@@ -33,6 +50,28 @@
3350
rustfmt
3451
wasmtime
3552
license-generator
53+
dioxus-cli
54+
# web
55+
lld
56+
clang
57+
wasm-bindgen-cli-0_2_106
58+
# linux
59+
pkg-config
60+
webkitgtk_4_1
61+
openssl
62+
xdotool
63+
libayatana-appindicator
64+
librsvg
65+
gtk3
66+
gdk-pixbuf
67+
cairo
68+
pango
69+
# fonts
70+
noto-fonts
71+
noto-fonts-cjk-sans
72+
noto-fonts-emoji
73+
liberation_ttf
74+
dejavu_fonts
3675
];
3776
};
3877
mkRustPkg = pkg:

0 commit comments

Comments
 (0)