about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/virtualization/docker/proxy.nix
blob: cb3518d7d3da160625fac8d0d1ba9e71ca5eeaa7 (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
29
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  name = "docker-proxy-${rev}";
  rev = "7b2b1feb1de4817d522cc372af149ff48d25028e";

  src = fetchFromGitHub {
    inherit rev;
    owner = "docker";
    repo = "libnetwork";
    sha256 = "1ng577k11cyv207bp0vaz5jjfcn2igd6w95zn4izcq1nldzp5935";
  };

  goPackagePath = "github.com/docker/libnetwork";

  goDeps = null;

  installPhase = ''
    install -m755 -D ./go/bin/proxy $out/bin/docker-proxy
  '';

  meta = with stdenv.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;
  };
}