1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

webmesh: init at 0.1.2

Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
This commit is contained in:
Bruno Bigras 2023-08-07 00:09:28 -04:00
parent 506c1688d6
commit 1b264042f1
2 changed files with 42 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -14594,6 +14594,8 @@ with pkgs;
webalizer = callPackage ../tools/networking/webalizer { };
webmesh = callPackage ../servers/webmesh { };
wget = callPackage ../tools/networking/wget { };
wget2 = callPackage ../tools/networking/wget2 {