depot/third_party/nixpkgs/pkgs/tools/networking/gvproxy/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

34 lines
738 B
Nix

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