2021-09-18 10:52:07 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "htmlq";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "0.4.0";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mgdm";
|
|
|
|
repo = "htmlq";
|
|
|
|
rev = "v${version}";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-kZtK2QuefzfxxuE1NjXphR7otr+RYfMif/RSpR6TxY0=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
cargoHash = "sha256-r9EnQQPGpPIcNYb1eqGrMnRdh0snIa5iVsTYTI+YErY=";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Like jq, but for HTML";
|
|
|
|
homepage = "https://github.com/mgdm/htmlq";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben nerdypepper ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "htmlq";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
}
|