depot/packages/networking/hyprspace/project.nix
Max bdc623056b packages/hyprspace: remove update command
We have Nix for installing software ;)
2022-10-18 23:02:53 +02:00

40 lines
934 B
Nix

{ inputs, lib, pkgs, ... }:
{
projectShells.hyprspace = {
tools = [
pkgs.go_1_18
];
env.GOPATH.eval = "$PRJ_DATA_DIR/go";
};
packages.hyprspace = with pkgs; buildGo118Module {
pname = "hyprspace";
version = "0.2.2";
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"
]);
};
vendorSha256 = "sha256-lxJZ4W+VY1XWLePrT0uLT2Y2tIOETLzn8NC8FVDruNM=";
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;
};
};
}