nixpkgs/pkgs/by-name/ga/gat/package.nix
2025-06-07 17:44:21 +00:00

35 lines
709 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "gat";
version = "0.24.1";
src = fetchFromGitHub {
owner = "koki-develop";
repo = "gat";
tag = "v${version}";
hash = "sha256-xP7xDuab8QH1PULgF8/FGwDNV/5bYqXkvxgR/Mk4GVw=";
};
vendorHash = "sha256-1uIpgcl+6H7aleW28YE8IidJysEB2n+wt2Dz0kZGNzk=";
env.CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"
"-X github.com/koki-develop/gat/cmd.version=v${version}"
];
meta = with lib; {
description = "Cat alternative written in Go";
license = licenses.mit;
homepage = "https://github.com/koki-develop/gat";
maintainers = with maintainers; [ themaxmur ];
mainProgram = "gat";
};
}