2021-02-01 16:14:56 +01:00
|
|
|
{ buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "htmltest";
|
2021-10-01 18:16:57 +02:00
|
|
|
version = "0.15.0";
|
2021-02-01 16:14:56 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wjdp";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-01 18:16:57 +02:00
|
|
|
sha256 = "sha256-lj+bR27huswHemF8M+G69PblqnQQUWsg4jtLfz89yVY=";
|
2021-02-01 16:14:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "0zx3ii9crick647kslzwg4d39li6jds938f9j9dp287rhrlzjfbm";
|
|
|
|
|
2021-10-01 18:50:27 +02:00
|
|
|
ldflags = [
|
|
|
|
"-w"
|
|
|
|
"-s"
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
2021-02-01 16:14:56 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|