38 lines
855 B
Nix
38 lines
855 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
git,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "git-wt";
|
|
version = "0.29.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "k1LoW";
|
|
repo = "git-wt";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-1u0GDC1Sc4Xy4URuM6TnR/ENsdIWa94Ixu3mL6WrmFg=";
|
|
};
|
|
|
|
vendorHash = "sha256-ppbY3ZJo2L/FbWlOiywqk6W4kVDQKkwf5VjRHucb78A=";
|
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/k1LoW/git-wt/version.Version=v${finalAttrs.version}"
|
|
];
|
|
|
|
meta = {
|
|
description = "Git subcommand that makes git worktree simple";
|
|
homepage = "https://github.com/k1LoW/git-wt";
|
|
changelog = "https://github.com/k1LoW/git-wt/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ ryoppippi ];
|
|
mainProgram = "git-wt";
|
|
};
|
|
})
|