1{ buildGoModule
2, fetchFromGitHub
3, lib
4}:
5
6buildGoModule rec {
7 pname = "htmltest";
8 version = "0.17.0";
9
10 src = fetchFromGitHub {
11 owner = "wjdp";
12 repo = pname;
13 rev = "v${version}";
14 sha256 = "sha256-8tkk476kGEfHo3XGu3/0r6fhX1c4vkYiUACpw0uEu2g=";
15 };
16
17 vendorSha256 = "sha256-dTn5aYb5IHFbksmhkXSTJtI0Gnn8Uz0PMZPFzFKMo38=";
18
19 ldflags = [
20 "-w"
21 "-s"
22 "-X main.version=${version}"
23 ];
24
25 # tests require network access
26 doCheck = false;
27
28 meta = with lib; {
29 description = "Tool to test generated HTML output";
30 longDescription = ''
31 htmltest runs your HTML output through a series of checks to ensure all your
32 links, images, scripts references work, your alt tags are filled in, etc.
33 '';
34 homepage = "https://github.com/wjdp/htmltest";
35 license = with licenses; [ mit ];
36 maintainers = with maintainers; [ fab ];
37 };
38}