818c48e259
GitOrigin-RevId: 14aef06d9b3ad1d07626bdbb16083b83f92dc6c1
38 lines
884 B
Nix
38 lines
884 B
Nix
{ buildGoModule
|
|
, fetchFromGitHub
|
|
, lib
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "htmltest";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wjdp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-lj+bR27huswHemF8M+G69PblqnQQUWsg4jtLfz89yVY=";
|
|
};
|
|
|
|
vendorSha256 = "0zx3ii9crick647kslzwg4d39li6jds938f9j9dp287rhrlzjfbm";
|
|
|
|
ldflags = [
|
|
"-w"
|
|
"-s"
|
|
"-X main.version=${version}"
|
|
];
|
|
|
|
# tests require network access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Tool to test generated HTML output";
|
|
longDescription = ''
|
|
htmltest runs your HTML output through a series of checks to ensure all your
|
|
links, images, scripts references work, your alt tags are filled in, etc.
|
|
'';
|
|
homepage = "https://github.com/wjdp/htmltest";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|