nixpkgs/pkgs/development/tools/wgo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
806 B
Nix
Raw Normal View History

2023-06-23 02:42:16 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2023-02-13 09:50:54 +00:00
2023-06-23 02:42:16 +00:00
let
2023-02-13 09:50:54 +00:00
pname = "wgo";
2023-11-09 04:47:43 +00:00
version = "0.5.4";
2023-06-23 02:42:16 +00:00
in
buildGoModule {
inherit pname version;
2023-02-13 09:50:54 +00:00
src = fetchFromGitHub {
owner = "bokwoon95";
repo = "wgo";
rev = "v${version}";
2023-11-09 04:47:43 +00:00
hash = "sha256-MPmB6G5JCIEfFYchVmV8sS5Zfzfui9tClDI6RlLdP6U=";
2023-02-13 09:50:54 +00:00
};
2023-08-31 08:24:08 +00:00
vendorHash = "sha256-w6UJxZToHbbQmuXkyqFzyssFcE+7uVNqOuIF/XKdEsU=";
2023-02-13 09:50:54 +00:00
ldflags = [ "-s" "-w" ];
subPackages = [ "." ];
2023-11-13 02:58:23 +00:00
checkFlags = [
# Flaky tests.
# See https://github.com/bokwoon95/wgo/blob/e0448e04b6ca44323f507d1aca94425b7c69803c/START_HERE.md?plain=1#L26.
"-skip=TestWgoCmd_FileEvent"
];
2023-02-13 09:50:54 +00:00
meta = with lib; {
description = "Live reload for Go apps";
homepage = "https://github.com/bokwoon95/wgo";
license = licenses.mit;
2023-06-23 02:42:16 +00:00
maintainers = with maintainers; [ ];
2023-02-13 09:50:54 +00:00
};
}