about summary refs log tree commit diff
path: root/pkgs/development/tools/jaq
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2022-09-25 01:39:26 -0500
committerBen Siraphob <bensiraphob@gmail.com>2022-09-25 01:40:03 -0500
commitc87abaa0f77effca6757145631be78fd5cc93a11 (patch)
tree1a85546584ed5f950261fe6a29083f22308085b0 /pkgs/development/tools/jaq
parent84e79cfbfcefbf90e71ed8921fb424d5cfc5211b (diff)
jaq: init at 0.8.0
Diffstat (limited to 'pkgs/development/tools/jaq')
-rw-r--r--pkgs/development/tools/jaq/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/jaq/default.nix b/pkgs/development/tools/jaq/default.nix
new file mode 100644
index 0000000000000..9c28cdf73994c
--- /dev/null
+++ b/pkgs/development/tools/jaq/default.nix
@@ -0,0 +1,24 @@
+{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "jaq";
+  version = "0.8.0";
+
+  src = fetchFromGitHub {
+    owner = "01mf02";
+    repo = "jaq";
+    rev = "v${version}";
+    sha256 = "sha256-4WCVXrw/v3cGsl7S1nGqKmWrIHeM/ODCXQBxQJgZLjw=";
+  };
+
+  cargoSha256 = "sha256-D+Wpzgj05PJcMlGS9eL43SdncHO/q1Wt00gvPlC7ZAE=";
+
+  buildInputs = lib.optionals stdenv.isDarwin [ Security ];
+
+  meta = with lib; {
+    description = "A jq clone focused on correctness, speed and simplicity";
+    homepage = "https://github.com/01mf02/jaq";
+    license = licenses.mit;
+    maintainers = with maintainers; [ siraben ];
+  };
+}