basic cursor moving
This commit is contained in:
parent
e4d51f09a1
commit
966fdbbd50
29 changed files with 7052 additions and 52 deletions
49
flake.nix
49
flake.nix
|
|
@ -56,15 +56,46 @@
|
|||
devenv.shells.default =
|
||||
let
|
||||
fnx = inputs'.fenix.packages;
|
||||
rustToolchain = fnx.beta.toolchain;
|
||||
rustToolchain = fnx.combine [
|
||||
fnx.complete.cargo
|
||||
fnx.complete.clippy
|
||||
fnx.complete.rust-src
|
||||
fnx.complete.rustc
|
||||
fnx.complete.rustfmt
|
||||
fnx.targets.wasm32-unknown-unknown.latest.rust-std
|
||||
];
|
||||
|
||||
# rustToolchain = fnx.combine [
|
||||
# fnx.complete.cargo
|
||||
# fnx.complete.clippy
|
||||
# fnx.complete.rust-src
|
||||
# fnx.complete.rustc
|
||||
# fnx.complete.rustfmt
|
||||
# ];
|
||||
|
||||
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=";
|
||||
};
|
||||
|
||||
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";
|
||||
|
|
@ -75,8 +106,10 @@
|
|||
pkgs.cargo-deny
|
||||
pkgs.cargo-nextest
|
||||
pkgs.typos
|
||||
pkgs.binaryen #wasm-opt
|
||||
rustToolchain
|
||||
fnx.rust-analyzer
|
||||
wasmBindgen
|
||||
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue