jetbrains: useFetchCargoVendor (#377020)
[NixPkgs.git] / pkgs / by-name / ga / gat / package.nix
blobc13f6bf7543be1fb468ca5d7d6d7271bce7f5eec
1 { lib
2 , buildGoModule
3 , fetchFromGitHub
4 }:
6 buildGoModule rec {
7   pname = "gat";
8   version = "0.20.0";
10   src = fetchFromGitHub {
11     owner = "koki-develop";
12     repo = "gat";
13     tag = "v${version}";
14     hash = "sha256-xO0MUbryuglbRIbBEbKJGYPPaJD8j4hNpIR+Kqc302s=";
15   };
17   vendorHash = "sha256-z2Hbn1debyJn/nTKVC2y3vd6V7XQyHFPNA6hCVuYzgU=";
19   env.CGO_ENABLED = 0;
21   ldflags = [
22     "-s"
23     "-w"
24     "-X github.com/koki-develop/gat/cmd.version=v${version}"
25   ];
27   meta = with lib; {
28     description = "Cat alternative written in Go";
29     license = licenses.mit;
30     homepage = "https://github.com/koki-develop/gat";
31     maintainers = with maintainers; [ themaxmur ];
32     mainProgram = "gat";
33   };