at 24.11-pre 33 lines 800 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, stdenv 5, darwin 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "jaq"; 10 version = "1.3.0"; 11 12 src = fetchFromGitHub { 13 owner = "01mf02"; 14 repo = "jaq"; 15 rev = "v${version}"; 16 hash = "sha256-QXlHiVlKx9qmW5Cw4IGzjuUSUfoc9IvA5ZkTc1Ev37Q="; 17 }; 18 19 cargoHash = "sha256-9fv8Z9AE9GV/Bq+iAsxUkD/CS25/kOBKKS4SAke/tFk="; 20 21 buildInputs = lib.optionals stdenv.isDarwin [ 22 darwin.apple_sdk.frameworks.Security 23 ]; 24 25 meta = with lib; { 26 description = "A jq clone focused on correctness, speed and simplicity"; 27 homepage = "https://github.com/01mf02/jaq"; 28 changelog = "https://github.com/01mf02/jaq/releases/tag/${src.rev}"; 29 license = licenses.mit; 30 maintainers = with maintainers; [ figsoda siraben ]; 31 mainProgram = "jaq"; 32 }; 33}