2022-11-25 06:14:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, testers, dashing }:
|
2018-04-11 21:22:23 +00:00
|
|
|
|
2022-11-25 06:14:54 +00:00
|
|
|
buildGoModule rec {
|
2020-06-17 12:59:35 +00:00
|
|
|
pname = "dashing";
|
|
|
|
version = "0.4.0";
|
2018-04-11 21:22:23 +00:00
|
|
|
|
2020-06-17 12:59:35 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "technosophos";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-11-25 06:14:54 +00:00
|
|
|
hash = "sha256-CcEgGPnJGrTXrgo82u5dxQTB/YjFBhHdsv7uggsHG1Y=";
|
2018-04-11 21:22:23 +00:00
|
|
|
};
|
|
|
|
|
2022-11-25 06:14:54 +00:00
|
|
|
vendorHash = "sha256-XeUFmzf6y0S82gMOzkj4AUNFkVvkVOwauYpqY4jeWLM=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=${version}" ];
|
2018-04-11 21:22:23 +00:00
|
|
|
|
2022-11-25 06:14:54 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = dashing;
|
|
|
|
};
|
2020-06-17 12:59:35 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-11 21:22:23 +00:00
|
|
|
description = "A Dash Generator Script for Any HTML";
|
2022-11-25 06:14:54 +00:00
|
|
|
homepage = "https://github.com/technosophos/dashing";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ aaronjheng ];
|
2018-04-11 21:22:23 +00:00
|
|
|
};
|
|
|
|
}
|