2024-03-23 21:58:32 +00:00
|
|
|
{
|
2024-03-25 22:50:42 +00:00
|
|
|
description = "Rust development environment for bunbun";
|
2024-03-23 21:58:32 +00:00
|
|
|
inputs = {
|
|
|
|
utils.url = "github:numtide/flake-utils";
|
|
|
|
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
};
|
|
|
|
|
2024-03-25 22:51:23 +00:00
|
|
|
outputs = { self, nixpkgs-unstable, utils, ... }:
|
2024-03-23 21:58:32 +00:00
|
|
|
utils.lib.eachDefaultSystem
|
|
|
|
(
|
|
|
|
system: let
|
2024-03-25 22:50:42 +00:00
|
|
|
pkgs = import nixpkgs-unstable { inherit system; };
|
2024-03-23 21:58:32 +00:00
|
|
|
in rec
|
|
|
|
{
|
2024-03-25 22:52:16 +00:00
|
|
|
packages.default = pkgs.rustPlatform.buildRustPackage {
|
2024-03-23 21:58:32 +00:00
|
|
|
pname = "bunbun";
|
2024-10-29 21:23:09 +00:00
|
|
|
version = "1.5.0";
|
2024-03-23 21:58:32 +00:00
|
|
|
src = ./.;
|
|
|
|
cargoLock.lockFile = ./Cargo.lock;
|
|
|
|
};
|
|
|
|
apps.default = utils.lib.mkApp {drv = packages.default;};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|