nixpkgs/pkgs/tools/networking/gvproxy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
824 B
Nix
Raw Normal View History

2021-08-03 02:58:18 +02:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "gvproxy";
version = "0.6.1";
2021-08-03 02:58:18 +02:00
src = fetchFromGitHub {
owner = "containers";
repo = "gvisor-tap-vsock";
rev = "v${version}";
hash = "sha256-LkSKJVnWwqWSId/qdb7hTIiryxdazjW4oluZZN47orQ=";
2021-08-03 02:58:18 +02:00
};
vendorHash = null;
2021-08-03 02:58:18 +02:00
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}";
2021-08-03 02:58:18 +02:00
description = "Network stack based on gVisor";
homepage = "https://github.com/containers/gvisor-tap-vsock";
license = licenses.asl20;
maintainers = with maintainers; [ ] ++ teams.podman.members;
};
}