c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
35 lines
824 B
Nix
35 lines
824 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gvproxy";
|
|
version = "0.7.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containers";
|
|
repo = "gvisor-tap-vsock";
|
|
rev = "v${version}";
|
|
hash = "sha256-7j/0VuiHjazsPnyQ4NbmvXX1O/NbeB9l6HfmTRZyAW8=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|