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";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.5.1";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "01mf02";
|
|
|
|
repo = "jaq";
|
|
|
|
rev = "v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-i/VCr12ThKkT8L2lvzWiPD2Ir1WLcbgGYVsUDRgzGLs=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
cargoHash = "sha256-3F95yv4D2FLuT7+e0LJ0NQ8bjsirCF/qsO0V7WdJS5M=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Jq clone focused on correctness, speed and simplicity";
|
2022-09-30 11:47:45 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|