nixpkgs/pkgs/development/tools/jmespath/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
680 B
Nix
Raw Normal View History

2022-05-02 04:07:23 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
2022-05-02 04:07:23 +01:00
buildGoModule rec {
pname = "jmespath";
2022-05-02 04:07:23 +01:00
version = "0.4.0";
src = fetchFromGitHub {
owner = "jmespath";
repo = "go-jmespath";
2022-05-02 04:07:23 +01:00
rev = "v${version}";
sha256 = "sha256-djA/7TCmAqCsht28b1itoiWd8Mtdsn/5uLxyT23K/qM=";
};
2022-05-02 04:07:23 +01:00
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";
};
}