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-03-23 22:23:46 +02:00
|
|
|
pkgs.go_1_19
|
2023-01-08 20:07:20 +02:00
|
|
|
];
|
|
|
|
env.GOPATH.eval = "$REPO_DATA_DIR/go";
|
2022-09-25 22:04:44 +03:00
|
|
|
};
|
2023-03-23 22:23:46 +02:00
|
|
|
packages.hyprspace = with pkgs; buildGo119Module {
|
2023-01-08 20:07:20 +02:00
|
|
|
pname = "hyprspace";
|
2023-03-24 00:26:38 +02:00
|
|
|
version = "0.6.1";
|
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-03-23 22:23:46 +02:00
|
|
|
vendorSha256 = "sha256-zGaTOJfm3XoCWAK0jQd2GDOTE+8Zn3XgSRhxXEefqAM=";
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|