sketch for key code transfer
This commit is contained in:
parent
966fdbbd50
commit
a2b086a779
23 changed files with 2231 additions and 229 deletions
68
flake.nix
68
flake.nix
|
|
@ -65,52 +65,62 @@
|
|||
fnx.targets.wasm32-unknown-unknown.latest.rust-std
|
||||
];
|
||||
|
||||
wasmBindgen =
|
||||
with pkgs;
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "wasm-bindgen-cli";
|
||||
version = "0.2.114";
|
||||
|
||||
wasmBindgen = with pkgs; rustPlatform.buildRustPackage rec {
|
||||
pname = "wasm-bindgen-cli";
|
||||
version = "0.2.114";
|
||||
src = fetchCrate {
|
||||
pname = pname;
|
||||
version = version;
|
||||
hash = "sha256-xrCym+rFY6EUQFWyWl6OPA+LtftpUAE5pIaElAIVqW0=";
|
||||
};
|
||||
|
||||
src = fetchCrate {
|
||||
pname = pname;
|
||||
version = version;
|
||||
hash = "sha256-xrCym+rFY6EUQFWyWl6OPA+LtftpUAE5pIaElAIVqW0=";
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit src;
|
||||
inherit (src) pname version;
|
||||
hash = "sha256-Z8+dUXPQq7S+Q7DWNr2Y9d8GMuEdSnq00quUR0wDNPM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
curl
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ nodejs_latest ];
|
||||
|
||||
# tests require it to be ran in the wasm-bindgen monorepo
|
||||
doCheck = false;
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoVendor {
|
||||
inherit src;
|
||||
inherit (src) pname version;
|
||||
hash = "sha256-Z8+dUXPQq7S+Q7DWNr2Y9d8GMuEdSnq00quUR0wDNPM=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
curl
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ nodejs_latest ];
|
||||
|
||||
# tests require it to be ran in the wasm-bindgen monorepo
|
||||
doCheck = false;
|
||||
};
|
||||
in
|
||||
{
|
||||
name = "my-project";
|
||||
|
||||
env = {
|
||||
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
|
||||
};
|
||||
|
||||
packages = [
|
||||
pkgs.dioxus-cli
|
||||
pkgs.cargo-expand
|
||||
pkgs.cargo-deny
|
||||
pkgs.cargo-nextest
|
||||
pkgs.typos
|
||||
pkgs.binaryen #wasm-opt
|
||||
pkgs.binaryen # wasm-opt
|
||||
rustToolchain
|
||||
fnx.rust-analyzer
|
||||
wasmBindgen
|
||||
|
||||
pkgs.libxkbcommon
|
||||
|
||||
pkgs.clang
|
||||
pkgs.llvmPackages.libclang
|
||||
|
||||
];
|
||||
|
||||
scripts.checkall.exec = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue