depot/pkgs/tools/networking/gvproxy/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

35 lines
824 B
Nix

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