2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, iproute2mac }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hyprspace";
|
2021-08-23 08:02:39 +00:00
|
|
|
version = "0.1.6";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optional stdenv.isDarwin iproute2mac;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-23 08:02:39 +00:00
|
|
|
sha256 = "sha256-g0oyI3jnqQADyOrpnK4IvpFQPEwNrpvyDS+DhBDXZGg=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-rw75xNBBV58F+HBVtD/EslPWxZxLbI3/mJVdJF4usKI=";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Lightweight VPN Built on top of Libp2p for Truly Distributed Networks.";
|
|
|
|
homepage = "https://github.com/hyprspace/hyprspace";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ yusdacra ];
|
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
|
|
};
|
|
|
|
}
|