at 24.11-pre 41 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, rustPlatform 5, Security 6}: 7 8rustPlatform.buildRustPackage rec { 9 pname = "jsonwatch"; 10 version = "0.6.0"; 11 12 src = fetchFromGitHub { 13 owner = "dbohdan"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "sha256-TGW04P8t0mAXza7I7qp6QRXA/MDE3m1dlRC7bMf2dSk="; 17 }; 18 19 cargoSha256 = "sha256-Gjb7v3kz11iOml3Ykxhy43KNxzaprgMbb5DpPNChLTc="; 20 21 buildInputs = lib.optionals stdenv.isDarwin [ 22 Security 23 ]; 24 25 meta = with lib; { 26 description = "Like watch -d but for JSON"; 27 longDescription = '' 28 jsonwatch is a command line utility with which you can track 29 changes in JSON data delivered by a shell command or a web 30 (HTTP/HTTPS) API. jsonwatch requests data from the designated 31 source repeatedly at a set interval and displays the 32 differences when the data changes. 33 ''; 34 homepage = "https://github.com/dbohdan/jsonwatch"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ fab ]; 37 # never built on aarch64-darwin since first introduction in nixpkgs 38 broken = stdenv.isDarwin && stdenv.isAarch64; 39 mainProgram = "jsonwatch"; 40 }; 41}