{
description = "CLI tool to enhance git worktree and jj workspace with automated setup";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "kabu";
version = "0.6.0";
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
meta = with pkgs.lib; {
description = "CLI tool to enhance git worktree and jj workspace with automated setup";
homepage = "https://github.com/h-michael/kabu";
license = with licenses; [ mit asl20 ];
maintainers = [ "h-michael" ];
};
};
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
cargo
rustc
rust-analyzer
clippy
rustfmt
];
};
}
);
}