Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoPackage, fetchFromGitHub }: 2 3buildGoPackage rec { 4 pname = "docker-proxy"; 5 version = "unstable-2020-12-15"; 6 7 src = fetchFromGitHub { 8 owner = "docker"; 9 repo = "libnetwork"; 10 rev = "fa125a3512ee0f6187721c88582bf8c4378bd4d7"; 11 sha256 = "1r47y0gww3j7fas4kgiqbhrz5fazsx1c6sxnccdfhj8fzik77s9y"; 12 }; 13 14 goPackagePath = "github.com/docker/libnetwork"; 15 16 installPhase = '' 17 install -m755 -D ./go/bin/proxy $out/bin/docker-proxy 18 ''; 19 20 meta = with lib; { 21 description = "Docker proxy binary to forward traffic between host and containers"; 22 license = licenses.asl20; 23 homepage = "https://github.com/docker/libnetwork"; 24 maintainers = with maintainers; [vdemeester]; 25 platforms = platforms.linux; 26 }; 27}