This commit is contained in:
2025-01-27 00:00:47 -08:00
commit 485e657296
21 changed files with 1548 additions and 0 deletions

27
flake.nix Normal file
View File

@ -0,0 +1,27 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system};
in with pkgs; {
packages.default = rustPlatform.buildRustPackage {
inherit ((lib.importTOML ./Cargo.toml).package) name;
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
nativeBuildInputs = [ pkg-config ];
};
devShells.default = mkShell {
nativeBuildInputs = [ pkg-config ];
buildInputs = [ rustc cargo wasm-bindgen-cli lld ];
};
});
}