about summary refs log tree commit diff
path: root/pkgs/servers/wesher/default.nix
blob: e9b243e325e48141b320ee2102fd4491a5ff0465 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "wesher";
  version = "0.2.6";

  src = fetchFromGitHub {
    owner = "costela";
    repo = "wesher";
    rev = "v${version}";
    sha256 = "sha256-EIajvcBhS5G9dJzRgXhnD1QKOAhmzngdyCU4L7itT8U=";
  };

  vendorHash = "sha256-BZzhBC4C0OoAxUEDROkggCQF35C9Z4+0/Jk0ZD8Hz1s=";

  ldflags = [
    "-s" "-w" "-X main.version=${version}"
  ];

  meta = with lib; {
    description = "Wireguard overlay mesh network manager";
    homepage = "https://github.com/costela/wesher";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ tylerjl ];
    platforms   = platforms.linux;
    mainProgram = "wesher";
  };
}