2021-11-13 13:33:25 +02:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, iproute2mac }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "hyprspace";
|
2022-02-05 18:56:38 +02:00
|
|
|
version = "0.2.2";
|
2021-11-13 13:33:25 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optional stdenv.isDarwin iproute2mac;
|
|
|
|
|
2022-02-05 18:56:38 +02:00
|
|
|
patches = [
|
|
|
|
./0001-Lain-ipfs-bootstrap-nodes.patch
|
|
|
|
./0002-Remove-quic-transport-for-Lain-ipfs.patch
|
|
|
|
./0003-Remove-dep-from-go.mod.patch
|
2022-06-17 23:19:23 +03:00
|
|
|
./0004-Use-more-NAT-traversal-features.patch
|
2022-02-05 18:56:38 +02:00
|
|
|
];
|
|
|
|
|
2021-11-13 13:33:25 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-05 18:56:38 +02:00
|
|
|
sha256 = "sha256-UlIQCy4moW58tQ1dqxrPsU5LN1Bs/Jy5X+2CEmXdYIk=";
|
2021-11-13 13:33:25 +02:00
|
|
|
};
|
|
|
|
|
2022-02-05 18:56:38 +02:00
|
|
|
vendorSha256 = "sha256-8j9M8LrcqiPShCCNOmmJoY6wclHRiX2xOJH/wvlwvwY=";
|
2021-11-13 13:33:25 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|