This commit is contained in:
Robin Appelman 2022-07-31 13:40:43 +02:00
commit f3f035c5d0
4 changed files with 127 additions and 0 deletions

31
flake.nix Normal file
View file

@ -0,0 +1,31 @@
{
inputs = {
nixpkgs.url = "nixpkgs/release-22.05";
utils.url = "github:numtide/flake-utils";
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 {
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
(rust-bin.stable.latest.default.override {
targets = [ "wasm32-unknown-unknown" ];
})
bacon
wasm-pack
nodejs
];
};
});
}