mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
cf82f676a6
Diff: https://github.com/01mf02/jaq/compare/v1.1.2...v1.2.0 Changelog: https://github.com/01mf02/jaq/releases/tag/v1.2.0
34 lines
800 B
Nix
34 lines
800 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "jaq";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "01mf02";
|
|
repo = "jaq";
|
|
rev = "v${version}";
|
|
hash = "sha256-Jc/etdQtJfFmmdxWdJUVQqPjHTCY6ZUAO+ShNJboOq0=";
|
|
};
|
|
|
|
cargoHash = "sha256-TaWD9xpTsNWQt/Wz5PYY0mgFfP5d/Jn3EhcHUywUk3Q=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A jq clone focused on correctness, speed and simplicity";
|
|
homepage = "https://github.com/01mf02/jaq";
|
|
changelog = "https://github.com/01mf02/jaq/releases/tag/${src.rev}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ figsoda siraben ];
|
|
mainProgram = "jaq";
|
|
};
|
|
}
|