fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, lib, buildGoPackage, fetchFromGitHub, fetchpatch
2, pkgconfig, zlib, geoip }:
3
4buildGoPackage rec {
5 name = "mirrorbits-${version}";
6 version = "0.4";
7 rev = "v${version}";
8
9 src = fetchFromGitHub {
10 inherit rev;
11 owner = "etix";
12 repo = "mirrorbits";
13 sha256 = "11f9wczajba147qk5j73pxjrvlxkgr598sjvgjn2b8nxm49g2pan";
14 };
15
16 patches = [
17 (fetchpatch {
18 url = "https://github.com/etix/mirrorbits/commit/03a4e02214bdb7bb60240ddf25b887ccac5fb118.patch";
19 sha256 = "08332cfxmp2nsfdj2ymg3lxkav8h44f6cf2h6g9jkn03mkliblm5";
20 })
21 ];
22
23 postPatch = ''
24 rm -rf testing
25 '';
26
27 goPackagePath = "github.com/etix/mirrorbits";
28 goDeps = ./deps.nix;
29
30 nativeBuildInputs = [ pkgconfig ];
31 buildInputs = [ zlib geoip ];
32
33 meta = {
34 description = "geographical download redirector for distributing files efficiently across a set of mirrors";
35 homepage = "https://github.com/etix/mirrorbits";
36 longDescription = ''
37 Mirrorbits is a geographical download redirector written in Go for
38 distributing files efficiently across a set of mirrors. It offers
39 a simple and economic way to create a Content Delivery Network
40 layer using a pure software stack. It is primarily designed for
41 the distribution of large-scale Open-Source projects with a lot
42 of traffic.
43 '';
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ fpletz ];
46 platforms = lib.platforms.unix;
47 };
48}