at 24.05-pre 662 B view raw
1{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "htmlq"; 5 version = "0.4.0"; 6 7 src = fetchFromGitHub { 8 owner = "mgdm"; 9 repo = "htmlq"; 10 rev = "v${version}"; 11 sha256 = "sha256-kZtK2QuefzfxxuE1NjXphR7otr+RYfMif/RSpR6TxY0="; 12 }; 13 14 cargoSha256 = "sha256-r9EnQQPGpPIcNYb1eqGrMnRdh0snIa5iVsTYTI+YErY="; 15 16 buildInputs = lib.optionals stdenv.isDarwin [ Security ]; 17 18 doCheck = false; 19 20 meta = with lib; { 21 description = "Like jq, but for HTML"; 22 homepage = "https://github.com/mgdm/htmlq"; 23 license = licenses.mit; 24 maintainers = with maintainers; [ siraben nerdypepper ]; 25 }; 26}