lol
1{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "jaq";
5 version = "0.9.0";
6
7 src = fetchFromGitHub {
8 owner = "01mf02";
9 repo = "jaq";
10 rev = "v${version}";
11 sha256 = "sha256-Y1QLNiAeHKYsSbFW235mdTiHyQFBQQsO+FtuFxDX9Hs=";
12 };
13
14 cargoSha256 = "sha256-+9uy5R/dO2T/6dRhtYlPCKfosaYua0JvbECvMacc3XA=";
15
16 buildInputs = lib.optionals stdenv.isDarwin [ Security ];
17
18 meta = with lib; {
19 description = "A jq clone focused on correctness, speed and simplicity";
20 homepage = "https://github.com/01mf02/jaq";
21 license = licenses.mit;
22 maintainers = with maintainers; [ siraben ];
23 };
24}