nixpkgs/pkgs/development/tools/jaq/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
800 B
Nix
Raw Normal View History

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, darwin
}:
2022-09-25 09:39:26 +03:00
rustPlatform.buildRustPackage rec {
pname = "jaq";
2024-01-23 11:26:34 +03:00
version = "1.3.0";
2022-09-25 09:39:26 +03:00
src = fetchFromGitHub {
owner = "01mf02";
repo = "jaq";
rev = "v${version}";
2024-01-23 11:26:34 +03:00
hash = "sha256-QXlHiVlKx9qmW5Cw4IGzjuUSUfoc9IvA5ZkTc1Ev37Q=";
2022-09-25 09:39:26 +03:00
};
2024-01-23 11:26:34 +03:00
cargoHash = "sha256-9fv8Z9AE9GV/Bq+iAsxUkD/CS25/kOBKKS4SAke/tFk=";
2022-09-25 09:39:26 +03:00
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
2022-09-25 09:39:26 +03:00
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}";
2022-09-25 09:39:26 +03:00
license = licenses.mit;
maintainers = with maintainers; [ figsoda siraben ];
2023-08-05 01:11:04 +03:00
mainProgram = "jaq";
2022-09-25 09:39:26 +03:00
};
}