2023-08-04 22:07:22 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, darwin
|
|
|
|
}:
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "jaq";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.1.2";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "01mf02";
|
|
|
|
repo = "jaq";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-Wz10goMJYWbFak4v10W6ez+z+T+ohG06HU+rS8AXQqg=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-fvuwn5pA33QE4YplG5VAkHF1MgwRni0nbA6B2JkNndU=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A jq clone focused on correctness, speed and simplicity";
|
|
|
|
homepage = "https://github.com/01mf02/jaq";
|
2023-08-04 22:07:22 +00:00
|
|
|
changelog = "https://github.com/01mf02/jaq/releases/tag/${src.rev}";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = licenses.mit;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ figsoda siraben ];
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "jaq";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
}
|