depot/third_party/nixpkgs/pkgs/applications/virtualization/docker/proxy.nix
Default email 58849dfc4f Project import generated by Copybara.
GitOrigin-RevId: 21c937f8cb1e6adcfeb36dfd6c90d9d9bfab1d28
2021-08-27 16:25:00 +02:00

27 lines
734 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "docker-proxy-${rev}";
rev = "fa125a3512ee0f6187721c88582bf8c4378bd4d7";
src = fetchFromGitHub {
inherit rev;
owner = "docker";
repo = "libnetwork";
sha256 = "1r47y0gww3j7fas4kgiqbhrz5fazsx1c6sxnccdfhj8fzik77s9y";
};
goPackagePath = "github.com/docker/libnetwork";
installPhase = ''
install -m755 -D ./go/bin/proxy $out/bin/docker-proxy
'';
meta = with lib; {
description = "Docker proxy binary to forward traffic between host and containers";
license = licenses.asl20;
homepage = "https://github.com/docker/libnetwork";
maintainers = with maintainers; [vdemeester];
platforms = platforms.linux;
};
}