diff options
author | Bruno Bigras <bigras.bruno@gmail.com> | 2023-08-07 00:09:28 -0400 |
---|---|---|
committer | Bruno Bigras <bigras.bruno@gmail.com> | 2023-08-08 11:02:33 -0400 |
commit | 1b264042f1ffb005edb9ffca51b1cc9a6f855906 (patch) | |
tree | 429234fcd80e571b569db0d920f001d13fb8d261 /pkgs/servers/webmesh | |
parent | 506c1688d6cada66404d6f14addd2f000bd2da32 (diff) |
webmesh: init at 0.1.2
Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
Diffstat (limited to 'pkgs/servers/webmesh')
-rw-r--r-- | pkgs/servers/webmesh/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/servers/webmesh/default.nix b/pkgs/servers/webmesh/default.nix new file mode 100644 index 0000000000000..9b4930eb68884 --- /dev/null +++ b/pkgs/servers/webmesh/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "webmesh"; + version = "0.1.2"; + + src = fetchFromGitHub { + owner = "webmeshproj"; + repo = pname; + rev = "v${version}"; + hash = "sha256-S7kenBrnhM8V0TdbRe+CJP2XGHG/dZbfGVwdRurPeP8="; + }; + + vendorHash = "sha256-LBd5IrNFGkEhz+joDv6juL7WuoFyoqCXnmEHFB1K6Nc="; + + CGO_ENABLED = 0; + + subPackages = [ "cmd/node" "cmd/wmctl" ]; + + ldflags = [ + "-w" + "-s" + "-X github.com/webmeshproj/webmesh/pkg/version.Version=${version}" + "-X github.com/webmeshproj/webmesh/pkg/version.Commit=v${version}" + ]; + + postInstall = '' + mv $out/bin/node $out/bin/webmesh-node + ''; + + meta = with lib; { + description = "A simple, distributed, zero-configuration WireGuard mesh provider"; + homepage = "https://webmeshproj.github.io"; + license = licenses.asl20; + maintainers = with maintainers; [ bbigras ]; + }; +} |