depot/third_party/nixpkgs/pkgs/tools/networking/gvproxy/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

35 lines
824 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "gvproxy";
version = "0.6.2";
src = fetchFromGitHub {
owner = "containers";
repo = "gvisor-tap-vsock";
rev = "v${version}";
hash = "sha256-3WBL+ByYSiYKXzFkeoUnCxTdhvy3XxLKUHgJ2hO6oIo=";
};
vendorHash = null;
buildPhase = ''
runHook preBuild
make build
runHook postBuild
'';
installPhase = ''
runHook preInstall
install bin/* -Dt $out/bin
runHook postInstall
'';
meta = with lib; {
changelog = "https://github.com/containers/gvisor-tap-vsock/releases/tag/${src.rev}";
description = "Network stack based on gVisor";
homepage = "https://github.com/containers/gvisor-tap-vsock";
license = licenses.asl20;
maintainers = with maintainers; [ ] ++ teams.podman.members;
};
}