1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/applications/virtualization/docker/proxy.nix
Daiderd Jordan 33f818198b
docker-proxy: mark linux only
Unlike docker (cli only) this probably won't work on darwin.

    github.com/docker/libnetwork/networkdb
    can't load package: package github.com/docker/libnetwork/ns: build constraints exclude all Go files in /private/tmp/nix-build-docker-proxy-7b2b1feb1de4817d522cc372af149ff48d25028e.drv-0/go/src/github.com/docker/libnetwork/ns

/cc ZHF #45961
2018-09-20 22:22:53 +02:00

30 lines
768 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub, docker }:
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 $bin/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;
};
}