nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "wgo";
5 version = "0.5.1";
6
7 src = fetchFromGitHub {
8 owner = "bokwoon95";
9 repo = "wgo";
10 rev = "v${version}";
11 hash = "sha256-kfa3Lm2oJomhoHbtSPLylRr+BFGV/y7xqSIv3xHHg3Q=";
12 };
13
14 vendorSha256 = "sha256-jxyO3MGrC+y/jJuwur/+tLIsbxGnT57ZXYzaf1lCv7A=";
15
16 ldflags = [ "-s" "-w" ];
17
18 subPackages = [ "." ];
19
20 meta = with lib; {
21 description = "Live reload for Go apps";
22 homepage = "https://github.com/bokwoon95/wgo";
23 license = licenses.mit;
24 maintainers = with maintainers; [ bokwoon95 ];
25 };
26}
27