depot/third_party/nixpkgs/pkgs/tools/networking/gvproxy/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

35 lines
824 B
Nix

{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "gvproxy";
version = "0.7.0";
src = fetchFromGitHub {
owner = "containers";
repo = "gvisor-tap-vsock";
rev = "v${version}";
hash = "sha256-BCRUMAM/OeFf4gftYwLrRmeCkRGplYaF9QZ1ZI2YLLY=";
};
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;
};
}