This commit is contained in:
2025-09-01 23:08:49 +10:00
parent a2d1355464
commit 5a45ed1f2b
2 changed files with 18 additions and 9 deletions

View File

@@ -23,13 +23,22 @@
nativeBuildInputs = nativeBuildInputs;
};
# devShells.${system}.default = pkgs.mkShell {
# packages = buildInputs;
# inputsFrom = nativeBuildInputs;
#
# shellHook = ''
# exec zsh
# '';
# };
devShells.${system}.default = pkgs.mkShell {
inputsFrom = [self.packages.${system}.default];
packages = with pkgs; [
rustc
cargo
rustfmt
rust-analyzer
zsh
];
shellHook = ''
export SHELL=${pkgs.zsh}/bin/zsh
# jump into zsh if we didn't already start in it
[ -z "$ZSH_VERSION" ] && exec ${pkgs.zsh}/bin/zsh -l
'';
};
};
}

View File

@@ -62,7 +62,7 @@ fn main() {
}
// let rt = Runtime::new().unwrap();
// let handle = rt.handle().clone();
let handle = rt.handle().clone();
// let addr = "127.0.0.1:7050";
//
// let socket = WsServer::bind(addr, handle);