git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #16172 from zimbatm/influxdb-0.13.0

influxdb: 0.9.4 -> 0.13.0

commited4869452defbc317cca130512b6d67c380fb908 authorAristid Breitkreuz <aristidb@gmail.com> dateSat 18 Jun 2016, 20:57 (10 years ago) parent175e20c08770cd
4 files changed+215−21
pkgs/development/go-modules/libs.json+55−1 pkgs/servers/nosql/influxdb/default.nix+10−7 pkgs/servers/nosql/influxdb/deps.json+117−13 pkgs/servers/nosql/influxdb/gdm2nix.rb+33
pkgs/development/go-modules/libs.json+55−1
@@ -1537,5 +1537,59 @@
15371537 "rev": "772320464101e904cd51198160eb4d489be9cc49",
15381538 "sha256": "1a8hnh2k3vc3prjhnz4rjbiwhqq6r3mi18h9cdb6fc6s6yzjc19j"
15391539 }
1540+ },
1541+ {
1542+ "goPackagePath": "github.com/influxdata/usage-client",
1543+ "fetch": {
1544+ "type": "git",
1545+ "url": "https://github.com/influxdata/usage-client.git",
1546+ "rev": "475977e68d79883d9c8d67131c84e4241523f452",
1547+ "sha256": "0yhywablqqpd2x70rax1kf7yaw1jpvrc2gks8360cwisda57d3qy"
1548+ }
1549+ },
1550+ {
1551+ "goPackagePath": "github.com/jwilder/encoding",
1552+ "fetch": {
1553+ "type": "git",
1554+ "url": "https://github.com/jwilder/encoding.git",
1555+ "rev": "b421ab402545ef5a119f4f827784c6551d9bfc37",
1556+ "sha256": "0sjz2cl8kpni0mh0y4269k417dj06gn2y0ppi25i3wh9p4j4i4fq"
1557+ }
1558+ },
1559+ {
1560+ "goPackagePath": "collectd.org",
1561+ "fetch": {
1562+ "type": "git",
1563+ "url": "https://github.com/collectd/go-collectd.git",
1564+ "rev": "9fc824c70f713ea0f058a07b49a4c563ef2a3b98",
1565+ "sha256": "0kjal6bsjpnppfnlqbg7g56xwssaj2ani499yykyj817zq56hi0w"
1566+ }
1567+ },
1568+ {
1569+ "goPackagePath": "github.com/dgryski/go-bits",
1570+ "fetch": {
1571+ "type": "git",
1572+ "url": "https://github.com/dgryski/go-bits.git",
1573+ "rev": "86c69b3c986f9d40065df5bd8f765796549eef2e",
1574+ "sha256": "08i3p8lcisr88gmwvi8qdc8bgksxh5ydjspgfbi4aba9msybp78b"
1575+ }
1576+ },
1577+ {
1578+ "goPackagePath": "github.com/dgryski/go-bitstream",
1579+ "fetch": {
1580+ "type": "git",
1581+ "url": "https://github.com/dgryski/go-bitstream.git",
1582+ "rev": "27cd5973303fde7d914860be1ea4b927a6be0c92",
1583+ "sha256": "12ji4vcfy0cz12yq43cz0w1f1k4c1kg0vwpsk1iy47kc38kzdkc6"
1584+ }
1585+ },
1586+ {
1587+ "goPackagePath": "github.com/paulbellamy/ratecounter",
1588+ "fetch": {
1589+ "type": "git",
1590+ "url": "https://github.com/paulbellamy/ratecounter.git",
1591+ "rev": "5a11f585a31379765c190c033b6ad39956584447",
1592+ "sha256": "137p62imi91zhkjcjigdd64n7f9z6djjpsxcyifgrcxs41jj9ra0"
1593+ }
15401594 }
1541−]
1595+]
pkgs/servers/nosql/influxdb/default.nix+10−7
@@ -1,26 +1,29 @@
11{ lib, buildGoPackage, fetchFromGitHub }:
22
33buildGoPackage rec {
4− name = "influxdb-${rev}";
5− rev = "v0.9.4";
6− goPackagePath = "github.com/influxdb/influxdb";
4+ name = "influxdb-${version}";
5+ version = "0.13.0";
6+
7+ goPackagePath = "github.com/influxdata/influxdb";
78
89 src = fetchFromGitHub {
9− inherit rev;
10− owner = "influxdb";
10+ owner = "influxdata";
1111 repo = "influxdb";
12− sha256 = "0yarymppnlpf2xab57i8jx595v47s5mdwnf13719mc1fv3q84yqn";
12+ rev = "v${version}";
13+ sha256 = "0f7af5jb1f65qnslhc7zccml1qvk6xx5naczqfsf4s1zc556fdi4";
1314 };
1415
1516 excludedPackages = "test";
1617
18+ # Generated with the `gdm2nix.rb` script and the `Godeps` file from the
19+ # influxdb repo root.
1720 goDeps = ./deps.json;
1821
1922 meta = with lib; {
2023 description = "An open-source distributed time series database";
2124 license = licenses.mit;
2225 homepage = https://influxdb.com/;
23− maintainers = with maintainers; [ offline ];
26+ maintainers = with maintainers; [ offline zimbatm ];
2427 platforms = platforms.linux;
2528 };
2629}
pkgs/servers/nosql/influxdb/deps.json+117−13
@@ -1,21 +1,125 @@
11[
22 {
3− "include": "../../libs.json",
3+ "goPackagePath": "github.com/hashicorp/raft",
4+ "fetch": {
5+ "type": "git",
6+ "url": "https://github.com/hashicorp/raft.git",
7+ "rev": "8fd9a2fdfd154f4b393aa24cff91e3c317efe839",
8+ "sha256": "04k03x6r6h2xwxfvbzicfdblifdjn35agw9kwla6akw6l54ygy0f"
9+ }
10+ },
11+ {
12+ "goPackagePath": "github.com/BurntSushi/toml",
13+ "fetch": {
14+ "type": "git",
15+ "url": "https://github.com/BurntSushi/toml.git",
16+ "rev": "a4eecd407cf4129fc902ece859a0114e4cf1a7f4",
17+ "sha256": "1l74zvd534k2fs73gmaq4mgl48p1i9559k1gwq4vakca727z5sgf"
18+ }
19+ },
20+ {
21+ "goPackagePath": "github.com/armon/go-metrics",
22+ "fetch": {
23+ "type": "git",
24+ "url": "https://github.com/armon/go-metrics.git",
25+ "rev": "345426c77237ece5dab0e1605c3e4b35c3f54757",
26+ "sha256": "13bp2ykqhnhzif7wzrwsg54c2b0czhgs9csbvzbvc93n72s59jh5"
27+ }
28+ },
29+ {
30+ "goPackagePath": "github.com/davecgh/go-spew",
31+ "fetch": {
32+ "type": "git",
33+ "url": "https://github.com/davecgh/go-spew.git",
34+ "rev": "fc32781af5e85e548d3f1abaf0fa3dbe8a72495c",
35+ "sha256": "1dwwd4va0qnyr256i7n8d4g24d7yyvwd0975y6v4dy06qpwir232"
36+ }
37+ },
38+ {
39+ "goPackagePath": "github.com/gogo/protobuf",
40+ "fetch": {
41+ "type": "git",
42+ "url": "https://github.com/gogo/protobuf.git",
43+ "rev": "74b6e9deaff6ba6da1389ec97351d337f0d08b06",
44+ "sha256": "0045fz4bx72rikm2ggx9j1h3yrq518299qwaizrgy5jvxzj1707b"
45+ }
46+ },
47+ {
48+ "goPackagePath": "github.com/golang/snappy",
49+ "fetch": {
50+ "type": "git",
51+ "url": "https://github.com/golang/snappy.git",
52+ "rev": "5979233c5d6225d4a8e438cdd0b411888449ddab",
53+ "sha256": "0i0pvwc2a4xgsns6mr3xbc6p0sra34qsaagd7yf7v1as0z7ydl3s"
54+ }
55+ },
56+ {
57+ "goPackagePath": "github.com/boltdb/bolt",
58+ "fetch": {
59+ "type": "git",
60+ "url": "https://github.com/boltdb/bolt.git",
61+ "rev": "2f846c3551b76d7710f159be840d66c3d064abbe",
62+ "sha256": "0cvpcgmzlrn87jqrflwf4pciz6i25ri1r83sq7v1z9zry1ah16r5"
63+ }
64+ },
65+ {
66+ "goPackagePath": "github.com/hashicorp/go-msgpack",
67+ "fetch": {
68+ "type": "git",
69+ "url": "https://github.com/hashicorp/go-msgpack.git",
70+ "rev": "fa3f63826f7c23912c15263591e65d54d080b458",
71+ "sha256": "1f6rd6bm2dm2rk46x8cqrxh5nks1gpk6dvvsag7s5pdjgdxy951k"
72+ }
73+ },
74+ {
75+ "goPackagePath": "golang.org/x/tools",
76+ "fetch": {
77+ "type": "git",
78+ "url": "https://github.com/golang/tools.git",
79+ "rev": "8b178a93c1f5b5c8f4e36cd6bd64e0d5bf0ee180",
80+ "sha256": "0rqm56c4acrvyqsp53dkzr34pkz922x4rwknaslwlbkyc4gyg2c8"
81+ }
82+ },
83+ {
84+ "goPackagePath": "github.com/kimor79/gollectd",
85+ "fetch": {
86+ "type": "git",
87+ "url": "https://github.com/kimor79/gollectd.git",
88+ "rev": "61d0deeb4ffcc167b2a1baa8efd72365692811bc",
89+ "sha256": "0als2v4d5hlw0sqam670p3fi471ikgl3l81bp31mf3s3jssdxwfs"
90+ }
91+ },
92+ {
93+ "goPackagePath": "github.com/peterh/liner",
94+ "fetch": {
95+ "type": "git",
96+ "url": "https://github.com/peterh/liner.git",
97+ "rev": "82a939e738b0ee23e84ec7a12d8e216f4d95c53f",
98+ "sha256": "1187c1rqmh9k9ap5bz3p9hbjp3ad5hysykh58kgv5clah1jbkg04"
99+ }
100+ },
101+ {
102+ "goPackagePath": "golang.org/x/crypto",
103+ "fetch": {
104+ "type": "git",
105+ "url": "https://github.com/golang/crypto.git",
106+ "rev": "1f22c0103821b9390939b6776727195525381532",
107+ "sha256": "1acy12f396sr3lrnbcnym5q72qnlign5bagving41qijzjnc219m"
108+ }
109+ },
110+ {
111+ "include": "../../../development/go-modules/libs.json",
4112 "packages": [
5− "github.com/peterh/liner",
6− "github.com/BurntSushi/toml",
7− "github.com/kimor79/gollectd",
8− "github.com/bmizerany/pat",
113+ "github.com/influxdata/usage-client",
114+ "github.com/jwilder/encoding",
115+ "collectd.org",
116+ "github.com/dgryski/go-bits",
117+ "github.com/dgryski/go-bitstream",
9118 "gopkg.in/fatih/pool.v2",
119+ "github.com/bmizerany/pat",
10120 "github.com/rakyll/statik",
11− "github.com/armon/go-metrics",
12− "github.com/boltdb/bolt",
13− "github.com/golang/snappy",
14− "github.com/hashicorp/go-msgpack",
15121 "github.com/hashicorp/raft-boltdb",
16− "golang.org/x/crypto",
17− "github.com/gogo/protobuf",
18− "github.com/hashicorp/raft"
122+ "github.com/paulbellamy/ratecounter"
19123 ]
20124 }
21−]
125+]
pkgs/servers/nosql/influxdb/gdm2nix.rbnew file+33
@@ -0,0 +1,33 @@
1+#!/usr/bin/env ruby
2+#
3+#
4+require "json"
5+
6+redirects = {
7+ "collectd.org" => "github.com/collectd/go-collectd",
8+ "golang.org/x/crypto" => "github.com/golang/crypto",
9+ "golang.org/x/tools" => "github.com/golang/tools",
10+ "gopkg.in/fatih/pool.v2" => "github.com/fatih/pool",
11+}
12+
13+deps = File.read("Godeps").lines.map do |line|
14+ (name, rev) = line.split(" ")
15+
16+ host = redirects.fetch(name, name)
17+
18+ url = "https://#{host}.git"
19+
20+ xxx = JSON.load(`nix-prefetch-git #{url} #{rev}`)
21+
22+ {
23+ goPackagePath: name,
24+ fetch: {
25+ type: "git",
26+ url: url,
27+ rev: rev,
28+ sha256: xxx['sha256'],
29+ }
30+ }
31+end
32+
33+File.write("deps.json", JSON.pretty_generate(deps))