about summary refs log tree commit diff
path: root/pkgs/development/tools/jq
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2013-05-20 11:17:20 +0400
committerMichael Raskin <7c6f434c@mail.ru>2013-05-23 14:41:29 +0400
commitccc11345c945e4cd8c568e17428542d8b0d38f26 (patch)
treee1fdaf226d24ed5e61f0c88bbfd9f633020cc4ec /pkgs/development/tools/jq
parenta453e495116a8cd4971bb6d6265dc8ddf14ca3e3 (diff)
downloadnixlib-ccc11345c945e4cd8c568e17428542d8b0d38f26.tar
nixlib-ccc11345c945e4cd8c568e17428542d8b0d38f26.tar.gz
nixlib-ccc11345c945e4cd8c568e17428542d8b0d38f26.tar.bz2
nixlib-ccc11345c945e4cd8c568e17428542d8b0d38f26.tar.lz
nixlib-ccc11345c945e4cd8c568e17428542d8b0d38f26.tar.xz
nixlib-ccc11345c945e4cd8c568e17428542d8b0d38f26.tar.zst
nixlib-ccc11345c945e4cd8c568e17428542d8b0d38f26.zip
Adding jq JSON processor
Diffstat (limited to 'pkgs/development/tools/jq')
-rw-r--r--pkgs/development/tools/jq/default.nix28
-rw-r--r--pkgs/development/tools/jq/default.upstream1
2 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/tools/jq/default.nix b/pkgs/development/tools/jq/default.nix
new file mode 100644
index 000000000000..f0c32fc0e9ec
--- /dev/null
+++ b/pkgs/development/tools/jq/default.nix
@@ -0,0 +1,28 @@
+{stdenv, fetchurl}:
+let
+  s = # Generated upstream information
+  rec {
+    baseName="jq";
+    version="1.3";
+    name="${baseName}-${version}";
+    hash="1mzy9cj3d19y1m56mwk6slls543gnlhz8302hmnxkhdzdb1j6gv2";
+    url="http://stedolan.github.io/jq/download/source/jq-1.3.tar.gz";
+    sha256="1mzy9cj3d19y1m56mwk6slls543gnlhz8302hmnxkhdzdb1j6gv2";
+  };
+  buildInputs = [
+  ];
+in
+stdenv.mkDerivation {
+  inherit (s) name version;
+  inherit buildInputs;
+  src = fetchurl {
+    inherit (s) url sha256;
+  };
+  meta = {
+    inherit (s) version;
+    description = ''A lightweight and flexible command-line JSON processor'';
+    license = stdenv.lib.licenses.mit ;
+    maintainers = [stdenv.lib.maintainers.raskin];
+    platforms = stdenv.lib.platforms.linux;
+  };
+}
diff --git a/pkgs/development/tools/jq/default.upstream b/pkgs/development/tools/jq/default.upstream
new file mode 100644
index 000000000000..1ad914d717e0
--- /dev/null
+++ b/pkgs/development/tools/jq/default.upstream
@@ -0,0 +1 @@
+url http://stedolan.github.io/jq/download/