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