lol
1{ lib, stdenv, buildGoModule, fetchFromGitHub, iproute2mac }:
2
3buildGoModule rec {
4 pname = "hyprspace";
5 version = "0.2.2";
6
7 propagatedBuildInputs = lib.optional stdenv.isDarwin iproute2mac;
8
9 src = fetchFromGitHub {
10 owner = pname;
11 repo = pname;
12 rev = "v${version}";
13 sha256 = "sha256-UlIQCy4moW58tQ1dqxrPsU5LN1Bs/Jy5X+2CEmXdYIk=";
14 };
15
16 vendorHash = "sha256-EV59sXmjunWs+MC++CwyuBlbWzWZI1YXDLEsOaESgRU=";
17
18 meta = with lib; {
19 description = "A Lightweight VPN Built on top of Libp2p for Truly Distributed Networks.";
20 homepage = "https://github.com/hyprspace/hyprspace";
21 license = licenses.asl20;
22 maintainers = with maintainers; [ yusdacra ];
23 platforms = platforms.linux ++ platforms.darwin;
24 broken = true; # build fails with go > 1.17
25 };
26}