git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #146602 from vdemeester/kail-015
commit82bc9a725de0abd9cfb56ce066964b9a9fa855d7 authorSandro <sandro.jaeckel@gmail.com> dateSat 20 Nov 2021, 19:39 (5 years ago) parent6de2e8217c12a8
2 files changed+10−422
pkgs/tools/networking/kail/default.nix+10−14 pkgs/tools/networking/kail/deps.nix−408
pkgs/tools/networking/kail/default.nix+10−14
@@ -1,27 +1,23 @@
1−{ lib, buildGoPackage, fetchFromGitHub }:
1+{ lib, buildGoModule, fetchFromGitHub }:
22
3−buildGoPackage rec {
3+buildGoModule rec {
44 pname = "kail";
5− version = "0.8.0";
5+ version = "0.15.0";
66
7− goPackagePath = "github.com/boz/kail";
7+ ldflags = [
8+ "-s"
9+ "-w"
10+ "-X main.version=${version}"
11+ ];
812
913 src = fetchFromGitHub {
1014 owner = "boz";
1115 repo = "kail";
1216 rev = "v${version}";
13− sha256 = "0ibk7j40pj6f2086qcnwp998wld61d2gvrv7yiy6hlkalhww2pq7";
17+ sha256 = "0b4abzk8lc5qa04ywkl8b5hb9jmxhyi2dpgbl27gmw81525wjnj7";
1418 };
1519
16− # regenerate deps.nix using following steps:
17− #
18− # go get -u github.com/boz/kail
19− # cd $GOPATH/src/github.com/boz/kail
20− # git checkout <version>
21− # dep init
22− # dep2nix
23− deleteVendor = true;
24− goDeps = ./deps.nix;
20+ vendorSha256 = "09s7sq23hglcb2rsi9igzql39zs4238f3jfmvxz9a8v41da225np";
2521
2622 meta = with lib; {
2723 description = "Kubernetes log viewer";
pkgs/tools/networking/kail/deps.nixdeleted−408
@@ -1,408 +0,0 @@
1−# file generated from Gopkg.lock using dep2nix (https://github.com/nixcloud/dep2nix)
2−[
3− {
4− goPackagePath = "cloud.google.com/go";
5− fetch = {
6− type = "git";
7− url = "https://code.googlesource.com/gocloud";
8− rev = "06f11fffc537c4aef126d9fd3a92e2d7968f118f";
9− sha256 = "1zhr1pyzk44zb95r2bcs4kkngvmzdr5bac55315nnzl3adx4y4dn";
10− };
11− }
12− {
13− goPackagePath = "github.com/Azure/go-autorest";
14− fetch = {
15− type = "git";
16− url = "https://github.com/Azure/go-autorest";
17− rev = "1ff28809256a84bb6966640ff3d0371af82ccba4";
18− sha256 = "0sxvj2j1833bqwxvhq3wq3jgq73rnb81pnzvl0x3y1m0hzpaf2zv";
19− };
20− }
21− {
22− goPackagePath = "github.com/alecthomas/template";
23− fetch = {
24− type = "git";
25− url = "https://github.com/alecthomas/template";
26− rev = "a0175ee3bccc567396460bf5acd36800cb10c49c";
27− sha256 = "0qjgvvh26vk1cyfq9fadyhfgdj36f1iapbmr5xp6zqipldz8ffxj";
28− };
29− }
30− {
31− goPackagePath = "github.com/alecthomas/units";
32− fetch = {
33− type = "git";
34− url = "https://github.com/alecthomas/units";
35− rev = "2efee857e7cfd4f3d0138cc3cbb1b4966962b93a";
36− sha256 = "1j65b91qb9sbrml9cpabfrcf07wmgzzghrl7809hjjhrmbzri5bl";
37− };
38− }
39− {
40− goPackagePath = "github.com/boz/go-lifecycle";
41− fetch = {
42− type = "git";
43− url = "https://github.com/boz/go-lifecycle";
44− rev = "c39961a5a0ce6b046f15d62bcbed79701666a9e0";
45− sha256 = "12xzjzgi0pspb28xrcmp4v33jij2bbg609z1kpq1pql9mxs6h31k";
46− };
47− }
48− {
49− goPackagePath = "github.com/boz/go-logutil";
50− fetch = {
51− type = "git";
52− url = "https://github.com/boz/go-logutil";
53− rev = "9d21a9e4757dbc497f947fe5253f9570c34562fa";
54− sha256 = "0rhhyvvz1lvjalv3hx4yvyh90jqfia27nzx9m54m0i7d0znrwpbj";
55− };
56− }
57− {
58− goPackagePath = "github.com/boz/kcache";
59− fetch = {
60− type = "git";
61− url = "https://github.com/boz/kcache";
62− rev = "a012826955254d3f31548911e75a9dbd817f9470";
63− sha256 = "0xqw4mgz0scjrcfsyfwfdhggq1q80dv4mdqgdaryy5ir18srg15l";
64− };
65− }
66− {
67− goPackagePath = "github.com/davecgh/go-spew";
68− fetch = {
69− type = "git";
70− url = "https://github.com/davecgh/go-spew";
71− rev = "adab96458c51a58dc1783b3335dcce5461522e75";
72− sha256 = "1y743w875aqqwggrh4lwlmqyx7ls5m1bnw5y4vr3zps4ib3gb4n5";
73− };
74− }
75− {
76− goPackagePath = "github.com/dgrijalva/jwt-go";
77− fetch = {
78− type = "git";
79− url = "https://github.com/dgrijalva/jwt-go";
80− rev = "06ea1031745cb8b3dab3f6a236daf2b0aa468b7e";
81− sha256 = "08m27vlms74pfy5z79w67f9lk9zkx6a9jd68k3c4msxy75ry36mp";
82− };
83− }
84− {
85− goPackagePath = "github.com/fatih/color";
86− fetch = {
87− type = "git";
88− url = "https://github.com/fatih/color";
89− rev = "67c513e5729f918f5e69786686770c27141a4490";
90− sha256 = "045i2y2h1a6ml7fm1b3if4692320kjgg3cpxn7chlmpq7z1bmrrn";
91− };
92− }
93− {
94− goPackagePath = "github.com/ghodss/yaml";
95− fetch = {
96− type = "git";
97− url = "https://github.com/ghodss/yaml";
98− rev = "0ca9ea5df5451ffdf184b4428c902747c2c11cd7";
99− sha256 = "0skwmimpy7hlh7pva2slpcplnm912rp3igs98xnqmn859kwa5v8g";
100− };
101− }
102− {
103− goPackagePath = "github.com/gogo/protobuf";
104− fetch = {
105− type = "git";
106− url = "https://github.com/gogo/protobuf";
107− rev = "1c2b16bc280d6635de6c52fc1471ab962dc36ec9";
108− sha256 = "0h9vkfy3ydz0d6x72853yg49r9k54cgjnlv6a7v12gzqw47p941i";
109− };
110− }
111− {
112− goPackagePath = "github.com/golang/glog";
113− fetch = {
114− type = "git";
115− url = "https://github.com/golang/glog";
116− rev = "23def4e6c14b4da8ac2ed8007337bc5eb5007998";
117− sha256 = "0jb2834rw5sykfr937fxi8hxi2zy80sj2bdn9b3jb4b26ksqng30";
118− };
119− }
120− {
121− goPackagePath = "github.com/golang/protobuf";
122− fetch = {
123− type = "git";
124− url = "https://github.com/golang/protobuf";
125− rev = "1909bc2f63dc92bb931deace8b8312c4db72d12f";
126− sha256 = "0d4pknkgp5qlbfpw8xp81dqgrfm0na1pfi2ll559nwvjz5vc90g5";
127− };
128− }
129− {
130− goPackagePath = "github.com/google/btree";
131− fetch = {
132− type = "git";
133− url = "https://github.com/google/btree";
134− rev = "316fb6d3f031ae8f4d457c6c5186b9e3ded70435";
135− sha256 = "1fyj10cy2d37mpfk73hjfjwpsgpnmdzf2mrkkvzyx0d41sf46xfd";
136− };
137− }
138− {
139− goPackagePath = "github.com/google/gofuzz";
140− fetch = {
141− type = "git";
142− url = "https://github.com/google/gofuzz";
143− rev = "24818f796faf91cd76ec7bddd72458fbced7a6c1";
144− sha256 = "0cq90m2lgalrdfrwwyycrrmn785rgnxa3l3vp9yxkvnv88bymmlm";
145− };
146− }
147− {
148− goPackagePath = "github.com/googleapis/gnostic";
149− fetch = {
150− type = "git";
151− url = "https://github.com/googleapis/gnostic";
152− rev = "57b0290873708074edf87ad921eccec8bef5f8ec";
153− sha256 = "14raxxsx2bww4f0am0yygv64h950avkswm7bdvq6k4d4lry6dgg8";
154− };
155− }
156− {
157− goPackagePath = "github.com/gophercloud/gophercloud";
158− fetch = {
159− type = "git";
160− url = "https://github.com/gophercloud/gophercloud";
161− rev = "b4c2377fa77951a0e08163f52dc9b3e206355194";
162− sha256 = "00j9ny59zlf3ajwydf2k41n3l92kl2hf0ljx9x73jcfkdkn2xv5k";
163− };
164− }
165− {
166− goPackagePath = "github.com/gregjones/httpcache";
167− fetch = {
168− type = "git";
169− url = "https://github.com/gregjones/httpcache";
170− rev = "c1f8028e62adb3d518b823a2f8e6a95c38bdd3aa";
171− sha256 = "1v7fb4ix2xg0plx5p1f7xd1srvimyss7v7ppn3j7py9ycl560qhr";
172− };
173− }
174− {
175− goPackagePath = "github.com/imdario/mergo";
176− fetch = {
177− type = "git";
178− url = "https://github.com/imdario/mergo";
179− rev = "e3000cb3d28c72b837601cac94debd91032d19fe";
180− sha256 = "1bsz1aj0h266x7g08jj7f3nd3d5islbad0cygb5vh37hjgzirg4d";
181− };
182− }
183− {
184− goPackagePath = "github.com/json-iterator/go";
185− fetch = {
186− type = "git";
187− url = "https://github.com/json-iterator/go";
188− rev = "ab8a2e0c74be9d3be70b3184d9acc634935ded82";
189− sha256 = "1x3wz44p1238gpyzkiiilvvrq9q8dwjdm9kdidq65yjq0zcn0sq4";
190− };
191− }
192− {
193− goPackagePath = "github.com/mattn/go-colorable";
194− fetch = {
195− type = "git";
196− url = "https://github.com/mattn/go-colorable";
197− rev = "6df6d4d004b64986bbb0d1b25945f42b44787e90";
198− sha256 = "0ha2biq708is9i3hqc30vihcpajak3qawn0rnacb9k1gyxsxwb60";
199− };
200− }
201− {
202− goPackagePath = "github.com/mattn/go-isatty";
203− fetch = {
204− type = "git";
205− url = "https://github.com/mattn/go-isatty";
206− rev = "fc9e8d8ef48496124e79ae0df75490096eccf6fe";
207− sha256 = "1r5f9gkavkb1w6sr0qs5kj16706xirl3qnlq3hqpszkw9w27x65a";
208− };
209− }
210− {
211− goPackagePath = "github.com/modern-go/concurrent";
212− fetch = {
213− type = "git";
214− url = "https://github.com/modern-go/concurrent";
215− rev = "bacd9c7ef1dd9b15be4a9909b8ac7a4e313eec94";
216− sha256 = "0s0fxccsyb8icjmiym5k7prcqx36hvgdwl588y0491gi18k5i4zs";
217− };
218− }
219− {
220− goPackagePath = "github.com/modern-go/reflect2";
221− fetch = {
222− type = "git";
223− url = "https://github.com/modern-go/reflect2";
224− rev = "94122c33edd36123c84d5368cfb2b69df93a0ec8";
225− sha256 = "06a3sablw53n1dqqbr2f53jyksbxdmmk8axaas4yvnhyfi55k4lf";
226− };
227− }
228− {
229− goPackagePath = "github.com/petar/GoLLRB";
230− fetch = {
231− type = "git";
232− url = "https://github.com/petar/GoLLRB";
233− rev = "53be0d36a84c2a886ca057d34b6aa4468df9ccb4";
234− sha256 = "01xp3lcamqkvl91jg6ly202gdsgf64j39rkrcqxi6v4pbrcv7hz0";
235− };
236− }
237− {
238− goPackagePath = "github.com/peterbourgon/diskv";
239− fetch = {
240− type = "git";
241− url = "https://github.com/peterbourgon/diskv";
242− rev = "5f041e8faa004a95c88a202771f4cc3e991971e6";
243− sha256 = "1mxpa5aad08x30qcbffzk80g9540wvbca4blc1r2qyzl65b8929b";
244− };
245− }
246− {
247− goPackagePath = "github.com/pkg/errors";
248− fetch = {
249− type = "git";
250− url = "https://github.com/pkg/errors";
251− rev = "2b3a18b5f0fb6b4f9190549597d3f962c02bc5eb";
252− sha256 = "07fd392kqyaj7fnl4sgzy7fcs0sw4jx3mx2khhgk64n9j9i37l59";
253− };
254− }
255− {
256− goPackagePath = "github.com/pmezard/go-difflib";
257− fetch = {
258− type = "git";
259− url = "https://github.com/pmezard/go-difflib";
260− rev = "792786c7400a136282c1664665ae0a8db921c6c2";
261− sha256 = "0c1cn55m4rypmscgf0rrb88pn58j3ysvc2d0432dp3c6fqg6cnzw";
262− };
263− }
264− {
265− goPackagePath = "github.com/sirupsen/logrus";
266− fetch = {
267− type = "git";
268− url = "https://github.com/sirupsen/logrus";
269− rev = "181d419aa9e2223811b824e8f0b4af96f9ba9302";
270− sha256 = "08ff47w4clnkym3l0v4hhhfq21zvvwzpljvs0qvki5k0azv7siyc";
271− };
272− }
273− {
274− goPackagePath = "github.com/spf13/pflag";
275− fetch = {
276− type = "git";
277− url = "https://github.com/spf13/pflag";
278− rev = "e57e3eeb33f795204c1ca35f56c44f83227c6e66";
279− sha256 = "13mhx4i913jil32j295m3a36jzvq1y64xig0naadiz7q9ja011r2";
280− };
281− }
282− {
283− goPackagePath = "github.com/stretchr/testify";
284− fetch = {
285− type = "git";
286− url = "https://github.com/stretchr/testify";
287− rev = "2aa2c176b9dab406a6970f6a55f513e8a8c8b18f";
288− sha256 = "1j92x4291flz3i4pk6bi3y59nnsi6lj34zmyfp7axf68fd8vm5ml";
289− };
290− }
291− {
292− goPackagePath = "golang.org/x/crypto";
293− fetch = {
294− type = "git";
295− url = "https://go.googlesource.com/crypto";
296− rev = "b176d7def5d71bdd214203491f89843ed217f420";
297− sha256 = "1ayi4iagsxhf193rx93j6y2rb48730hgm2qbahiq9lawm5g3vc14";
298− };
299− }
300− {
301− goPackagePath = "golang.org/x/net";
302− fetch = {
303− type = "git";
304− url = "https://go.googlesource.com/net";
305− rev = "1c05540f6879653db88113bc4a2b70aec4bd491f";
306− sha256 = "0h8yqb0vcqgllgydrf9d3rzp83w8wlr8f0nm6r1rwf2qg30pq1pd";
307− };
308− }
309− {
310− goPackagePath = "golang.org/x/oauth2";
311− fetch = {
312− type = "git";
313− url = "https://go.googlesource.com/oauth2";
314− rev = "9a379c6b3e95a790ffc43293c2a78dee0d7b6e20";
315− sha256 = "156wff8s9g3sxni2z80wky4v688pvdgfzxbpfp5rmqjvgqnifxkf";
316− };
317− }
318− {
319− goPackagePath = "golang.org/x/sys";
320− fetch = {
321− type = "git";
322− url = "https://go.googlesource.com/sys";
323− rev = "2d3e384235de683634e9080b58f757466840aa48";
324− sha256 = "1w8zrcjv4sfi3skchdbvbixgwzp5n1g0vny8r20dlapnqbazah0x";
325− };
326− }
327− {
328− goPackagePath = "golang.org/x/text";
329− fetch = {
330− type = "git";
331− url = "https://go.googlesource.com/text";
332− rev = "b19bf474d317b857955b12035d2c5acb57ce8b01";
333− sha256 = "0wc8csaafp0ps9jb2hdk8d6xpyw1axhk1np73h0z17x09zk3ylcr";
334− };
335− }
336− {
337− goPackagePath = "golang.org/x/time";
338− fetch = {
339− type = "git";
340− url = "https://go.googlesource.com/time";
341− rev = "fbb02b2291d28baffd63558aa44b4b56f178d650";
342− sha256 = "0jjqcv6rzihlgg4i797q80g1f6ch5diz2kxqh6488gwkb6nds4h4";
343− };
344− }
345− {
346− goPackagePath = "google.golang.org/appengine";
347− fetch = {
348− type = "git";
349− url = "https://github.com/golang/appengine";
350− rev = "d9a072cfa7b9736e44311ef77b3e09d804bfa599";
351− sha256 = "07x7s65q9pydpaniga6zf259kw7qs40q6554wb22inq423wcs0nb";
352− };
353− }
354− {
355− goPackagePath = "gopkg.in/alecthomas/kingpin.v2";
356− fetch = {
357− type = "git";
358− url = "https://github.com/alecthomas/kingpin";
359− rev = "1087e65c9441605df944fb12c33f0fe7072d18ca";
360− sha256 = "18llqzkdqf62qbqcv2fd3j0igl6cwwn4dissf5skkvxrcxjcmmj0";
361− };
362− }
363− {
364− goPackagePath = "gopkg.in/inf.v0";
365− fetch = {
366− type = "git";
367− url = "https://github.com/go-inf/inf";
368− rev = "3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4";
369− sha256 = "0rf3vwyb8aqnac9x9d6ax7z5526c45a16yjm2pvkijr6qgqz8b82";
370− };
371− }
372− {
373− goPackagePath = "gopkg.in/yaml.v2";
374− fetch = {
375− type = "git";
376− url = "https://github.com/go-yaml/yaml";
377− rev = "eb3733d160e74a9c7e442f435eb3bea458e1d19f";
378− sha256 = "1srhvcaa9db3a6xj29mkjr5kg33y71pclrlx4vcwz5m1lgb5c7q6";
379− };
380− }
381− {
382− goPackagePath = "k8s.io/api";
383− fetch = {
384− type = "git";
385− url = "https://github.com/kubernetes/api";
386− rev = "2d6f90ab1293a1fb871cf149423ebb72aa7423aa";
387− sha256 = "1cwrwdm104xd3608b1a5mw6a19w45532p647xdwnyn62rw2f08jx";
388− };
389− }
390− {
391− goPackagePath = "k8s.io/apimachinery";
392− fetch = {
393− type = "git";
394− url = "https://github.com/kubernetes/apimachinery";
395− rev = "103fd098999dc9c0c88536f5c9ad2e5da39373ae";
396− sha256 = "04navnpm59d75dhlz07rmay7m2izrf4m0i9xklxzqg7mlk9g20jc";
397− };
398− }
399− {
400− goPackagePath = "k8s.io/client-go";
401− fetch = {
402− type = "git";
403− url = "https://github.com/kubernetes/client-go";
404− rev = "1f13a808da65775f22cbf47862c4e5898d8f4ca1";
405− sha256 = "1vkcjg80l49hxiadqmkkd031kj6kc10m8mwcnla3k1ml8fv4qna9";
406− };
407− }
408−]