about summary refs log tree commit diff
path: root/pkgs/applications/virtualization/docker/proxy.nix
blob: e4f54352476434e5e1ae1ec11fe522425e8a96d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "docker-proxy";
  version = "unstable-2020-12-15";

  src = fetchFromGitHub {
    owner = "docker";
    repo = "libnetwork";
    rev = "fa125a3512ee0f6187721c88582bf8c4378bd4d7";
    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";
    mainProgram = "docker-proxy";
    license = licenses.asl20;
    homepage = "https://github.com/docker/libnetwork";
    maintainers = with maintainers; [vdemeester];
    platforms = platforms.linux;
  };
}