hyprspace/package.nix

34 lines
751 B
Nix

{ lib, buildGoModule }:
let
fs = lib.fileset;
in
buildGoModule rec {
pname = "hyprspace";
version = "0.8.6";
src = fs.toSource {
root = ./.;
fileset = fs.unions [
./go.mod
./go.sum
(fs.fileFilter (file: file.hasExt "go") ./.)
];
};
vendorHash = "sha256-xYJB8LxXnic8IoWmbtxrIH8p/TjjNo+kJMNFNvaNPbY=";
ldflags = [ "-s" "-w" "-X github.com/hyprspace/hyprspace/cli.appVersion=${version}" ];
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;
};
}