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

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

30 lines
755 B
Nix
Raw Normal View History

2022-09-25 06:39:26 +00:00
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "jaq";
2023-03-09 07:53:08 +00:00
version = "0.10.0";
2022-09-25 06:39:26 +00:00
src = fetchFromGitHub {
owner = "01mf02";
repo = "jaq";
rev = "v${version}";
2023-03-09 07:53:08 +00:00
sha256 = "sha256-v3dC5Qi0Op+oFCcbkbK1ZUQxWTEYVvXsc+ye9Kk9y7c=";
2022-09-25 06:39:26 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"regex-syntax-0.6.28" = "sha256-FltQ1TfA4XV+jC3dQZf7soTHc8R/nSwToPGcQUVwVYs=";
};
};
2022-09-25 06:39:26 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
meta = with lib; {
description = "A jq clone focused on correctness, speed and simplicity";
homepage = "https://github.com/01mf02/jaq";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
};
}