1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "jmespath";
5 version = "0.4.0";
6
7 src = fetchFromGitHub {
8 owner = "jmespath";
9 repo = "go-jmespath";
10 rev = "v${version}";
11 sha256 = "sha256-djA/7TCmAqCsht28b1itoiWd8Mtdsn/5uLxyT23K/qM=";
12 };
13
14 vendorHash = "sha256-Q12muprcKB7fCxemESb4sGPyYIdmgOt3YXVUln7oabw=";
15
16 excludedPackages = [
17 "./internal/testify"
18 ];
19
20 ldflags = [ "-s" "-w" ];
21
22 meta = with lib; {
23 description = "A JMESPath implementation in Go";
24 homepage = "https://github.com/jmespath/go-jmespath";
25 license = licenses.asl20;
26 maintainers = with maintainers; [ cransom ];
27 mainProgram = "jpgo";
28 };
29}