Files
nixpkgs/pkgs/by-name/js/jsonwatch/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

36 lines
1018 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "jsonwatch";
version = "0.11.0";
src = fetchFromGitHub {
owner = "dbohdan";
repo = "jsonwatch";
tag = "v${version}";
hash = "sha256-qhVqAhUAbLb5wHnLNHr6BxffyH1G5B09eOJQoqSzWEk=";
};
cargoHash = "sha256-D29pmt97DYfpYa9EwK+IlggR3zQFGzOy/Ky01UGI3tg=";
meta = with lib; {
description = "Like watch -d but for JSON";
longDescription = ''
jsonwatch is a command line utility with which you can track
changes in JSON data delivered by a shell command or a web
(HTTP/HTTPS) API. jsonwatch requests data from the designated
source repeatedly at a set interval and displays the
differences when the data changes.
'';
homepage = "https://github.com/dbohdan/jsonwatch";
changelog = "https://github.com/dbohdan/jsonwatch/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "jsonwatch";
};
}