2019-06-16 20:59:06 +01:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2017-01-17 14:49:32 +00:00
|
|
|
|
2017-05-17 21:56:46 +01:00
|
|
|
buildGoPackage rec {
|
2017-01-17 14:49:32 +00:00
|
|
|
name = "docker-proxy-${rev}";
|
2017-05-09 09:11:05 +01:00
|
|
|
rev = "7b2b1feb1de4817d522cc372af149ff48d25028e";
|
2017-01-17 14:49:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit rev;
|
|
|
|
owner = "docker";
|
|
|
|
repo = "libnetwork";
|
2017-05-09 09:11:05 +01:00
|
|
|
sha256 = "1ng577k11cyv207bp0vaz5jjfcn2igd6w95zn4izcq1nldzp5935";
|
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
|
|
|
|
2017-05-17 21:56:46 +01:00
|
|
|
goDeps = null;
|
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
|
|
|
'';
|
|
|
|
|
2017-05-17 21:56:46 +01:00
|
|
|
meta = with stdenv.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
|
|
|
};
|
|
|
|
}
|