@@ -0,0 +1,25 @@
1+{ lib, stdenv, buildGoModule, fetchFromGitHub, iproute2mac }:
2+
3+buildGoModule rec {
4+ pname = "hyprspace";
5+ version = "0.1.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-YQJaK6i4GWEGSlf/1+hzjVhdN6ZjZC55v8w9KEedNg4=";
14+ };
15+
16+ vendorSha256 = "sha256-ErqK2jDTpqUyvll+epdGKRYCJvyvCa90W1GVbbhF0a4=";
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+ };
25+}