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