2023-01-08 20:07:20 +02:00
|
|
|
{ lib, inputs, ... }:
|
2022-09-25 22:04:44 +03:00
|
|
|
|
|
|
|
{
|
2023-01-08 20:07:20 +02:00
|
|
|
perSystem = { pkgs, ... }: {
|
|
|
|
projectShells.hyprspace = {
|
|
|
|
tools = [
|
2023-08-21 18:40:18 +03:00
|
|
|
pkgs.go_1_20
|
2023-01-08 20:07:20 +02:00
|
|
|
];
|
|
|
|
env.GOPATH.eval = "$REPO_DATA_DIR/go";
|
2022-09-25 22:04:44 +03:00
|
|
|
};
|
2023-08-21 18:40:18 +03:00
|
|
|
packages.hyprspace = with pkgs; buildGo120Module {
|
2023-01-08 20:07:20 +02:00
|
|
|
pname = "hyprspace";
|
2023-10-22 15:19:34 +03:00
|
|
|
version = "0.6.5";
|
2023-01-08 20:07:20 +02:00
|
|
|
|
|
|
|
src = with inputs.nix-filter.lib; let
|
|
|
|
dirs = map inDirectory;
|
|
|
|
in filter {
|
|
|
|
root = ./.;
|
|
|
|
include = [
|
|
|
|
"go.mod"
|
|
|
|
"go.sum"
|
|
|
|
(matchExt "go")
|
|
|
|
] ++ (dirs [
|
|
|
|
"cli"
|
|
|
|
"config"
|
|
|
|
"p2p"
|
2023-01-21 00:36:31 +02:00
|
|
|
"rpc"
|
2023-01-08 20:07:20 +02:00
|
|
|
"tun"
|
|
|
|
]);
|
|
|
|
};
|
2022-09-25 22:04:44 +03:00
|
|
|
|
2023-10-22 15:19:34 +03:00
|
|
|
vendorSha256 = "sha256-X7kVBrmi2szycf0YlvuTMZzYEmFMwJNJiOol1xCbvwU=";
|
2022-09-25 22:04:44 +03:00
|
|
|
|
2023-01-08 20:07:20 +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;
|
|
|
|
};
|
2022-09-25 22:04:44 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|