mirrorbits: init at 0.4

+116
+48
pkgs/servers/mirrorbits/default.nix
··· 1 + { stdenv, lib, buildGoPackage, fetchFromGitHub, fetchpatch 2 + , pkgconfig, zlib, geoip }: 3 + 4 + buildGoPackage 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 + }
+66
pkgs/servers/mirrorbits/deps.nix
··· 1 + # This file was generated by https://github.com/kamilchm/go2nix v1.2.1 2 + [ 3 + { 4 + goPackagePath = "github.com/etix/geoip"; 5 + fetch = { 6 + type = "git"; 7 + url = "https://github.com/etix/geoip"; 8 + rev = "db8457352061099b2a1840c712b3223900216588"; 9 + sha256 = "1768237bngcjgw0s8wba0f4nw1xahg28cq2nd6vrbmhavd1ppim9"; 10 + }; 11 + } 12 + { 13 + goPackagePath = "github.com/etix/goftp"; 14 + fetch = { 15 + type = "git"; 16 + url = "https://github.com/etix/goftp"; 17 + rev = "0c13163a1028e83f0f1cce113dddd3900e935bc7"; 18 + sha256 = "15kwk57yk63j28d1lwrykc9nr7ickqgk2fpw4g0b0404b95l101k"; 19 + }; 20 + } 21 + { 22 + goPackagePath = "github.com/garyburd/redigo"; 23 + fetch = { 24 + type = "git"; 25 + url = "https://github.com/garyburd/redigo"; 26 + rev = "70e1b1943d4fc9c56791abaa6f4d1e727b9ab925"; 27 + sha256 = "1nw22r0vagmayjg51rz55yi9ppkd60ya0nzmp113mcz25vhxa0d0"; 28 + }; 29 + } 30 + { 31 + goPackagePath = "github.com/op/go-logging"; 32 + fetch = { 33 + type = "git"; 34 + url = "https://github.com/op/go-logging"; 35 + rev = "970db520ece77730c7e4724c61121037378659d9"; 36 + sha256 = "1cpna2x5l071z1vrnk7zipdkka8dzwsjyx7m79xk0lr08rip0kcj"; 37 + }; 38 + } 39 + { 40 + goPackagePath = "github.com/youtube/vitess"; 41 + fetch = { 42 + type = "git"; 43 + url = "https://github.com/youtube/vitess"; 44 + rev = "6cf14dbf97f28eebd37dc2bc36374852946336a8"; 45 + sha256 = "1g76q84wipyprn05brpjxf8xri87293r7nyf647crjy5d9k950lz"; 46 + }; 47 + } 48 + { 49 + goPackagePath = "gopkg.in/tylerb/graceful.v1"; 50 + fetch = { 51 + type = "git"; 52 + url = "https://gopkg.in/tylerb/graceful.v1"; 53 + rev = "4654dfbb6ad53cb5e27f37d99b02e16c1872fbbb"; 54 + sha256 = "1qspbrzr3h6c89v75c99avn7iizkfnjh901wp650vyy0j3p6ydnd"; 55 + }; 56 + } 57 + { 58 + goPackagePath = "gopkg.in/yaml.v2"; 59 + fetch = { 60 + type = "git"; 61 + url = "https://gopkg.in/yaml.v2"; 62 + rev = "eb3733d160e74a9c7e442f435eb3bea458e1d19f"; 63 + sha256 = "1srhvcaa9db3a6xj29mkjr5kg33y71pclrlx4vcwz5m1lgb5c7q6"; 64 + }; 65 + } 66 + ]
+2
pkgs/top-level/all-packages.nix
··· 3288 3288 3289 3289 miredo = callPackage ../tools/networking/miredo { }; 3290 3290 3291 + mirrorbits = callPackage ../servers/mirrorbits { }; 3292 + 3291 3293 mitmproxy = callPackage ../tools/networking/mitmproxy { }; 3292 3294 3293 3295 mjpegtoolsFull = callPackage ../tools/video/mjpegtools { };