depot/packages/networking/hyprspace/project.nix
Max 3792b2be5c packages/hyprspace: 0.5.2 -> 0.6.0
- Go: 1.18 -> 1.19
- go-libp2p: 0.23.4 -> 0.26.3
- go-libp2p-kad-dht: 0.20.0 -> 0.21.1
- go-multiaddr: 0.7.0 -> 0.8.0
- go-multibase: 0.1.1 -> 0.2.0
2023-03-24 16:43:58 +01:00

43 lines
1 KiB
Nix

{ lib, inputs, ... }:
{
perSystem = { pkgs, ... }: {
projectShells.hyprspace = {
tools = [
pkgs.go_1_19
];
env.GOPATH.eval = "$REPO_DATA_DIR/go";
};
packages.hyprspace = with pkgs; buildGo119Module {
pname = "hyprspace";
version = "0.6.0";
src = with inputs.nix-filter.lib; let
dirs = map inDirectory;
in filter {
root = ./.;
include = [
"go.mod"
"go.sum"
(matchExt "go")
] ++ (dirs [
"cli"
"config"
"p2p"
"rpc"
"tun"
]);
};
vendorSha256 = "sha256-zGaTOJfm3XoCWAK0jQd2GDOTE+8Zn3XgSRhxXEefqAM=";
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;
};
};
};
}