tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mirrorbits: init at 0.4
Franz Pletz
8 years ago
ad13618c
31685846
+116
3 changed files
expand all
collapse all
unified
split
pkgs
servers
mirrorbits
default.nix
deps.nix
top-level
all-packages.nix
+48
pkgs/servers/mirrorbits/default.nix
···
1
1
+
{ stdenv, lib, buildGoPackage, fetchFromGitHub, fetchpatch
2
2
+
, pkgconfig, zlib, geoip }:
3
3
+
4
4
+
buildGoPackage rec {
5
5
+
name = "mirrorbits-${version}";
6
6
+
version = "0.4";
7
7
+
rev = "v${version}";
8
8
+
9
9
+
src = fetchFromGitHub {
10
10
+
inherit rev;
11
11
+
owner = "etix";
12
12
+
repo = "mirrorbits";
13
13
+
sha256 = "11f9wczajba147qk5j73pxjrvlxkgr598sjvgjn2b8nxm49g2pan";
14
14
+
};
15
15
+
16
16
+
patches = [
17
17
+
(fetchpatch {
18
18
+
url = "https://github.com/etix/mirrorbits/commit/03a4e02214bdb7bb60240ddf25b887ccac5fb118.patch";
19
19
+
sha256 = "08332cfxmp2nsfdj2ymg3lxkav8h44f6cf2h6g9jkn03mkliblm5";
20
20
+
})
21
21
+
];
22
22
+
23
23
+
postPatch = ''
24
24
+
rm -rf testing
25
25
+
'';
26
26
+
27
27
+
goPackagePath = "github.com/etix/mirrorbits";
28
28
+
goDeps = ./deps.nix;
29
29
+
30
30
+
nativeBuildInputs = [ pkgconfig ];
31
31
+
buildInputs = [ zlib geoip ];
32
32
+
33
33
+
meta = {
34
34
+
description = "geographical download redirector for distributing files efficiently across a set of mirrors";
35
35
+
homepage = "https://github.com/etix/mirrorbits";
36
36
+
longDescription = ''
37
37
+
Mirrorbits is a geographical download redirector written in Go for
38
38
+
distributing files efficiently across a set of mirrors. It offers
39
39
+
a simple and economic way to create a Content Delivery Network
40
40
+
layer using a pure software stack. It is primarily designed for
41
41
+
the distribution of large-scale Open-Source projects with a lot
42
42
+
of traffic.
43
43
+
'';
44
44
+
license = lib.licenses.mit;
45
45
+
maintainers = with lib.maintainers; [ fpletz ];
46
46
+
platforms = lib.platforms.unix;
47
47
+
};
48
48
+
}
+66
pkgs/servers/mirrorbits/deps.nix
···
1
1
+
# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
2
2
+
[
3
3
+
{
4
4
+
goPackagePath = "github.com/etix/geoip";
5
5
+
fetch = {
6
6
+
type = "git";
7
7
+
url = "https://github.com/etix/geoip";
8
8
+
rev = "db8457352061099b2a1840c712b3223900216588";
9
9
+
sha256 = "1768237bngcjgw0s8wba0f4nw1xahg28cq2nd6vrbmhavd1ppim9";
10
10
+
};
11
11
+
}
12
12
+
{
13
13
+
goPackagePath = "github.com/etix/goftp";
14
14
+
fetch = {
15
15
+
type = "git";
16
16
+
url = "https://github.com/etix/goftp";
17
17
+
rev = "0c13163a1028e83f0f1cce113dddd3900e935bc7";
18
18
+
sha256 = "15kwk57yk63j28d1lwrykc9nr7ickqgk2fpw4g0b0404b95l101k";
19
19
+
};
20
20
+
}
21
21
+
{
22
22
+
goPackagePath = "github.com/garyburd/redigo";
23
23
+
fetch = {
24
24
+
type = "git";
25
25
+
url = "https://github.com/garyburd/redigo";
26
26
+
rev = "70e1b1943d4fc9c56791abaa6f4d1e727b9ab925";
27
27
+
sha256 = "1nw22r0vagmayjg51rz55yi9ppkd60ya0nzmp113mcz25vhxa0d0";
28
28
+
};
29
29
+
}
30
30
+
{
31
31
+
goPackagePath = "github.com/op/go-logging";
32
32
+
fetch = {
33
33
+
type = "git";
34
34
+
url = "https://github.com/op/go-logging";
35
35
+
rev = "970db520ece77730c7e4724c61121037378659d9";
36
36
+
sha256 = "1cpna2x5l071z1vrnk7zipdkka8dzwsjyx7m79xk0lr08rip0kcj";
37
37
+
};
38
38
+
}
39
39
+
{
40
40
+
goPackagePath = "github.com/youtube/vitess";
41
41
+
fetch = {
42
42
+
type = "git";
43
43
+
url = "https://github.com/youtube/vitess";
44
44
+
rev = "6cf14dbf97f28eebd37dc2bc36374852946336a8";
45
45
+
sha256 = "1g76q84wipyprn05brpjxf8xri87293r7nyf647crjy5d9k950lz";
46
46
+
};
47
47
+
}
48
48
+
{
49
49
+
goPackagePath = "gopkg.in/tylerb/graceful.v1";
50
50
+
fetch = {
51
51
+
type = "git";
52
52
+
url = "https://gopkg.in/tylerb/graceful.v1";
53
53
+
rev = "4654dfbb6ad53cb5e27f37d99b02e16c1872fbbb";
54
54
+
sha256 = "1qspbrzr3h6c89v75c99avn7iizkfnjh901wp650vyy0j3p6ydnd";
55
55
+
};
56
56
+
}
57
57
+
{
58
58
+
goPackagePath = "gopkg.in/yaml.v2";
59
59
+
fetch = {
60
60
+
type = "git";
61
61
+
url = "https://gopkg.in/yaml.v2";
62
62
+
rev = "eb3733d160e74a9c7e442f435eb3bea458e1d19f";
63
63
+
sha256 = "1srhvcaa9db3a6xj29mkjr5kg33y71pclrlx4vcwz5m1lgb5c7q6";
64
64
+
};
65
65
+
}
66
66
+
]
+2
pkgs/top-level/all-packages.nix
···
3288
3288
3289
3289
miredo = callPackage ../tools/networking/miredo { };
3290
3290
3291
3291
+
mirrorbits = callPackage ../servers/mirrorbits { };
3292
3292
+
3291
3293
mitmproxy = callPackage ../tools/networking/mitmproxy { };
3292
3294
3293
3295
mjpegtoolsFull = callPackage ../tools/video/mjpegtools { };