14 src = fetchFromGitHub {
17 rev = "refs/tags/v${version}";
18 hash = "sha256-zWajCfHFqPa3Z72DHcxBUq4bmcCu1lpEKUbZZewpYOE=";
23 vendorHash = "sha256-LJpgGeD47Bs+Cq9Z7WWFa49F8/n3exOyxRcd6EkkL2g=";
28 "-X github.com/hyprspace/hyprspace/cli.appVersion=${version}"
32 ln -s ${./config_generated.go} ./schema/config_generated.go
35 passthru.updateScript = writeShellScript "update" ''
36 ${lib.getExe nix-update} hyprspace
38 ${lib.getExe nix} --extra-experimental-features 'flakes nix-command' "$@"
41 nix build --print-out-paths --no-link \
42 "github:hyprspace/hyprspace?ref=refs/tags/v$(
43 nix eval .#hyprspace.version --raw
45 )/schema/config_generated.go" \
46 > pkgs/by-name/hy/hyprspace/config_generated.go
50 description = "Lightweight VPN Built on top of Libp2p for Truly Distributed Networks";
51 homepage = "https://github.com/hyprspace/hyprspace";
52 license = lib.licenses.asl20;
53 maintainers = with lib.maintainers; [
57 platforms = lib.platforms.linux;
58 mainProgram = "hyprspace";