2022-09-25 22:04:44 +03:00
|
|
|
{ inputs, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
2022-09-25 23:02:59 +03:00
|
|
|
projectShells.hyprspace = {
|
|
|
|
tools = [
|
2022-09-26 18:59:36 +03:00
|
|
|
pkgs.go_1_18
|
2022-09-25 23:02:59 +03:00
|
|
|
];
|
2022-11-07 21:52:27 +02:00
|
|
|
env.GOPATH.eval = "$REPO_DATA_DIR/go";
|
2022-09-25 23:02:59 +03:00
|
|
|
};
|
2022-09-26 18:59:36 +03:00
|
|
|
packages.hyprspace = with pkgs; buildGo118Module {
|
2022-09-25 22:04:44 +03:00
|
|
|
pname = "hyprspace";
|
2022-11-13 16:26:04 +02:00
|
|
|
version = "0.3.1";
|
2022-09-25 22:04:44 +03: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"
|
|
|
|
"tun"
|
|
|
|
]);
|
|
|
|
};
|
|
|
|
|
2022-11-11 21:54:57 +02:00
|
|
|
vendorSha256 = "sha256-lod53SaOILeQDwO9GL4SX3fNpa0iA2FSH1QfULvaBrc=";
|
2022-09-25 22:04:44 +03: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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|