{
description = "CLI tool for simplified Git worktree management to speed up switching contexts when working collaboratively.";
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 = import nixpkgs {
inherit system;
};
in
{
packages.default = pkgs.rustPlatform.buildRustPackage {
pname = "treeflow";
version = (builtins.fromTOML (builtins.readFile ./Cargo.toml)).package.version;
src = ./.;
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = with pkgs; [
git
];
meta = with pkgs.lib; {
description = "CLI tool for simplified Git worktree management to speed up switching contexts when working collaboratively.";
homepage = "https://gitlab.com/ChriPar/treeflow";
license = licenses.asl20;
};
};
devShell = with pkgs; mkShell {
RUST_SRC_PATH = rustPlatform.rustLibSrc;
buildInputs = [
rustc
cargo
rustfmt
clippy
git
];
};
}
);
}