Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions pkgs/development/tools/htmlq/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:

rustPlatform.buildRustPackage rec {
pname = "htmlq";
version = "0.2.0";

src = fetchFromGitHub {
owner = "mgdm";
repo = "htmlq";
rev = "v${version}";
sha256 = "sha256-Q2zjrHKFWowx2yB1cdGxPnNnc8yQJz65HaX0yIqbHks=";
};

cargoSha256 = "sha256-pPtKPVSdEtEPmQPpNRJ4uyguDRAW0YvKgdUw5OAtbjA=";

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 ];
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5973,6 +5973,10 @@ with pkgs;

html-proofer = callPackage ../tools/misc/html-proofer { };

htmlq = callPackage ../development/tools/htmlq {
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
inherit (pkgs.darwin.apple_sdk.frameworks) Security;
inherit (darwin.apple_sdk.frameworks) Security;

I think pkgs is not required.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I just saw this comment. Looks like there are several occurrences of this in all-packages.nix so a file-wide change might be in order.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, doesn't look like there is much of a convention.

Looks like there are several occurrences of this in all-packages.nix so a file-wide change might be in order.

Good call.

};

htpdate = callPackage ../tools/networking/htpdate { };

http-prompt = callPackage ../tools/networking/http-prompt { };
Expand Down