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-10-27 01:32:18 +03:00
|
|
|
packages.hyprspace = with pkgs; buildGo120Module rec {
|
2023-01-08 20:07:20 +02:00
|
|
|
pname = "hyprspace";
|
2023-10-27 21:33:57 +03:00
|
|
|
version = "0.8.3";
|
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"
|
2023-10-25 00:34:12 +03:00
|
|
|
"dns"
|
2023-01-08 20:07:20 +02:00
|
|
|
"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-12-02 20:32:42 +02:00
|
|
|
vendorHash = "sha256-VBCgFbJixBh+pKfYGJVapHqWBpUFfvjl1cwOER2Li6Y=";
|
2022-09-25 22:04:44 +03:00
|
|
|
|
2023-10-27 01:32:18 +03:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/hyprspace/hyprspace/cli.appVersion=${version}" ];
|
|
|
|
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|