14 src = fetchFromGitHub {
18 hash = "sha256-Ta3+Y3P74cvx09Z4rB5ObgBZtfF4grVgyeZ57yFPlGM=";
24 # Add Go Modules support
26 url = "https://github.com/etix/mirrorbits/commit/955a8b2e1aacea1cae06396a64afbb531ceb36d4.patch";
27 hash = "sha256-KJgj3ynnjjiXG5qsUmzBiMjGEwfvM/9Ap+ZgUdhclik=";
31 nativeBuildInputs = [ pkg-config ];
32 buildInputs = [ zlib geoip ];
34 subPackages = [ "." ];
36 ldflags = [ "-s" "-w" ];
39 description = "geographical download redirector for distributing files efficiently across a set of mirrors";
40 homepage = "https://github.com/etix/mirrorbits";
42 Mirrorbits is a geographical download redirector written in Go for
43 distributing files efficiently across a set of mirrors. It offers
44 a simple and economic way to create a Content Delivery Network
45 layer using a pure software stack. It is primarily designed for
46 the distribution of large-scale Open-Source projects with a lot
49 license = licenses.mit;
50 maintainers = with maintainers; [ fpletz ];
51 mainProgram = "mirrorbits";