mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
35 lines
710 B
Nix
35 lines
710 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gat";
|
|
version = "0.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "koki-develop";
|
|
repo = "gat";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-QIC3SvuCu8HIwxieNnSsbBa8nTL5aL46eUDpti2gmJU=";
|
|
};
|
|
|
|
vendorHash = "sha256-xLoLLn9lsEZ+SjIbVRzhwM9mXkltfA0Zoiz1T7hpTEc=";
|
|
|
|
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";
|
|
};
|
|
}
|