about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/jmespath/default.nix
blob: 6224a2def078acc29551914caebeb6389f5bd284 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "jmespath";
  version = "0.4.0";

  src = fetchFromGitHub {
    owner = "jmespath";
    repo = "go-jmespath";
    rev = "v${version}";
    sha256 = "sha256-djA/7TCmAqCsht28b1itoiWd8Mtdsn/5uLxyT23K/qM=";
  };

  vendorSha256 = "sha256-Q12muprcKB7fCxemESb4sGPyYIdmgOt3YXVUln7oabw=";

  excludedPackages = [
    "./internal/testify"
  ];

  ldflags = [ "-s" "-w" ];

  meta = with lib; {
    description = "A JMESPath implementation in Go";
    homepage = "https://github.com/jmespath/go-jmespath";
    license = licenses.asl20;
    maintainers = with maintainers; [ cransom ];
    mainProgram = "jpgo";
  };
}