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

23 lines
579 B
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "jp";
2020-06-14 19:12:39 +01:00
version = "0.1.3";
2019-09-09 00:38:31 +01:00
rev = version;
goPackagePath = "github.com/jmespath/jp";
src = fetchFromGitHub {
inherit rev;
owner = "jmespath";
repo = "jp";
2020-06-14 19:12:39 +01:00
sha256 = "0fdbnihbd0kq56am3bmh2zrfk4fqjslcbm48malbgmpqw3a5nvpi";
};
meta = with stdenv.lib; {
description = "A command line interface to the JMESPath expression language for JSON";
homepage = "https://github.com/jmespath/jp";
maintainers = with maintainers; [ cransom ];
license = licenses.asl20;
};
}