2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2023-02-16 17:41:37 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
let
|
2023-02-16 17:41:37 +00:00
|
|
|
pname = "wgo";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.5.4";
|
2023-07-15 17:15:38 +00:00
|
|
|
in
|
|
|
|
buildGoModule {
|
|
|
|
inherit pname version;
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bokwoon95";
|
|
|
|
repo = "wgo";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-MPmB6G5JCIEfFYchVmV8sS5Zfzfui9tClDI6RlLdP6U=";
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-w6UJxZToHbbQmuXkyqFzyssFcE+7uVNqOuIF/XKdEsU=";
|
2023-02-16 17:41:37 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
checkFlags = [
|
|
|
|
# Flaky tests.
|
|
|
|
# See https://github.com/bokwoon95/wgo/blob/e0448e04b6ca44323f507d1aca94425b7c69803c/START_HERE.md?plain=1#L26.
|
|
|
|
"-skip=TestWgoCmd_FileEvent"
|
|
|
|
];
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Live reload for Go apps";
|
|
|
|
homepage = "https://github.com/bokwoon95/wgo";
|
|
|
|
license = licenses.mit;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2023-02-16 17:41:37 +00:00
|
|
|
};
|
|
|
|
}
|