From d5ee0a27d0690012375c66c3947902d020e31fe9 Mon Sep 17 00:00:00 2001 From: Casey Ransom Date: Wed, 20 Jul 2016 17:24:46 -0400 Subject: [PATCH] jp: init at 0.1.2 A json parson tool based on the JMESPATH query language. http://jmespath.org/ --- pkgs/development/tools/jmespath/default.nix | 22 +++++++++++++++++++++ pkgs/development/tools/jp/default.nix | 22 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 3 files changed, 48 insertions(+) create mode 100644 pkgs/development/tools/jmespath/default.nix create mode 100644 pkgs/development/tools/jp/default.nix diff --git a/pkgs/development/tools/jmespath/default.nix b/pkgs/development/tools/jmespath/default.nix new file mode 100644 index 000000000000..aafb5f541443 --- /dev/null +++ b/pkgs/development/tools/jmespath/default.nix @@ -0,0 +1,22 @@ +{ stdenv, lib, buildGoPackage, fetchFromGitHub }: + +buildGoPackage rec { + name = "jmespath-${version}"; + version = "0.2.2"; + rev = "${version}"; + + goPackagePath = "github.com/jmespath/go-jmespath"; + + src = fetchFromGitHub { + inherit rev; + owner = "jmespath"; + repo = "go-jmespath"; + sha256 = "0f4j0m44limnjd6q5fk152g6jq2a5cshcdms4p3a1br8pl9wp5fb"; + }; + meta = with stdenv.lib; { + description = "A JMESPath implementation in Go"; + homepage = "https://github.com/jmespath/go-jmespath"; + maintainers = with maintainers; [ cransom ]; + license = licenses.asl20; + }; +} diff --git a/pkgs/development/tools/jp/default.nix b/pkgs/development/tools/jp/default.nix new file mode 100644 index 000000000000..2cae6a7fcc87 --- /dev/null +++ b/pkgs/development/tools/jp/default.nix @@ -0,0 +1,22 @@ +{ stdenv, lib, buildGoPackage, fetchFromGitHub, jmespath }: + +buildGoPackage rec { + name = "jp-${version}"; + version = "0.1.2"; + rev = "${version}"; + + goPackagePath = "github.com/jmespath/jp"; + + src = fetchFromGitHub { + inherit rev; + owner = "jmespath"; + repo = "jp"; + sha256 = "1i0jl0c062crigkxqx8zpyqliz8j4d37y95cna33jl777kx42r6h"; + }; + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bb98625fc406..0309cfac3daa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2133,6 +2133,8 @@ in jing = callPackage ../tools/text/xml/jing { }; + jmespath = callPackage ../development/tools/jmespath { }; + jmtpfs = callPackage ../tools/filesystems/jmtpfs { }; jnettop = callPackage ../tools/networking/jnettop { }; @@ -2141,6 +2143,8 @@ in gcc = gcc49; # doesn't build with gcc5 }; + jp = callPackage ../development/tools/jp { }; + jp2a = callPackage ../applications/misc/jp2a { }; jpegoptim = callPackage ../applications/graphics/jpegoptim { };