2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, buildGoPackage, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "docker-proxy-${rev}";
|
2021-01-15 22:18:51 +00:00
|
|
|
rev = "fa125a3512ee0f6187721c88582bf8c4378bd4d7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "docker";
|
|
|
|
repo = "libnetwork";
|
2021-01-15 22:18:51 +00:00
|
|
|
sha256 = "1r47y0gww3j7fas4kgiqbhrz5fazsx1c6sxnccdfhj8fzik77s9y";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/docker/libnetwork";
|
|
|
|
|
|
|
|
goDeps = null;
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-05-15 21:57:56 +00:00
|
|
|
install -m755 -D ./go/bin/proxy $out/bin/docker-proxy
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|