mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-06-07 03:29:56 -07:00
28 lines
714 B
Nix
28 lines
714 B
Nix
{
|
|
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 ];
|
|
};
|
|
});
|
|
}
|