git.iko.soy/typeable/nixpkgs
on master help sign in
influxdb: make v1.0.2 default, remove 0.13
commit5f3f810e27c8a355e86946e1044a9d13caf7667e authorJörg Thalheim <joerg@higgsboson.tk> dateWed 26 Oct 2016, 14:21 (10 years ago) parentef45c19
7 files changed+11−273
pkgs/servers/nosql/influxdb/default.nix+10−5 pkgs/servers/nosql/influxdb/deps-0.13.0.json.nix pkgs/servers/nosql/influxdb/deps-0.13.0.nix−200 pkgs/servers/nosql/influxdb/gdm2nix.rb−39 pkgs/servers/nosql/influxdb/v0.nix−13 pkgs/servers/nosql/influxdb/v1.nix−13 pkgs/top-level/all-packages.nix+1−3
pkgs/servers/nosql/influxdb/default.nix+10−5
@@ -1,16 +1,21 @@
1−{ lib, buildGoPackage, fetchFromGitHub, src, version }:
1+{ lib, buildGoPackage, fetchFromGitHub, }:
22
33buildGoPackage rec {
44 name = "influxdb-${version}";
5+ version = "1.0.2";
6+
7+ src = fetchFromGitHub {
8+ owner = "influxdata";
9+ repo = "influxdb";
10+ rev = "v${version}";
11+ sha256 = "0z8y995gm2hpxny7l5nx5fjc5c26hfgvghwmzva8d1mrlnapcsyc";
12+ };
513
614 goPackagePath = "github.com/influxdata/influxdb";
715
816 excludedPackages = "test";
9−
10− inherit src;
1117
12− # Generated with the `gdm2nix.rb` script and the `Godeps` file from the
13− # influxdb repo root.
18+ # Generated with the nix2go
1419 goDeps = ./. + builtins.toPath "/deps-${version}.nix";
1520
1621 meta = with lib; {
pkgs/servers/nosql/influxdb/deps-0.13.0.json.nixdeleted

No changes to the content.

pkgs/servers/nosql/influxdb/deps-0.13.0.nixdeleted−200
@@ -1,200 +0,0 @@
1−[
2−{
3− goPackagePath = "collectd.org";
4− fetch = {
5− type = "git";
6− url = "https://github.com/collectd/go-collectd.git";
7− rev = "9fc824c70f713ea0f058a07b49a4c563ef2a3b98";
8− sha256 = "0kjal6bsjpnppfnlqbg7g56xwssaj2ani499yykyj817zq56hi0w";
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/bmizerany/pat";
31− fetch = {
32− type = "git";
33− url = "https://github.com/bmizerany/pat.git";
34− rev = "b8a35001b773c267eb260a691f4e5499a3531600";
35− sha256 = "11zxd45rvjm6cn3wzbi18wy9j4vr1r1hgg6gzlqnxffiizkycxmz";
36− };
37−}
38−{
39− goPackagePath = "github.com/boltdb/bolt";
40− fetch = {
41− type = "git";
42− url = "https://github.com/boltdb/bolt.git";
43− rev = "2f846c3551b76d7710f159be840d66c3d064abbe";
44− sha256 = "0cvpcgmzlrn87jqrflwf4pciz6i25ri1r83sq7v1z9zry1ah16r5";
45− };
46−}
47−{
48− goPackagePath = "github.com/davecgh/go-spew";
49− fetch = {
50− type = "git";
51− url = "https://github.com/davecgh/go-spew.git";
52− rev = "fc32781af5e85e548d3f1abaf0fa3dbe8a72495c";
53− sha256 = "1dwwd4va0qnyr256i7n8d4g24d7yyvwd0975y6v4dy06qpwir232";
54− };
55−}
56−{
57− goPackagePath = "github.com/dgryski/go-bits";
58− fetch = {
59− type = "git";
60− url = "https://github.com/dgryski/go-bits.git";
61− rev = "86c69b3c986f9d40065df5bd8f765796549eef2e";
62− sha256 = "08i3p8lcisr88gmwvi8qdc8bgksxh5ydjspgfbi4aba9msybp78b";
63− };
64−}
65−{
66− goPackagePath = "github.com/dgryski/go-bitstream";
67− fetch = {
68− type = "git";
69− url = "https://github.com/dgryski/go-bitstream.git";
70− rev = "27cd5973303fde7d914860be1ea4b927a6be0c92";
71− sha256 = "12ji4vcfy0cz12yq43cz0w1f1k4c1kg0vwpsk1iy47kc38kzdkc6";
72− };
73−}
74−{
75− goPackagePath = "github.com/gogo/protobuf";
76− fetch = {
77− type = "git";
78− url = "https://github.com/gogo/protobuf.git";
79− rev = "74b6e9deaff6ba6da1389ec97351d337f0d08b06";
80− sha256 = "0045fz4bx72rikm2ggx9j1h3yrq518299qwaizrgy5jvxzj1707b";
81− };
82−}
83−{
84− goPackagePath = "github.com/golang/snappy";
85− fetch = {
86− type = "git";
87− url = "https://github.com/golang/snappy.git";
88− rev = "5979233c5d6225d4a8e438cdd0b411888449ddab";
89− sha256 = "0i0pvwc2a4xgsns6mr3xbc6p0sra34qsaagd7yf7v1as0z7ydl3s";
90− };
91−}
92−{
93− goPackagePath = "github.com/hashicorp/go-msgpack";
94− fetch = {
95− type = "git";
96− url = "https://github.com/hashicorp/go-msgpack.git";
97− rev = "fa3f63826f7c23912c15263591e65d54d080b458";
98− sha256 = "1f6rd6bm2dm2rk46x8cqrxh5nks1gpk6dvvsag7s5pdjgdxy951k";
99− };
100−}
101−{
102− goPackagePath = "github.com/hashicorp/raft";
103− fetch = {
104− type = "git";
105− url = "https://github.com/hashicorp/raft.git";
106− rev = "8fd9a2fdfd154f4b393aa24cff91e3c317efe839";
107− sha256 = "04k03x6r6h2xwxfvbzicfdblifdjn35agw9kwla6akw6l54ygy0f";
108− };
109−}
110−{
111− goPackagePath = "github.com/hashicorp/raft-boltdb";
112− fetch = {
113− type = "git";
114− url = "https://github.com/hashicorp/raft-boltdb.git";
115− rev = "d1e82c1ec3f15ee991f7cc7ffd5b67ff6f5bbaee";
116− sha256 = "0p609w6x0h6bapx4b0d91dxnp2kj7dv0534q4blyxp79shv2a8ia";
117− };
118−}
119−{
120− goPackagePath = "github.com/influxdata/usage-client";
121− fetch = {
122− type = "git";
123− url = "https://github.com/influxdata/usage-client.git";
124− rev = "475977e68d79883d9c8d67131c84e4241523f452";
125− sha256 = "0yhywablqqpd2x70rax1kf7yaw1jpvrc2gks8360cwisda57d3qy";
126− };
127−}
128−{
129− goPackagePath = "github.com/jwilder/encoding";
130− fetch = {
131− type = "git";
132− url = "https://github.com/jwilder/encoding.git";
133− rev = "b421ab402545ef5a119f4f827784c6551d9bfc37";
134− sha256 = "0sjz2cl8kpni0mh0y4269k417dj06gn2y0ppi25i3wh9p4j4i4fq";
135− };
136−}
137−{
138− goPackagePath = "github.com/kimor79/gollectd";
139− fetch = {
140− type = "git";
141− url = "https://github.com/kimor79/gollectd.git";
142− rev = "61d0deeb4ffcc167b2a1baa8efd72365692811bc";
143− sha256 = "0als2v4d5hlw0sqam670p3fi471ikgl3l81bp31mf3s3jssdxwfs";
144− };
145−}
146−{
147− goPackagePath = "github.com/paulbellamy/ratecounter";
148− fetch = {
149− type = "git";
150− url = "https://github.com/paulbellamy/ratecounter.git";
151− rev = "5a11f585a31379765c190c033b6ad39956584447";
152− sha256 = "137p62imi91zhkjcjigdd64n7f9z6djjpsxcyifgrcxs41jj9ra0";
153− };
154−}
155−{
156− goPackagePath = "github.com/peterh/liner";
157− fetch = {
158− type = "git";
159− url = "https://github.com/peterh/liner.git";
160− rev = "82a939e738b0ee23e84ec7a12d8e216f4d95c53f";
161− sha256 = "1187c1rqmh9k9ap5bz3p9hbjp3ad5hysykh58kgv5clah1jbkg04";
162− };
163−}
164−{
165− goPackagePath = "github.com/rakyll/statik";
166− fetch = {
167− type = "git";
168− url = "https://github.com/rakyll/statik.git";
169− rev = "274df120e9065bdd08eb1120e0375e3dc1ae8465";
170− sha256 = "0llk7bxmk66wdiy42h32vj1jfk8zg351xq21hwhrq7gkfljghffp";
171− };
172−}
173−{
174− goPackagePath = "golang.org/x/crypto";
175− fetch = {
176− type = "git";
177− url = "https://github.com/golang/crypto.git";
178− rev = "1f22c0103821b9390939b6776727195525381532";
179− sha256 = "1acy12f396sr3lrnbcnym5q72qnlign5bagving41qijzjnc219m";
180− };
181−}
182−{
183− goPackagePath = "golang.org/x/tools";
184− fetch = {
185− type = "git";
186− url = "https://github.com/golang/tools.git";
187− rev = "8b178a93c1f5b5c8f4e36cd6bd64e0d5bf0ee180";
188− sha256 = "0rqm56c4acrvyqsp53dkzr34pkz922x4rwknaslwlbkyc4gyg2c8";
189− };
190−}
191−{
192− goPackagePath = "gopkg.in/fatih/pool.v2";
193− fetch = {
194− type = "git";
195− url = "https://github.com/fatih/pool.git";
196− rev = "cba550ebf9bce999a02e963296d4bc7a486cb715";
197− sha256 = "1jlrakgnpvhi2ny87yrsj1gyrcncfzdhypa9i2mlvvzqlj4r0dn0";
198− };
199−}
200−]
pkgs/servers/nosql/influxdb/gdm2nix.rbdeleted−39
@@ -1,39 +0,0 @@
1−#!/usr/bin/env ruby
2−#
3−#
4−require "json"
5−
6−redirects = {
7− "collectd.org" => "github.com/collectd/go-collectd",
8− "git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.golang.git" => "github.com/eclipse/paho.mqtt.golang",
9− "golang.org/x/net" => "github.com/golang/net",
10− "golang.org/x/crypto" => "github.com/golang/crypto",
11− "golang.org/x/text" => "github.com/golang/text",
12− "golang.org/x/tools" => "github.com/golang/tools",
13− "gopkg.in/fatih/pool.v2" => "github.com/fatih/pool",
14−}
15−
16−godeps = ARGV[0] || "Godeps"
17−
18−deps = File.read(godeps).lines.map do |line|
19− (name, rev) = line.split(" ")
20−
21− host = redirects.fetch(name, name)
22−
23− url = "https://#{host}.git"
24−
25− xxx = JSON.load(`nix-prefetch-git #{url} #{rev}`)
26−
27− {
28− goPackagePath: name,
29− fetch: {
30− type: "git",
31− url: url,
32− rev: rev,
33− sha256: xxx['sha256'],
34− }
35− }
36−end
37−
38−#TODO: move to deps.nix in NIXON format
39−File.write("deps.json", JSON.pretty_generate(deps))
pkgs/servers/nosql/influxdb/v0.nixdeleted−13
@@ -1,13 +0,0 @@
1−{ lib, buildGoPackage, fetchFromGitHub }@args:
2−
3−import ./default.nix (args // rec {
4−
5− version = "0.13.0";
6−
7− src = fetchFromGitHub {
8− owner = "influxdata";
9− repo = "influxdb";
10− rev = "v${version}";
11− sha256 = "0f7af5jb1f65qnslhc7zccml1qvk6xx5naczqfsf4s1zc556fdi4";
12− };
13−})
pkgs/servers/nosql/influxdb/v1.nixdeleted−13
@@ -1,13 +0,0 @@
1−{ lib, buildGoPackage, fetchFromGitHub }@args:
2−
3−import ./default.nix (args // rec {
4−
5− version = "1.0.2";
6−
7− src = fetchFromGitHub {
8− owner = "influxdata";
9− repo = "influxdb";
10− rev = "v${version}";
11− sha256 = "0z8y995gm2hpxny7l5nx5fjc5c26hfgvghwmzva8d1mrlnapcsyc";
12− };
13−})
pkgs/top-level/all-packages.nix+1−3
@@ -10141,9 +10141,7 @@ in
1014110141
1014210142 riak = callPackage ../servers/nosql/riak/2.1.1.nix { };
1014310143
10144− influxdb = callPackage ../servers/nosql/influxdb/v0.nix { };
10145−
10146− influxdb10 = callPackage ../servers/nosql/influxdb/v1.nix { };
10144+ influxdb = callPackage ../servers/nosql/influxdb { };
1014710145
1014810146 mysql55 = callPackage ../servers/sql/mysql/5.5.x.nix {
1014910147 inherit (darwin) cctools;