bunbun/flake.nix

26 lines
686 B
Nix
Raw Normal View History

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
{
packages.default =
2024-03-25 22:51:03 +00:00
pkgs.makeRustPlatform.buildRustPackage {
2024-03-23 21:58:32 +00:00
pname = "bunbun";
2024-03-25 11:27:11 +00:00
version = "1.3.0";
2024-03-23 21:58:32 +00:00
src = ./.;
cargoLock.lockFile = ./Cargo.lock;
};
apps.default = utils.lib.mkApp {drv = packages.default;};
}
);
}