This commit is contained in:
Robin Appelman 2022-09-10 16:46:33 +02:00
commit 96a8d88394
27 changed files with 204047 additions and 0 deletions

43
flake.nix Normal file
View file

@ -0,0 +1,43 @@
{
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/release-22.05";
rust-overlay.url = "github:oxalica/rust-overlay";
};
outputs = {
self,
nixpkgs,
utils,
rust-overlay,
}:
utils.lib.eachDefaultSystem (system: let
overlays = [ (import rust-overlay) ];
pkgs = import nixpkgs {
inherit system overlays;
};
in rec {
devShell = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(rust-bin.stable.latest.default.override {
targets = [ "wasm32-unknown-unknown" ];
})
rustc
cargo
bacon
cargo-edit
cargo-outdated
clippy
cargo-audit
hyperfine
valgrind
wasm-pack
pkg-config
nodejs
];
buildInputs = with pkgs; [openssl];
OPENSSL_NO_VENDOR = 1;
};
});
}