2021-01-25 00:26:54 -08:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2017-01-17 06:49:32 -08:00
|
|
|
|
2017-05-17 13:56:46 -07:00
|
|
|
buildGoPackage rec {
|
2017-01-17 06:49:32 -08:00
|
|
|
name = "docker-proxy-${rev}";
|
2021-01-10 07:31:10 -08:00
|
|
|
rev = "fa125a3512ee0f6187721c88582bf8c4378bd4d7";
|
2017-01-17 06:49:32 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "docker";
|
|
|
|
repo = "libnetwork";
|
2021-01-10 07:31:10 -08:00
|
|
|
sha256 = "1r47y0gww3j7fas4kgiqbhrz5fazsx1c6sxnccdfhj8fzik77s9y";
|
2017-01-17 06:49:32 -08:00
|
|
|
};
|
|
|
|
|
2017-05-17 13:56:46 -07:00
|
|
|
goPackagePath = "github.com/docker/libnetwork";
|
2017-01-17 06:49:32 -08:00
|
|
|
|
2017-05-17 13:56:46 -07:00
|
|
|
goDeps = null;
|
2017-01-17 06:49:32 -08:00
|
|
|
|
|
|
|
installPhase = ''
|
2020-04-27 18:50:57 -07:00
|
|
|
install -m755 -D ./go/bin/proxy $out/bin/docker-proxy
|
2017-01-17 06:49:32 -08:00
|
|
|
'';
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-01-17 06:49:32 -08:00
|
|
|
description = "Docker proxy binary to forward traffic between host and containers";
|
|
|
|
license = licenses.asl20;
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/docker/libnetwork";
|
2017-01-17 06:49:32 -08:00
|
|
|
maintainers = with maintainers; [vdemeester];
|
2018-09-20 13:22:53 -07:00
|
|
|
platforms = platforms.linux;
|
2017-01-17 06:49:32 -08:00
|
|
|
};
|
|
|
|
}
|