tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
mongodb-tools: 3.5.13 -> 3.7.2
volth
8 years ago
3d75eacc
2fa6cd25
+6
-187
2 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
mongodb-tools
default.nix
deps.nix
+6
-5
pkgs/tools/misc/mongodb-tools/default.nix
reviewed
···
3
3
let
4
4
tools = [
5
5
"bsondump" "mongodump" "mongoexport" "mongofiles" "mongoimport"
6
6
-
"mongooplog" "mongorestore" "mongostat" "mongotop"
6
6
+
"mongoreplay" "mongorestore" "mongostat" "mongotop"
7
7
];
8
8
in
9
9
···
11
11
12
12
buildGoPackage rec {
13
13
name = "mongo-tools-${version}";
14
14
-
version = "3.5.13";
14
14
+
version = "3.7.2";
15
15
rev = "r${version}";
16
16
17
17
goPackagePath = "github.com/mongodb/mongo-tools";
···
21
21
inherit rev;
22
22
owner = "mongodb";
23
23
repo = "mongo-tools";
24
24
-
sha256 = "00klm4pyx5k39nn4pmfrpnkqxdhbzm7lprgwxszpirzrarh2g164";
24
24
+
sha256 = "1y5hd4qw7422sqkj8vmy4agscvin3ck54r515bjrzn69iw73nhfl";
25
25
};
26
26
27
27
-
goDeps = ./deps.nix;
28
28
-
29
27
nativeBuildInputs = [ pkgconfig ];
30
28
buildInputs = [ openssl_1_0_2 libpcap ];
31
29
32
30
# Mongodb incorrectly names all of their binaries main
33
31
# Let's work around this with our own installer
34
32
buildPhase = ''
33
33
+
# move vendored codes so nixpkgs go builder could find it
34
34
+
mv go/src/github.com/mongodb/mongo-tools/vendor/src/* go/src/github.com/mongodb/mongo-tools/vendor/
35
35
+
35
36
runHook preBuild
36
37
${stdenv.lib.concatMapStrings (t: ''
37
38
go build -o "$bin/bin/${t}" -tags ssl -ldflags "-s -w" $goPackagePath/${t}/main
-182
pkgs/tools/misc/mongodb-tools/deps.nix
reviewed
···
1
1
-
[
2
2
-
{
3
3
-
goPackagePath = "golang.org/x/sys";
4
4
-
fetch = {
5
5
-
type = "git";
6
6
-
url = "https://go.googlesource.com/sys";
7
7
-
rev = "314a259e304ff91bd6985da2a7149bbf91237993";
8
8
-
sha256 = "0vya62c3kmhmqx6awlxx8hc84987xkym9rhs0q28vlhwk9kczdaa";
9
9
-
};
10
10
-
}
11
11
-
{
12
12
-
goPackagePath = "golang.org/x/crypto";
13
13
-
fetch = {
14
14
-
type = "git";
15
15
-
url = "https://github.com/golang/crypto";
16
16
-
rev = "1f22c0103821b9390939b6776727195525381532";
17
17
-
sha256 = "1acy12f396sr3lrnbcnym5q72qnlign5bagving41qijzjnc219m";
18
18
-
};
19
19
-
}
20
20
-
{
21
21
-
goPackagePath = "github.com/howeyc/gopass";
22
22
-
fetch = {
23
23
-
type = "git";
24
24
-
url = "https://github.com/howeyc/gopass";
25
25
-
rev = "bf9dde6d0d2c004a008c27aaee91170c786f6db8";
26
26
-
sha256 = "1jxzyfnqi0h1fzlsvlkn10bncic803bfhslyijcxk55mgh297g45";
27
27
-
};
28
28
-
}
29
29
-
{
30
30
-
goPackagePath = "gopkg.in/mgo.v2";
31
31
-
fetch = {
32
32
-
type = "git";
33
33
-
url = "https://github.com/10gen/mgo";
34
34
-
rev = "39b4000d99037e917f3a3b9d2dcab667a9ef284a";
35
35
-
sha256 = "1m0xgd3y32g15fhl204g2caarfi5rn41m8pyym0i2gl3jnv5zw99";
36
36
-
};
37
37
-
}
38
38
-
{
39
39
-
goPackagePath = "github.com/google/gopacket";
40
40
-
fetch = {
41
41
-
type = "git";
42
42
-
url = "https://github.com/google/gopacket";
43
43
-
rev = "93b782132903d1846aab74cb1f62e6138564949f";
44
44
-
sha256 = "0l5m5a8dnqbkhphyfq7anj5zv59s74q2l7i6w9r7xwysfiqyq335";
45
45
-
};
46
46
-
}
47
47
-
{
48
48
-
goPackagePath = "github.com/patrickmn/go-cache";
49
49
-
fetch = {
50
50
-
type = "git";
51
51
-
url = "https://github.com/patrickmn/go-cache";
52
52
-
rev = "1881a9bccb818787f68c52bfba648c6cf34c34fa";
53
53
-
sha256 = "1nd0kqijx6mrxb8wlh20bx73mwj0fqzla2sr68y6j6lz3fsy1fw2";
54
54
-
};
55
55
-
}
56
56
-
{
57
57
-
goPackagePath = "github.com/spacemonkeygo/openssl";
58
58
-
fetch = {
59
59
-
type = "git";
60
60
-
url = "https://github.com/10gen/openssl";
61
61
-
rev = "2692b9f6fa95e72c75f8d9ba76e49c5dfd2cf8e4";
62
62
-
sha256 = "16x2mx51977jrqw8d9hqhqmx892v2qf1k5xb01hhfklh58f527k2";
63
63
-
};
64
64
-
}
65
65
-
{
66
66
-
goPackagePath = "github.com/jtolds/gls";
67
67
-
fetch = {
68
68
-
type = "git";
69
69
-
url = "https://github.com/jtolds/gls";
70
70
-
rev = "8ddce2a84170772b95dd5d576c48d517b22cac63";
71
71
-
sha256 = "11rp9wbzkd71640rq0nwmgsddskx3qac8wzqz71ksdb7ixjj5fmj";
72
72
-
};
73
73
-
}
74
74
-
{
75
75
-
goPackagePath = "github.com/spacemonkeygo/spacelog";
76
76
-
fetch = {
77
77
-
type = "git";
78
78
-
url = "https://github.com/spacemonkeygo/spacelog";
79
79
-
rev = "f936fb050dc6b5fe4a96b485a6f069e8bdc59aeb";
80
80
-
sha256 = "00an6zlhjk5l0vk1zjzshhswsd0h4syi48n50hv0fcnbmpxc5hv2";
81
81
-
};
82
82
-
}
83
83
-
{
84
84
-
goPackagePath = "gopkg.in/tomb.v2";
85
85
-
fetch = {
86
86
-
type = "git";
87
87
-
url = "https://gopkg.in/tomb.v2";
88
88
-
rev = "14b3d72120e8d10ea6e6b7f87f7175734b1faab8";
89
89
-
sha256 = "1nza31jvkpka5431c4bdbirvjdy36b1b55sbzljqhqih25jrcjx5";
90
90
-
};
91
91
-
}
92
92
-
{
93
93
-
goPackagePath = "github.com/jtolds/gls";
94
94
-
fetch = {
95
95
-
type = "git";
96
96
-
url = "https://github.com/jtolds/gls";
97
97
-
rev = "8ddce2a84170772b95dd5d576c48d517b22cac63";
98
98
-
sha256 = "11rp9wbzkd71640rq0nwmgsddskx3qac8wzqz71ksdb7ixjj5fmj";
99
99
-
};
100
100
-
}
101
101
-
{
102
102
-
goPackagePath = "github.com/smartystreets/assertions";
103
103
-
fetch = {
104
104
-
type = "git";
105
105
-
url = "https://github.com/smartystreets/assertions";
106
106
-
rev = "287b4346dc4e71a038c346375a9d572453bc469b";
107
107
-
sha256 = "1nw9j9aircra68lbkp5bq4l8ayq4g3fvbb2x8qd2hg0vwgn5yaij";
108
108
-
};
109
109
-
}
110
110
-
{
111
111
-
goPackagePath = "github.com/smartystreets/goconvey";
112
112
-
fetch = {
113
113
-
type = "git";
114
114
-
url = "https://github.com/smartystreets/goconvey";
115
115
-
rev = "bf58a9a1291224109919756b4dcc469c670cc7e4";
116
116
-
sha256 = "1k8k6vvlpl5a19dbrywxjmcia36macjbajx2hb6ci64rdfyf5kz5";
117
117
-
};
118
118
-
}
119
119
-
{
120
120
-
goPackagePath = "github.com/jacobsa/oglematchers";
121
121
-
fetch = {
122
122
-
type = "git";
123
123
-
url = "https://github.com/jacobsa/oglematchers";
124
124
-
rev = "3ecefc49db07722beca986d9bb71ddd026b133f0";
125
125
-
sha256 = "0vrk5sfs1ymkg0gv5n5dn9x0kqiaw8gaapljj8q75mgrr1p5149y";
126
126
-
};
127
127
-
}
128
128
-
{
129
129
-
goPackagePath = "github.com/3rf/mongo-lint";
130
130
-
fetch = {
131
131
-
type = "git";
132
132
-
url = "https://github.com/3rf/mongo-lint";
133
133
-
rev = "3550fdcf1f43b89aaeabaa4559eaae6dc4407e42";
134
134
-
sha256 = "19b60a3i6kzssd15dg57y4bg49sw41idrsjdi8vr4j5lr5d7gviv";
135
135
-
};
136
136
-
}
137
137
-
{
138
138
-
goPackagePath = "github.com/mattn/go-runewidth";
139
139
-
fetch = {
140
140
-
type = "git";
141
141
-
url = "https://github.com/mattn/go-runewidth";
142
142
-
rev = "d6bea18f789704b5f83375793155289da36a3c7f";
143
143
-
sha256 = "1hnigpn7rjbwd1ircxkyx9hvi0xmxr32b2jdy2jzw6b3jmcnz1fs";
144
144
-
};
145
145
-
}
146
146
-
{
147
147
-
goPackagePath = "github.com/10gen/escaper";
148
148
-
fetch = {
149
149
-
type = "git";
150
150
-
url = "https://github.com/10gen/escaper";
151
151
-
rev = "17fe61c658dcbdcbf246c783f4f7dc97efde3a8b";
152
152
-
sha256 = "1iw86lg8ad5gdm46ryf4v431ix834l52lrjvcahq3c4dw1ylnbvl";
153
153
-
};
154
154
-
}
155
155
-
{
156
156
-
goPackagePath = "github.com/golang/snappy";
157
157
-
fetch = {
158
158
-
type = "git";
159
159
-
url = "https://github.com/golang/snappy";
160
160
-
rev = "d9eb7a3d35ec988b8585d4a0068e462c27d28380";
161
161
-
sha256 = "0wynarlr1y8sm9y9l29pm9dgflxriiialpwn01066snzjxnpmbyn";
162
162
-
};
163
163
-
}
164
164
-
{
165
165
-
goPackagePath = "github.com/nsf/termbox-go";
166
166
-
fetch = {
167
167
-
type = "git";
168
168
-
url = "https://github.com/nsf/termbox-go";
169
169
-
rev = "0723e7c3d0a317dea811f0fbe4d6edd81908c971";
170
170
-
sha256 = "1ak35nhlgjpbpnh7v9qvjyfsq52liz3niqfqva76p7a68pblwbr7";
171
171
-
};
172
172
-
}
173
173
-
{
174
174
-
goPackagePath = "github.com/jessevdk/go-flags";
175
175
-
fetch = {
176
176
-
type = "git";
177
177
-
url = "https://github.com/jessevdk/go-flags";
178
178
-
rev = "97448c91aac742cbca3d020b3e769013a420a06f";
179
179
-
sha256 = "0fv3yxvq8m3639a279hq4pf0c52ngqfl5n1vklcfympndrb7zjzj";
180
180
-
};
181
181
-
}
182
182
-
]