Devops stuff

This commit is contained in:
2025-11-03 17:10:29 -08:00
parent 30649488bb
commit da0d944836
6 changed files with 106 additions and 4 deletions

31
shell.nix Normal file
View File

@@ -0,0 +1,31 @@
{
pkgs ? import <nixpkgs> { },
}:
let
rust-toolchain = pkgs.rust-bin.stable."1.73.0".default;
rust-with-wasm-target = rust-toolchain.override {
targets = [ "wasm32-unknown-unknown" ];
};
in
pkgs.mkShell {
buildInputs = with pkgs; [
rust-with-wasm-target
wasm-bindgen-cli
wasm-pack
bun
clang
pkg-config
openssl
];
shellHook = ''
# Set the linker for the wasm target to clang to avoid potential issues
export CARGO_TARGET_WASM32_UNKNOWN_UNKNOWN_LINKER="${pkgs.clang}/bin/clang"
echo "Nix shell is ready with Cargo, wasm-bindgen, and Bun."
'';
}