Max
e0790998d3
- dynamic addressing - DNS - switch to cidranger for routing - auto add routes to tun device - pex: shut up
44 lines
1 KiB
Nix
44 lines
1 KiB
Nix
{ lib, inputs, ... }:
|
|
|
|
{
|
|
perSystem = { pkgs, ... }: {
|
|
projectShells.hyprspace = {
|
|
tools = [
|
|
pkgs.go_1_20
|
|
];
|
|
env.GOPATH.eval = "$REPO_DATA_DIR/go";
|
|
};
|
|
packages.hyprspace = with pkgs; buildGo120Module {
|
|
pname = "hyprspace";
|
|
version = "0.7.0";
|
|
|
|
src = with inputs.nix-filter.lib; let
|
|
dirs = map inDirectory;
|
|
in filter {
|
|
root = ./.;
|
|
include = [
|
|
"go.mod"
|
|
"go.sum"
|
|
(matchExt "go")
|
|
] ++ (dirs [
|
|
"cli"
|
|
"config"
|
|
"dns"
|
|
"p2p"
|
|
"rpc"
|
|
"tun"
|
|
]);
|
|
};
|
|
|
|
vendorSha256 = "sha256-cP93ndADvQ9gFvPdNgi3aY4kAaKAuL0wq6P6PcUwIX4=";
|
|
|
|
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;
|
|
};
|
|
};
|
|
};
|
|
}
|