From c87abaa0f77effca6757145631be78fd5cc93a11 Mon Sep 17 00:00:00 2001 From: Ben Siraphob Date: Sun, 25 Sep 2022 01:39:26 -0500 Subject: [PATCH] jaq: init at 0.8.0 --- pkgs/development/tools/jaq/default.nix | 24 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 28 insertions(+) create mode 100644 pkgs/development/tools/jaq/default.nix diff --git a/pkgs/development/tools/jaq/default.nix b/pkgs/development/tools/jaq/default.nix new file mode 100644 index 000000000000..9c28cdf73994 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 85cafda6b282..454f8ec6f0b0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7866,6 +7866,10 @@ with pkgs; usePulseaudio = true; }; + jaq = callPackage ../development/tools/jaq { + inherit (darwin.apple_sdk.frameworks) Security; + }; + jasmin-compiler = callPackage ../development/compilers/jasmin-compiler { }; jazzy = callPackage ../development/tools/jazzy { };