2021-02-05 17:12:51 +00:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "htmltest";
|
2022-11-04 12:27:35 +00:00
|
|
|
version = "0.17.0";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wjdp";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-11-04 12:27:35 +00:00
|
|
|
sha256 = "sha256-8tkk476kGEfHo3XGu3/0r6fhX1c4vkYiUACpw0uEu2g=";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
vendorSha256 = "sha256-dTn5aYb5IHFbksmhkXSTJtI0Gnn8Uz0PMZPFzFKMo38=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
ldflags = [
|
|
|
|
"-w"
|
|
|
|
"-s"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|