tmux-githop: init at 0.1.0

This commit is contained in:
Callum Leslie 2025-09-10 15:43:14 +01:00
parent d284b8ae4d
commit 74cddbd9a3
Signed by: cleslie
GPG key ID: D382C4AFEECEAA90

34
pkgs/tmux-githop.nix Normal file
View file

@ -0,0 +1,34 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "tmux-githop";
version = "0.1.0";
src = fetchFromGitHub {
owner = "callumio";
repo = "tmux-githop";
rev = "v${version}";
hash = "sha256-ydxaEIPTJrQtAMaF14vFhC1qlmVGiD/4WQ85qOB+jDE=";
};
vendorHash = "sha256-xTZBpNc7P8jLCPpsv3cTclVNtLwbW3O/LcF4mYAzXsM=";
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
"-X=main.date=1970-01-01T00:00:00Z"
];
meta = {
description = "Fast tmux session hopping between git repos";
homepage = "https://github.com/callumio/tmux-githop";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [callumio];
mainProgram = "tmux-githop";
};
}