mirror of
https://codeberg.org/bunbun/bunbun.dev
synced 2025-06-07 17:09:51 -07:00
initial
This commit is contained in:
27
flake.nix
Normal file
27
flake.nix
Normal 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 ];
|
||||
};
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user