1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
| | ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2017-2020 Leo Famulari <leo@famulari.name>
;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
;;; Copyright © 2018 Pierre Neidhardt <ambrevar@gmail.com>
;;; Copyright © 2018 Pierre-Antoine Rouby <pierre-antoine.rouby@inria.fr>
;;; Copyright © 2019 Brian Leung <bkleung89@gmail.com>
;;; Copyright © 2019, 2021 Vagrant Cascadian <vagrant@debian.org>
;;; Copyright © 2019-2021 Martin Becze <mjbecze@riseup.net>
;;; Copyright © 2019-2022 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Alex Griffin <a@ajgrf.com>
;;; Copyright © 2020 Joseph LaFreniere <joseph@lafreniere.xyz>
;;; Copyright © 2020 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2020, 2021 raingloom <raingloom@riseup.net>
;;; Copyright © 2021 Collin J. Doering <collin@rekahsoft.ca>
;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
;;; Copyright © 2021 Raghav Gururajan <rg@raghavgururajan.name>
;;; Copyright © 2021 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
;;; Copyright © 2021 raingloom <raingloom@riseup.net>
;;; Copyright © 2021, 2023, 2024 Sharlatan Hellseher <sharlatanus@gmail.com>
;;; Copyright © 2022 Dhruvin Gandhi <contact@dhruvin.dev>
;;; Copyright © 2022 Dominic Martinez <dom@dominicm.dev>
;;; Copyright © 2023 Benjamin <benjamin@uvy.fr>
;;; Copyright © 2023 Fries <fries1234@protonmail.com>
;;; Copyright © 2023 Hilton Chain <hako@ultrarare.space>
;;; Copyright © 2023 Katherine Cox-Buday <cox.katherine.e@gmail.com>
;;; Copyright © 2023 Nguyễn Gia Phong <mcsinyx@disroot.org>
;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
;;; Copyright © 2023 Sergey Trofimov <sarg@sarg.org.ru>
;;; Copyright © 2023 Thomas Ieong <th.ieong@free.fr>
;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2024 Troy Figiel <troy@troyfigiel.com>
;;; Copyright © 2024 Jesse Eisses <jesse@eisses.email>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages golang-xyz)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix build-system go)
#:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gcc)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-build)
#:use-module (gnu packages golang-check)
#:use-module (gnu packages golang-compression)
#:use-module (gnu packages golang-crypto)
#:use-module (gnu packages linux))
;;; Commentary:
;;;
;;; Nomad Golang modules (libraries) are welcome here.
;;;
;;; Please: Try to add new module packages in alphabetic order.
;;;
;;; Code:
\f
;;;
;;; Libraries:
;;;
(define-public go-code-cloudfoundry-org-bytefmt
(package
(name "go-code-cloudfoundry-org-bytefmt")
(version "0.0.0-20240329144308-0c372429d24b")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/cloudfoundry/bytefmt")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0aqzbiy3idddyj39i7ydkjhnmpcbwr99g094kqiw72m9flrvrnxj"))
(snippet
#~(begin (use-modules (guix build utils))
(delete-file-recursively "vendor")))))
(build-system go-build-system)
(arguments
(list
#:go go-1.20
#:import-path "code.cloudfoundry.org/bytefmt"))
(native-inputs
(list go-github-com-onsi-gomega
go-github-com-onsi-ginkgo-v2))
(home-page "https://pkg.go.dev/code.cloudfoundry.org/bytefmt")
(synopsis "Human readable byte formatter for Golang")
(description
"Package bytefmt contains helper methods and constants for converting to and from
a human-readable byte format.")
(license license:asl2.0)))
(define-public go-github-com-a8m-envsubst
(package
(name "go-github-com-a8m-envsubst")
(version "1.4.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/a8m/envsubst")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1mjs729g9nmalx25l4nn3p07amm4vsciqmdf0jbh2jwpy1zymz41"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/a8m/envsubst"))
(home-page "https://github.com/a8m/envsubst")
(synopsis "Environment variables substitution for Go")
(description
"This package provides a library for environment variables
substitution.")
(license license:expat)))
(define-public go-github-com-alecthomas-chroma
(package
(name "go-github-com-alecthomas-chroma")
(version "0.10.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alecthomas/chroma")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0hjzb61m5lzx95xss82wil9s8f9hbw1zb3jj73ljfwkq5lqk76zq"))
(modules '((guix build utils)))
;; Delete git submodules and generated files by Hermit.
(snippet '(delete-file-recursively "bin"))))
(build-system go-build-system)
;; TODO: Build cmd/chroma and cmd/chromad commands.
(arguments
`(#:import-path "github.com/alecthomas/chroma"))
(native-inputs
(list go-github-com-dlclark-regexp2
go-github-com-stretchr-testify))
(home-page "https://github.com/alecthomas/chroma/")
(synopsis "General purpose syntax highlighter in pure Go")
(description
"Chroma takes source code and other structured text and converts it into
syntax highlighted HTML, ANSI-coloured text, etc.")
(license license:expat)))
(define-public go-github-com-alecthomas-chroma-v2
(package
(inherit go-github-com-alecthomas-chroma)
(name "go-github-com-alecthomas-chroma-v2")
(version "2.12.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alecthomas/chroma")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1j9zz77ppi4r4ncnanzj84h7bsg0qdqrhgd5kkjiv09afm31jx83"))))
(arguments
(list #:go go-1.19
#:import-path "github.com/alecthomas/chroma/v2"))
(propagated-inputs
(list go-github-com-dlclark-regexp2))
(native-inputs
(list go-github-com-alecthomas-assert-v2
go-github-com-alecthomas-repr))))
(define-public go-github-com-alecthomas-kingpin
(package
(name "go-github-com-alecthomas-kingpin")
(version "2.2.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alecthomas/kingpin")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0mndnv3hdngr3bxp7yxfd47cas4prv98sqw534mx7vp38gd88n5r"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/alecthomas/kingpin"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-alecthomas-template
go-github-com-alecthomas-units))
(home-page "https://github.com/alecthomas/kingpin")
(synopsis "Go library provides utilities for building command line interfaces")
(description
"Go library provides utilities for building command line interfaces.")
(license license:expat)))
(define-public go-github-com-alecthomas-kingpin-v2
(package
(inherit go-github-com-alecthomas-kingpin)
(name "go-github-com-alecthomas-kingpin-v2")
(version "2.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alecthomas/kingpin")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "12xl62xzwq2h71hp1i0133403zhyqwsh95sr870fx18wmpqh8shf"))))
(arguments
(list
#:import-path "github.com/alecthomas/kingpin/v2"))
(propagated-inputs
(list go-github-com-alecthomas-units
go-github-com-xhit-go-str2duration-v2))
(native-inputs
(list go-github-com-stretchr-testify))))
(define-public go-github-com-alecthomas-participle-v2
(package
(name "go-github-com-alecthomas-participle-v2")
(version "2.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alecthomas/participle")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0k2vsd58rgwyylyn5zja6z6k1sg4m39g2fhd88lvja60ca51bh98"))))
(build-system go-build-system)
(arguments
(list #:go go-1.18
#:import-path "github.com/alecthomas/participle/v2"))
(native-inputs
(list go-github-com-alecthomas-assert-v2))
(home-page "https://github.com/alecthomas/participle")
(synopsis "Parser library for Go")
(description
"This package provides a parser library for Golang which constructs
parsers from definitions in struct tags and parses directly into those
structs. The approach is similar to how other marshallers work in Golang,
\"unmarshalling\" an instance of a grammar into a struct.")
(license license:expat)))
(define-public go-github-com-alecthomas-template
;; No release, see <https://github.com/alecthomas/template/issues/7>.
(let ((commit "a0175ee3bccc567396460bf5acd36800cb10c49c")
(revision "0"))
(package
(name "go-github-com-alecthomas-template")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alecthomas/template")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "0qjgvvh26vk1cyfq9fadyhfgdj36f1iapbmr5xp6zqipldz8ffxj"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/alecthomas/template"))
(home-page "https://github.com/alecthomas/template")
(synopsis "Fork of Go's text/template adding newline elision")
(description
"This is a fork of Go 1.4's text/template package with one addition: a
backslash immediately after a closing delimiter will delete all subsequent
newlines until a non-newline.")
(license license:bsd-3))))
(define-public go-github-com-alecthomas-units
;; No release, see <https://github.com/alecthomas/units/issues/9>.
(let ((commit "2efee857e7cfd4f3d0138cc3cbb1b4966962b93a")
(revision "0"))
(package
(name "go-github-com-alecthomas-units")
(version "0.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/alecthomas/units")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1j65b91qb9sbrml9cpabfrcf07wmgzzghrl7809hjjhrmbzri5bl"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/alecthomas/units"))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/alecthomas/units")
(synopsis "Helpful unit multipliers and functions for Go")
(description
"This library provides unit multipliers and functions for Go.")
(license license:expat))))
(define-public go-github-com-anmitsu-go-shlex
(package
(name "go-github-com-anmitsu-go-shlex")
(version "0.0.0-20200514113438-38f4b401e2be")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/anmitsu/go-shlex")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "17iz68yzbnr7y4s493asbagbv79qq8hvl2pkxvm6bvdkgphj8w1g"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/anmitsu/go-shlex"))
(home-page "https://github.com/anmitsu/go-shlex")
(synopsis "Simple shell-like lexical analyzer for Go")
(description
"This package provides a simple lexical analyzer to parse shell-like
commands.")
(license license:expat)))
(define-public go-github-com-armon-go-radix
(package
(name "go-github-com-armon-go-radix")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/armon/go-radix")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1m1k0jz9gjfrk4m7hjm7p03qmviamfgxwm2ghakqxw3hdds8v503"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/armon/go-radix"))
(home-page "https://github.com/armon/go-radix")
(synopsis "Go implementation of Radix trees")
(description "This package provides a single @code{Tree} implementation,
optimized for sparse nodes of
@url{http://en.wikipedia.org/wiki/Radix_tree,radix tree}.")
(license license:expat)))
(define-public go-github-com-benbjohnson-clock
(package
(name "go-github-com-benbjohnson-clock")
(version "1.3.5")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/benbjohnson/clock")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1p7n09pywqra21l981fbkma9vzsyf31pbvw6xg5r4hp8h8scf955"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/benbjohnson/clock"
#:go ,go-1.21))
(home-page "https://github.com/benbjohnson/clock")
(synopsis "Small library for mocking time in Go")
(description
"@code{clock} is a small library for mocking time in Go. It provides an
interface around the standard library's @code{time} package so that the application
can use the realtime clock while tests can use the mock clock.")
(license license:expat)))
(define-public go-github-com-beorn7-perks-quantile
(package
(name "go-github-com-beorn7-perks-quantile")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/beorn7/perks")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "17n4yygjxa6p499dj3yaqzfww2g7528165cl13haj97hlx94dgl7"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/beorn7/perks/quantile"
#:unpack-path "github.com/beorn7/perks"))
(home-page "https://github.com/beorn7/perks")
(synopsis "Compute approximate quantiles over an unbounded data stream")
(description
"Perks contains the Go package @code{quantile} that computes
approximate quantiles over an unbounded data stream within low memory and CPU
bounds.")
(license license:expat)))
(define-public go-github-com-bitly-go-hostpool
(package
(name "go-github-com-bitly-go-hostpool")
(version "0.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/bitly/go-hostpool")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1iibj7dwymczw7cknrh6glc6sdpp4yap2plnyr8qphynwrzlz73w"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/bitly/go-hostpool"))
(native-inputs (list go-github-com-stretchr-testify))
(home-page "https://github.com/bitly/go-hostpool")
(synopsis "Pool among multiple hosts from Golang")
(description
"This package provides a Go package to intelligently and flexibly pool among
multiple hosts from your Go application. Host selection can operate in round
robin or epsilon greedy mode, and unresponsive hosts are avoided.")
(license license:expat)))
(define-public go-github-com-bitly-timer-metrics
(package
(name "go-github-com-bitly-timer-metrics")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/bitly/timer_metrics")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "02fhx8hx8126m2cgxw9fm8q2401r7zfann8b5zy5yyark1sgkrb4"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/bitly/timer_metrics"))
(home-page "https://github.com/bitly/timer_metrics")
(synopsis "Capture timings and enable periodic metrics every @var{n} events")
(description "This package provides an efficient way to capture timing
information and periodically output metrics")
(license license:expat)))
(define-public go-github-com-blang-semver
(package
(name "go-github-com-blang-semver")
(version "3.8.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blang/semver")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "16s66zbfkn35msmxpkiwf5dv91kzw7yzxzkcv8ma44j7lbgzx5qk"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/blang/semver"))
(home-page "https://github.com/blang/semver")
(synopsis "Semantic versioning library written in Go")
(description
"Semver is a library for Semantic versioning written in Go.")
(license license:expat)))
(define-public go-github-com-blang-semver-v4
(package
(inherit go-github-com-blang-semver)
(name "go-github-com-blang-semver-v4")
(version "4.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/blang/semver")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "14h9ys4n4kx9cbj42lkdf4i5k3nkll6sd62jcvl7cs565v6fiknz"))))
(arguments
(list
#:import-path "github.com/blang/semver/v4"
#:unpack-path "github.com/blang/semver"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-examples
(lambda* (#:key import-path #:allow-other-keys)
(delete-file-recursively
(string-append "src/" import-path "/examples")))))))))
(define-public go-github-com-bmizerany-perks-quantile
(package
(name "go-github-com-bmizerany-perks-quantile")
(version "0.0.0-20230307044200-03f9df79da1e")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/bmizerany/perks")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1f2a99v3618bz2mf61iwhdjm3xi1gam6v4apqgcrz71gj7ba9943"))))
(build-system go-build-system)
(arguments
(list #:unpack-path "github.com/bmizerany/perks"
#:import-path "github.com/bmizerany/perks/quantile"))
(home-page "https://github.com/bmizerany/perks")
(synopsis "Library for computing quantiles")
(description
"Perks contains the Go package @code{quantile} that computes approximate
quantiles over an unbounded data stream within low memory and CPU bounds.")
(license license:bsd-2)))
(define-public go-github-com-briandowns-spinner
(package
(name "go-github-com-briandowns-spinner")
(version "1.23.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/briandowns/spinner")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "036r59m068k8grr0q77a6b1rqw4dyxm00fsxj7b9w1fjviq8djs6"))
(modules '((guix build utils)))
(snippet
'(begin
(delete-file-recursively "vendor")))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/briandowns/spinner"))
(propagated-inputs
(list go-github-com-fatih-color
go-github-com-mattn-go-isatty
go-golang-org-x-term))
(home-page "https://github.com/briandowns/spinner")
(synopsis "Terminal spinner/progress indicators")
(description
"Package spinner is a simple package to add a spinner / progress
indicator to any terminal application.")
(license license:asl2.0)))
(define-public go-github-com-burntsushi-toml
(package
(name "go-github-com-burntsushi-toml")
(version "1.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/BurntSushi/toml")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1v9czq4hsyvdz7yx70y6sgq77wmrgfmn09r9cj4w85z38jqnamv7"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/BurntSushi/toml"))
(home-page "https://github.com/BurntSushi/toml")
(synopsis "Toml parser and encoder for Go")
(description
"This package is toml parser and encoder for Go. The interface is
similar to Go's standard library @code{json} and @code{xml} package.")
(license license:expat)))
(define-public go-github-com-cheggaaa-pb-v3
(package
(name "go-github-com-cheggaaa-pb-v3")
(version "3.0.8")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/cheggaaa/pb/")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0d701s2niy39r650d1phjw19h4l27b1yfc2ih6s31f56b3zzqspx"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/cheggaaa/pb/v3"
#:unpack-path "github.com/cheggaaa/pb"))
(propagated-inputs
(list go-github-com-fatih-color
go-github-com-mattn-go-colorable
go-github-com-mattn-go-isatty
go-github-com-mattn-go-runewidth
go-github-com-vividcortex-ewma))
(home-page "https://github.com/cheggaaa/pb/")
(synopsis "Console progress bar for Go")
(description
"This package is a Go library that draws progress bars on the terminal.")
(license license:bsd-3)))
(define-public go-github-com-chzyer-logex
(package
(name "go-github-com-chzyer-logex")
(version "1.2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/chzyer/logex")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0c9yr3r7dl3lcs22cvmh9iknihi9568wzmdywmc2irkjdrn8bpxw"))))
(build-system go-build-system)
(arguments
(list
;; See <https://github.com/chzyer/logex/issues/4> and
;; <https://github.com/chzyer/logex/pull/7>.
#:tests? #f
#:import-path "github.com/chzyer/logex"))
(home-page "https://github.com/chzyer/logex")
(synopsis "Golang log library")
(description
"This package provides a Golang log library supporting tracing and log
levels that works by wrapping the standard @code{log} library.")
(license license:expat)))
(define-public go-github-com-chzyer-readline
(package
(name "go-github-com-chzyer-readline")
(version "1.5.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/chzyer/readline")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1msh9qcm7l1idpmfj4nradyprsr86yhk9ch42yxz7xsrybmrs0pb"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/chzyer/readline"))
(native-inputs
(list go-github-com-chzyer-test))
(propagated-inputs
(list go-github-com-chzyer-logex
go-golang-org-x-sys))
(home-page "https://github.com/chzyer/readline")
(synopsis "Pure Go readline library")
(description
"Readline is a pure Go implementation of a GNU-Readline like library.")
(license license:expat)))
(define-public go-github-com-coocood-freecache
(package
(name "go-github-com-coocood-freecache")
(version "1.2.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/coocood/freecache")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0iw0s07qy8g1lncwl524c524wh56djl0vn6i3bm91cnwzav7ihjl"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/coocood/freecache"))
(propagated-inputs (list go-github-com-cespare-xxhash))
(home-page "https://github.com/coocood/freecache")
(synopsis "Caching library for Go")
(description
"This library provides caching capabilities for Go with no garbage
collection overhead and high concurrent performance. An unlimited number of
objects can be cached in memory without increased latency or degraded
throughput.")
(license license:expat)))
(define-public go-github-com-coreos-go-systemd-activation
(package
(name "go-github-com-coreos-go-systemd-activation")
(version "0.0.0-20191104093116-d3cd4ed1dbcf")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/coreos/go-systemd")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32
"193mgqn7n4gbb8jb5kyn6ml4lbvh4xs55qpjnisaz7j945ik3kd8"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/coreos/go-systemd/activation"
#:unpack-path "github.com/coreos/go-systemd"))
(home-page "https://github.com/coreos/go-systemd")
(synopsis "Go bindings to systemd socket activation")
(description "Go bindings to systemd socket activation; for writing and
using socket activation from Go.")
(license license:asl2.0)))
(define-public go-github-com-coreos-go-systemd-daemon
(package
(inherit go-github-com-coreos-go-systemd-activation)
(name "go-github-com-coreos-go-systemd-daemon")
(arguments
'(#:import-path "github.com/coreos/go-systemd/daemon"
#:unpack-path "github.com/coreos/go-systemd"))
(home-page "https://github.com/coreos/go-systemd")
(synopsis "Go bindings to systemd for notifications")
(description "Go bindings to systemd for notifying the daemon of service
status changes")))
(define-public go-github-com-coreos-go-systemd-dbus
(package
(inherit go-github-com-coreos-go-systemd-activation)
(name "go-github-com-coreos-go-systemd-dbus")
(arguments
'(#:tests? #f ;Tests require D-Bus daemon running.
#:import-path "github.com/coreos/go-systemd/dbus"
#:unpack-path "github.com/coreos/go-systemd"))
(native-inputs (list go-github-com-godbus-dbus))
(home-page "https://github.com/coreos/go-systemd")
(synopsis "Go bindings to systemd for managing services")
(description "Go bindings to systemd for starting/stopping/inspecting
running services and units.")))
(define-public go-github-com-coreos-go-systemd-journal
(package
(inherit go-github-com-coreos-go-systemd-activation)
(name "go-github-com-coreos-go-systemd-journal")
(arguments
'(#:tests? #f ;Tests require access to journald socket.
#:import-path "github.com/coreos/go-systemd/journal"
#:unpack-path "github.com/coreos/go-systemd"))
(home-page "https://github.com/coreos/go-systemd")
(synopsis "Go bindings to systemd for writing journald")
(description "Go bindings to systemd for writing to systemd's logging
service, journald.")))
(define-public go-github-com-coreos-go-systemd-login1
(package
(inherit go-github-com-coreos-go-systemd-activation)
(name "go-github-com-coreos-go-systemd-login1")
(arguments
'(#:tests? #f ;Tests require D-Bus daemon running.
#:import-path "github.com/coreos/go-systemd/login1"
#:unpack-path "github.com/coreos/go-systemd"))
(native-inputs (list go-github-com-godbus-dbus))
(home-page "https://github.com/coreos/go-systemd")
(synopsis "Go bindings to systemd for integration with logind API")
(description "Go bindings to systemd for integration with the systemd
logind API.")))
(define-public go-github-com-coreos-go-systemd-machine1
(package
(inherit go-github-com-coreos-go-systemd-activation)
(name "go-github-com-coreos-go-systemd-machine1")
(arguments
'(#:tests? #f ;Tests require D-Bus daemon running.
#:import-path "github.com/coreos/go-systemd/machine1"
#:unpack-path "github.com/coreos/go-systemd"))
(native-inputs (list go-github-com-godbus-dbus))
(home-page "https://github.com/coreos/go-systemd")
(synopsis "Go bindings to systemd for registering machines/containers")
(description "Go bindings to systemd for registering
machines/containers.")))
(define-public go-github-com-coreos-go-systemd-sdjournal
(package
(inherit go-github-com-coreos-go-systemd-activation)
(name "go-github-com-coreos-go-systemd-sdjournal")
(arguments
'(#:tests? #f ;Tests require D-Bus daemon running.
#:import-path "github.com/coreos/go-systemd/sdjournal"
#:unpack-path "github.com/coreos/go-systemd"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-sdjournal-header
(lambda* (#:key import-path #:allow-other-keys)
(substitute* (format #f
"src/~a/journal.go"
import-path)
(("systemd/sd-journal.h")
"elogind/sd-journal.h")
(("systemd/sd-id128.h")
"elogind/sd-id128.h")))))))
(inputs (list elogind))
(synopsis "Go bindings to systemd for journald")
(description "Go bindings to systemd for reading from journald by wrapping
its C API.")))
(define-public go-github-com-coreos-go-systemd-unit
(package
(inherit go-github-com-coreos-go-systemd-activation)
(name "go-github-com-coreos-go-systemd-unit")
(arguments
'(#:tests? #f ;Tests require D-Bus daemon running.
#:import-path "github.com/coreos/go-systemd/unit"
#:unpack-path "github.com/coreos/go-systemd"))
(native-inputs (list go-github-com-godbus-dbus))
(home-page "https://github.com/coreos/go-systemd")
(synopsis "Go bindings to systemd for working with unit files")
(description "Go bindings to systemd for (de)serialization and comparison
of unit files.")))
(define-public go-github-com-cskr-pubsub
(package
(name "go-github-com-cskr-pubsub")
(version "2.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/cskr/pubsub")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "18kqfdzkfs7z8266a5q5wldwkcvnhc7yw09b9vr8r0s7svy8d5s6"))))
(build-system go-build-system)
(arguments
(list
#:tests? #t ; Tests require network interface access
#:go go-1.18
#:import-path "github.com/cskr/pubsub"))
(home-page "https://github.com/cskr/pubsub")
(synopsis "Simple pubsub package for go")
(description
"Package @code{pubsub} implements a simple multi-topic pub-sub library.")
(license license:bsd-2)))
(define-public go-github-com-cyberdelia-go-metrics-graphite
(package
;; No release, see
;; <https://github.com/cyberdelia/go-metrics-graphite/issues/17>.
(name "go-github-com-cyberdelia-go-metrics-graphite")
(version "0.0.0-20161219230853-39f87cc3b432")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/cyberdelia/go-metrics-graphite")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1nnpwryw8i110laffyavvhx38gcd1jnpdir69y6fxxzpx06d094w"))))
(build-system go-build-system)
(propagated-inputs
(list go-github-com-rcrowley-go-metrics))
(arguments
'(#:tests? #f ; Tests require network interface access
#:import-path "github.com/cyberdelia/go-metrics-graphite"))
(home-page "https://github.com/cyberdelia/go-metrics-graphite")
(synopsis "Graphite client for go-metrics")
(description
"This package provides a reporter for the
@url{https://github.com/rcrowley/go-metrics,go-metrics} library which posts
metrics to Graphite.")
(license license:bsd-2)))
(define-public go-github-com-danwakefield-fnmatch
(let ((commit "cbb64ac3d964b81592e64f957ad53df015803288")
(revision "0"))
(package
(name "go-github-com-danwakefield-fnmatch")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/danwakefield/fnmatch")
(commit commit)))
(sha256
(base32 "0cbf511ppsa6hf59mdl7nbyn2b2n71y0bpkzbmfkdqjhanqh1lqz"))
(file-name (git-file-name name version))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/danwakefield/fnmatch"))
(home-page "https://github.com/danwakefield/fnmatch")
(synopsis "Updated clone of kballards golang fnmatch gist")
(description
"This package provides string-matching based on BSD fnmatch.3. It is an
updated clone of kballards golang fnmatch
gist (https://gist.github.com/kballard/272720).")
(license license:bsd-2))))
(define-public go-github-com-dave-jennifer
(package
(name "go-github-com-dave-jennifer")
(version "1.7.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/dave/jennifer")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "01sgafbds8n5zs61qf057whn06yj6avz30xgxk6pllf22528558m"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.20
#:import-path "github.com/dave/jennifer"))
(home-page "https://github.com/dave/jennifer")
(synopsis "Code generator for Go")
(description "This package provides functionality to generate Go code.")
(license license:expat)))
(define-public go-github-com-dbaggerman-cuba
(package
(name "go-github-com-dbaggerman-cuba")
(version "0.3.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/dbaggerman/cuba")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1sbria32fh2bzc8agnm9p5id5z15mrqj4fyxhnkq05bh2qjkrwc7"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/dbaggerman/cuba"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-karrick-godirwalk))
(home-page "https://github.com/dbaggerman/cuba")
(synopsis "Goroutine parallelism library")
(description
"This package provides a library for Goroutines that helps to implement
more complicated parallel cases.")
(license license:expat)))
(define-public go-github-com-dimchansky-utfbom
(package
(name "go-github-com-dimchansky-utfbom")
(version "1.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/dimchansky/utfbom")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0ll3wqvifmdanfyg6wsvz31c7n4mnczg2yxb65j35qxrnak89hn3"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/dimchansky/utfbom"))
(home-page "https://github.com/dimchansky/utfbom")
(synopsis "Go Unicode byte order mark detection library")
(description
"This package provides a library for @acronym{BOM, Unicode Byte Order
Mark} detection.")
(license license:asl2.0)))
(define-public go-github-com-djherbis-atime
(package
(name "go-github-com-djherbis-atime")
(version "1.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/djherbis/atime")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0xsz55zpihd9wyrj6qvm3miqzb6x3mnp5apzs0dx1byndhb8adpq"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/djherbis/atime"))
(home-page "https://github.com/djherbis/atime")
(synopsis "Access Times for files")
(description "Package atime provides a platform-independent way to get
atimes for files.")
(license license:expat)))
(define-public go-github-com-djherbis-times
(package
(name "go-github-com-djherbis-times")
(version "1.6.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/djherbis/times")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0a70nqkc592ipbgb3ib4yg8i2yj2hlhalpzzksdlhilm5a3689ic"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/djherbis/times"))
(propagated-inputs
(list go-golang-org-x-sys))
(home-page "https://github.com/djherbis/times")
(synopsis "File times - atime, mtime, ctime and btime for Golang")
(description
"Package @code{times} provides a platform-independent way to get atime,
mtime,ctime and btime for files.")
(license license:expat)))
(define-public go-github-com-dustin-gojson
(package
(name "go-github-com-dustin-gojson")
(version "v0.0.0-20160307161227-2e71ec9dd5ad")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/dustin/gojson")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1vrmmyn7l568l1k71mxd54iqf3d54pn86cf278i374j86jn0bdxf"))
(modules '((guix build utils)))
(snippet '(begin
;; Fix the library to work with go-1.21.
(substitute* "decode.go"
(("trying to unmarshal unquoted value into")
"trying to unmarshal unquoted value %v into"))
(substitute* "decode_test.go"
(("t.Fatalf\\(\"Unmarshal: %v\"\\)")
"t.Fatalf(\"Unmarshal: %v\", data)")) ;))))
(substitute* "scanner.go"
(("s := strconv.Quote\\(string\\(c\\)\\)")
"s := strconv.QuoteRune(rune(c))"))))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/dustin/gojson"
#:go ,go-1.21))
(home-page "https://github.com/dustin/gojson")
(synopsis "Extended Golang's @code{encoding/json} module with the public scanner API")
(description
"This package provides a fork of Golang's @code{encoding/json} with the
scanner API made public.")
(license license:bsd-3)))
(define-public go-github-com-elliotchance-orderedmap
(package
(name "go-github-com-elliotchance-orderedmap")
(version "1.5.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/elliotchance/orderedmap")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "06gq5hsgfmzfr46wds366ghyn16qkygyz83vrsgargf4l7db9zg7"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/elliotchance/orderedmap"))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/elliotchance/orderedmap")
(synopsis "Go ordered map library")
(description
"This package provides a ordered map library that maintains amortized O(1)
for @code{Set}, @code{Get}, @code{Delete} and @code{Len}.")
(license license:expat)))
(define-public go-github-com-gabriel-vasile-mimetype
(package
(name "go-github-com-gabriel-vasile-mimetype")
(version "1.4.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/gabriel-vasile/mimetype")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "11swnjczhrza0xi8q2wlk056nnbcghm44vqs52zfv6rwqvy6imhj"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.20
#:import-path "github.com/gabriel-vasile/mimetype"
#:phases #~(modify-phases %standard-phases
(add-before 'check 'add-supported-mimes-md
(lambda* (#:key import-path #:allow-other-keys)
;; This file needs to be available for writing during the
;; tests otherwise they will fail.
(let ((file (format #f "src/~a/supported_mimes.md"
import-path)))
(invoke "touch" file)
(chmod file #o644)))))))
(propagated-inputs (list go-golang-org-x-net))
(home-page "https://github.com/gabriel-vasile/mimetype")
(synopsis "Golang library for media type and file extension detection")
(description
"This package provides a Golang module that uses magic number signatures
to detect the MIME type of a file.
Main features:
@itemize
@item Fast and precise MIME type and file extension detection.
@item Supports
@url{https://github.com/gabriel-vasile/mimetype/blob/master/supported_mimes.md,
many MIME types}.
@item Allows to
@url{https://pkg.go.dev/github.com/gabriel-vasile/mimetype#example-package-Extend,
extend} with other file formats.
@item Common file formats are prioritized.
@item
@url{https://pkg.go.dev/github.com/gabriel-vasile/mimetype#example-package-TextVsBinary,
Differentiation between text and binary files}.
@item Safe for concurrent usage.
@end itemize")
(license license:expat)))
(define-public go-github-com-go-logr-logr
(package
(name "go-github-com-go-logr-logr")
(version "1.4.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/go-logr/logr")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0x0q9jkk2p5pz4lii1qs8ifnsib4ib5s8pigmjwdmagl976g8nhm"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.18
#:import-path "github.com/go-logr/logr"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-examples-and-benchmarks
(lambda* (#:key import-path #:allow-other-keys)
(delete-file-recursively
(string-append "src/" import-path "/examples"))
(delete-file-recursively
(string-append "src/" import-path "/funcr/example"))
(delete-file-recursively
(string-append "src/" import-path "/benchmark")))))))
(home-page "https://github.com/go-logr/logr")
(synopsis "Minimal logging API for Go")
(description
"Package @code{logr} defines a general-purpose logging API and abstract
interfaces to back that API. Packages in the Go ecosystem can depend on it,
while callers can implement logging with whatever backend is appropriate.")
(license license:asl2.0)))
(define-public go-github-com-hashicorp-errwrap
(package
(name "go-github-com-hashicorp-errwrap")
(version "1.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hashicorp/errwrap")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0p5wdz8p7dmwphmb33gwhy3iwci5k9wkfqmmfa6ay1lz0cqjwp7a"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/hashicorp/errwrap"))
(home-page "https://github.com/hashicorp/errwrap")
(synopsis "Wrapping and querying errors for Golang")
(description
"@code{errwrap} is a package for Go that formalizes the pattern of
wrapping errors and checking if an error contains another error.")
(license license:mpl2.0)))
(define-public go-github-com-hashicorp-go-hclog
(package
(name "go-github-com-hashicorp-go-hclog")
(version "1.6.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hashicorp/go-hclog")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1lvr4ga95a0xb62vgq1hy558x3r65hn2d0h7bf0a88lsfsrcik0n"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/hashicorp/go-hclog"))
(propagated-inputs
(list go-github-com-fatih-color
go-github-com-mattn-go-isatty
go-golang-org-x-tools))
(native-inputs
(list go-github-com-stretchr-testify))
(home-page "https://github.com/hashicorp/go-hclog")
(synopsis "Key/value logging interface for Go")
(description
"This package provides a simple key/value logging interface for Golang
for use in development and production environments. Unlike the standard
library @code{log} package, this package provides logging levels that provide
decreased output based upon the desired amount of output. It also comes with
a command-line program @code{hclogvet} that can be used to check that the logging level
methods on @code{hclog.Logger} are used correctly.")
(license license:expat)))
(define-public go-github-com-hashicorp-go-multierror
(package
(name "go-github-com-hashicorp-go-multierror")
(version "1.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hashicorp/go-multierror")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0l4s41skdpifndn9s8y6s9vzgghdzg4z8z0lld9qjr28888wzp00"))))
(build-system go-build-system)
(inputs (list go-github-com-hashicorp-errwrap))
(arguments
(list
#:import-path "github.com/hashicorp/go-multierror"))
(home-page "https://github.com/hashicorp/go-multierror")
(synopsis "Representing a errors list as a single error for Golang")
(description
"@code{go-multierror} is Golang module providing a mechanism for
representing a list of @code{error} values as a single @code{error}. It is
fully compatible with the standard @code{errors} package, including
the functions @code{As}, @code{Is}, and @code{Unwrap}. This provides a
standardized approach for introspecting on error values.")
(license license:mpl2.0)))
(define-public go-github-com-hashicorp-go-syslog
(package
(name "go-github-com-hashicorp-go-syslog")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hashicorp/go-syslog")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"09vccqggz212cg0jir6vv708d6mx0f9w5bxrcdah3h6chgmal6v1"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/hashicorp/go-syslog"))
(home-page "https://github.com/hashicorp/go-syslog")
(synopsis "Golang syslog wrapper, cross-compile friendly")
(description
"This package is a very simple wrapper around log/syslog")
(license license:expat)))
(define-public go-github-com-hashicorp-go-uuid
(package
(name "go-github-com-hashicorp-go-uuid")
(version "1.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hashicorp/go-uuid")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0wd4maaq20alxwcvfhr52rzfnwwpmc2a698ihyr0vfns2sl7gkzk"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/hashicorp/go-uuid"))
(home-page "https://github.com/hashicorp/go-uuid")
(synopsis "Generate UUID-format strings")
(description
"This package generates UUID-format strings using high quality bytes.
It is not intended to be RFC compliant, merely to use a well-understood string
representation of a 128-bit value. It can also parse UUID-format strings into
their component bytes.")
(license license:mpl2.0)))
(define-public go-github-com-hashicorp-go-version
(package
(name "go-github-com-hashicorp-go-version")
(version "1.6.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hashicorp/go-version")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0fw6hwvjadpbfj10yk7f64ypw8lmv5s5ny3s4ria0nv6xam1wpai"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/hashicorp/go-version"))
(home-page "https://github.com/hashicorp/go-version")
(synopsis "Go library for parsing and verifying versions and version
constraints")
(description
"This package is a library for parsing versions and version
constraints, and verifying versions against a set of constraints. It can sort
a collection of versions properly, handles prerelease/beta versions, can
increment versions.")
(license license:mpl2.0)))
(define-public go-github-com-hashicorp-hcl
(package
(name "go-github-com-hashicorp-hcl")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hashicorp/hcl")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0q6ml0qqs0yil76mpn4mdx4lp94id8vbv575qm60jzl1ijcl5i66"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/hashicorp/hcl"))
(native-inputs
(list go-github-com-davecgh-go-spew))
(synopsis "Go implementation of HashiCorp Configuration Language V1")
(description
"This package contains the main implementation of the @acronym{HCL,
HashiCorp Configuration Language}. HCL is designed to be a language for
expressing configuration which is easy for both humans and machines to read.")
(home-page "https://github.com/hashicorp/hcl")
(license license:mpl2.0)))
(define-public go-github-com-hashicorp-hcl-v2
(package
(name "go-github-com-hashicorp-hcl-v2")
(version "2.11.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hashicorp/hcl")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0f9flmmkj7fr1337fc56cqy73faq87ix375hnz3id4wc023przv1"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/hashicorp/hcl/v2"))
(native-inputs
(list go-github-com-davecgh-go-spew))
(inputs
(list go-github-com-agext-levenshtein
go-github-com-apparentlymart-go-textseg-v13
go-github-com-mitchellh-go-wordwrap
go-github-com-zclconf-go-cty))
(synopsis "Go implementation of HashiCorp Configuration Language V2")
(description
"This package contains the main implementation of the @acronym{HCL,
HashiCorp Configuration Language}. HCL is designed to be a language for
expressing configuration which is easy for both humans and machines to read.")
(home-page "https://github.com/hashicorp/hcl")
(license license:mpl2.0)))
(define-public go-github-com-hhrutter-tiff
(package
(name "go-github-com-hhrutter-tiff")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/hhrutter/tiff")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "09fzgvxwkd34izbfd26ln8vdbhc4j9gxpar3s7h9h125psrjvg0k"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/hhrutter/tiff"))
(propagated-inputs (list go-golang-org-x-image go-github-com-hhrutter-lzw))
(home-page "https://github.com/hhrutter/tiff")
(synopsis "Extended version of @code{golang.org/x/image/tiff}")
(description "This package is an enhanced version of the
@code{golang.org/x/image/tiff} library featuring:
@itemize
@item Read support for CCITT Group3/4 compressed images.
@item Read/write support for LZW compressed images.
@item Read/write support for the CMYK color model.
@end itemize")
(license license:bsd-3)))
(define-public go-github-com-jbenet-go-random
(package
(name "go-github-com-jbenet-go-random")
(version "0.0.0-20190219211222-123a90aedc0c")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jbenet/go-random")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0kgx19m8p76rmin8s8y6j1padciv1dx37qzy7jkh9bw49ai3haw3"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/jbenet/go-random"))
(propagated-inputs
(list go-github-com-dustin-go-humanize))
(home-page "https://github.com/jbenet/go-random")
(synopsis "Go library and a program that outputs randomness")
(description
"This is a Unix utility that outputs randomness. It is a thin
wrapper around @code{crypto/rand}.")
(license license:expat)))
(define-public go-github-com-jbenet-go-temp-err-catcher
(package
(name "go-github-com-jbenet-go-temp-err-catcher")
(version "0.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jbenet/go-temp-err-catcher")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0n482jhh6jwq43jj21xkq8grqzx78hjh7f44p0q3n01zp1dsh97r"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/jbenet/go-temp-err-catcher"))
(home-page "https://github.com/jbenet/go-temp-err-catcher")
(synopsis "Error handling helper library")
(description "Package @code{temperrcatcher} provides a @code{TempErrCatcher}
object, which implements simple error-retrying functionality.")
(license license:expat)))
(define-public go-github-com-jbenet-goprocess
(package
(name "go-github-com-jbenet-goprocess")
(version "0.1.4")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jbenet/goprocess")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1z4a5skx9kh2c727pc6zz0vhf9v8acd320s7z0f1kwy3y1nbdhjk"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/jbenet/goprocess"))
(native-inputs
(list go-github-com-jbenet-go-cienv))
(home-page "https://github.com/jbenet/goprocess")
(synopsis "Manage process life cycles in Go")
(description
"@code{goprocess} introduces a way to manage process lifecycles in
Go. It is much like @code{go.net/context} (it actually uses a Context), but it is
more like a Context-WaitGroup hybrid. @code{goprocess} is about being able to start
and stop units of work, which may receive @code{Close} signals from many clients.")
(license license:expat)))
(define-public go-github-com-jinzhu-copier
(package
(name "go-github-com-jinzhu-copier")
(version "0.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jinzhu/copier")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0kf29cmmbic72kfrfd1xnass7l9j85impf8mqn5f3fd3ibi9bs74"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/jinzhu/copier"))
(home-page "https://github.com/jinzhu/copier")
(synopsis "Go copier library")
(description
"This package provides a library, which supports copying value from one
struct to another.")
(license license:expat)))
(define-public go-github-com-josharian-intern
(package
(name "go-github-com-josharian-intern")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/josharian/intern")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1za48ppvwd5vg8vv25ldmwz1biwpb3p6qhf8vazhsfdg9m07951c"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/josharian/intern"))
(home-page "https://github.com/josharian/intern")
(synopsis "String interning for Go")
(description
"This library defines functions to perform string interning in Go,
storing only one copy of each unique string in memory. All functions may be
called concurrently with themselves and each other.")
(license license:expat)))
(define-public go-github-com-ianlancetaylor-demangle
;; No release, see <https://github.com/ianlancetaylor/demangle/issues/21>.
(package
(name "go-github-com-ianlancetaylor-demangle")
(version "0.0.0-20230524184225-eabc099b10ab")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ianlancetaylor/demangle")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1pvlg1adp50hnw8dz7il473xb197ixirg26cy5hj3ngb4qlajwvc"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/ianlancetaylor/demangle"))
(home-page "https://github.com/ianlancetaylor/demangle")
(synopsis "Symbol name demangler written in Go")
(description
"This package defines functions that demangle GCC/LLVM C++ and Rust
symbol names. This package recognizes names that were mangled according to
the C++ ABI defined at https://codesourcery.com/cxx-abi/ and the
@url{https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html,Rust
ABI}.")
(license license:bsd-3)))
(define-public go-github-com-k0kubun-pp
(package
(name "go-github-com-k0kubun-pp")
(version "3.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/k0kubun/pp")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1vpp5n3kdazk4s1ljhwbrhz3kilzvdvx5hya922bg0q9vnjqqvvc"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/k0kubun/pp"))
(propagated-inputs (list go-github-com-mattn-go-colorable
go-golang-org-x-text))
(home-page "https://github.com/k0kubun/pp")
(synopsis "Colored pretty-printer for Go")
(description
"This package provides a pretty-printer for Go. The functions defined by
@code{pp} follow an API similar to @code{fmt} and its configuration can be
customized globally.")
(license license:expat)))
(define-public go-github-com-karrick-godirwalk
(package
(name "go-github-com-karrick-godirwalk")
(version "1.17.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/karrick/godirwalk")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0jyvai5vpmx86l71hg9j6lxc2b4v32ajvcmjlz40zimfb9ip11q9"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/karrick/godirwalk"))
(home-page "https://github.com/karrick/godirwalk")
(synopsis "Fast directory traversal library for Go")
(description
"This package provides functions to read and traverse directory trees.")
(license license:bsd-2)))
(define-public go-github-com-kballard-go-shellquote
;; No release, see <https://github.com/kballard/go-shellquote/issues/13>.
(let ((commit "95032a82bc518f77982ea72343cc1ade730072f0")
(revision "1"))
(package
(name "go-github-com-kballard-go-shellquote")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/kballard/go-shellquote")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1rspvmnsikdq95jmx3dykxd4k1rmgl98ryjrysvl0cf18hl1vq80"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/kballard/go-shellquote"))
(synopsis "Shell-style string joins and splits")
(description
"Shellquote provides utilities for joining/splitting strings using sh's
word-splitting rules.")
(home-page "https://github.com/kballard/go-shellquote")
(license license:expat))))
(define-public go-github-com-lib-pq
(package
(name "go-github-com-lib-pq")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/lib/pq")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "08j1smm6rassdssdks4yh9aspa1dv1g5nvwimmknspvhx8a7waqz"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/lib/pq"
;; The tests seem to fail without access to the network or a running
;; Postgres instance.
#:tests? #f))
(home-page "https://github.com/lib/pq")
(synopsis "Golang Postgres driver for Go's database/sql")
(description
"This package provides a pure Go Postgres driver for Go's
database/sql package.")
(license license:expat)))
(define-public go-github-com-logrusorgru-aurora
(package
(name "go-github-com-logrusorgru-aurora")
(version "2.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/logrusorgru/aurora")
(commit (string-append "v" version))))
(sha256
(base32 "1ck2j2ff2avph07vgq0r1y7hmbqgvk339rvph45dcwgci23lb3pf"))
(file-name (git-file-name name version))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/logrusorgru/aurora"))
(home-page "https://github.com/logrusorgru/aurora")
(synopsis "Ultimate ANSI colors for Golang")
(description
"This package provides ANSI colors for Golang. The package supports
Printf/Sprintf etc.")
(license license:unlicense)))
(define-public go-github-com-logrusorgru-aurora-v3
(package
(inherit go-github-com-logrusorgru-aurora)
(name "go-github-com-logrusorgru-aurora-v3")
(version "3.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/logrusorgru/aurora")
(commit (string-append "v" version))))
(sha256
(base32 "0z7cgj8gl69271d0ag4f4yjbsvbrnfibc96cs01spqf5krv2rzjc"))
(file-name (git-file-name name version))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/logrusorgru/aurora/v3"))))
(define-public go-github-com-logrusorgru-aurora-v4
(package
(inherit go-github-com-logrusorgru-aurora)
(name "go-github-com-logrusorgru-aurora-v4")
(version "4.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/logrusorgru/aurora")
(commit (string-append "v" version))))
(sha256
(base32 "0a4w4p0sl5hwa9fridk7s023sjcis8qf1k8fm3g5qar58vxzlh9w"))
(file-name (git-file-name name version))))
(build-system go-build-system)
(arguments
(list
#:go go-1.19
#:import-path "github.com/logrusorgru/aurora/v3"))
(native-inputs
(list go-github-com-stretchr-testify))))
(define-public go-github-com-marcinbor85-gohex
;; No release, see <https://github.com/marcinbor85/gohex/issues/5>.
(let ((commit "baab2527a9a2a4abb3dc06baabedfa5e0268b8d8")
(revision "0"))
(package
(name "go-github-com-marcinbor85-gohex")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/marcinbor85/gohex")
(commit commit)))
(sha256
(base32 "06v4cc6ld6vvxd4xm9k6l49lhcd9ncq7xfx35mj5b9r96ih49fiz"))
(file-name (git-file-name name version))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/marcinbor85/gohex"))
(home-page "https://pkg.go.dev/github.com/marcinbor85/gohex")
(synopsis "Parse Intel HEX files")
(description
"This package provides a Golang library for parsing Intel HEX files,
implementing features like:
@itemize
@item robust intelhex parsing (full test coverage)
@item support i32hex format
@item two-way converting hex<->bin
@item trivial but powerful api (only the most commonly used functions)
@item interface-based IO functions
@end itemize")
(license license:expat))))
(define-public go-github-com-matryer-try
(package
(name "go-github-com-matryer-try")
(version "1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/matryer/try")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "15f0m5ywihivnvwzcw0mh0sg27aky9rkywvxqszxka9q051qvsmy"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/matryer/try"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'fix-tests
(lambda* (#:key import-path #:allow-other-keys)
(substitute* (string-append "src/" import-path
"/try_test.go")
(("var value string")
"")
(("value, err = SomeFunction\\(\\)")
"_, err = SomeFunction()")))))))
(native-inputs
(list go-github-com-cheekybits-is))
(home-page "https://github.com/matryer/try")
(synopsis "Simple idiomatic retry package for Go")
(description "This package provides an idiomatic Go retry module.")
(license license:expat)))
(define-public go-github-com-mattn-go-colorable
(package
(name "go-github-com-mattn-go-colorable")
(version "0.1.13")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mattn/go-colorable")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "05hl2ddp67p5kj3ix4zzqqjh4fan4ban3vgw8f98simwigs3q41j"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mattn/go-colorable"))
(propagated-inputs
(list go-github-com-mattn-go-isatty))
(home-page "https://github.com/mattn/go-colorable")
(synopsis "Handle ANSI color escapes on Windows")
(description
"This package provides @code{colorable}, a module that makes it possible
to handle ANSI color escapes on Windows.")
(license license:expat)))
(define-public go-github-com-mattn-go-isatty
(package
(name "go-github-com-mattn-go-isatty")
(version "0.0.20")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mattn/go-isatty")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0g63n9wpb991qnq9mn2kvd8jk1glrp6gnd851kvwz2wmzdkggiga"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mattn/go-isatty"))
(propagated-inputs
(list go-golang-org-x-sys))
(home-page "https://github.com/mattn/go-isatty")
(synopsis "Provide @code{isatty} for Golang")
(description
"This package provides @code{isatty}, a Go module that can tell you
whether a file descriptor points to a terminal and the type of the terminal.")
(license license:expat)))
(define-public go-github-com-mattn-go-pointer
(package
(name "go-github-com-mattn-go-pointer")
(version "0.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mattn/go-pointer")
(commit (string-append "v" version))))
(sha256
(base32
"1px9kj2xwwi7r00qxxpidr23xi823kw0pkd6f50lib8bp60x3n7p"))
(file-name (git-file-name name version))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/mattn/go-pointer"))
(home-page "https://github.com/mattn/go-pointer")
(synopsis "Utility for cgo")
(description
"This package allows for a cgo argument to be passed a Go pointer.")
(license license:expat)))
(define-public go-github-com-mattn-go-runewidth
(package
(name "go-github-com-mattn-go-runewidth")
(version "0.0.14")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mattn/go-runewidth")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1iaqw5pd7f4f2xz37540kp0828p2820g4vxx3hz089hwl331sx1v"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mattn/go-runewidth"))
(propagated-inputs
(list go-github-com-rivo-uniseg))
(home-page "https://github.com/mattn/go-runewidth")
(synopsis "Rune width implementation for Go")
(description
"This package provides functions to get the fixed width of a character or
string.")
(license license:expat)))
(define-public go-github-com-mattn-go-shellwords
(package
(name "go-github-com-mattn-go-shellwords")
(version "1.0.12")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mattn/go-shellwords")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"0l0l5s4hlsrm4z6hygig2pp1qirk5ycrzn9z27ay3yvg9k7zafzx"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/mattn/go-shellwords"
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-sh-path
(lambda* (#:key import-path #:allow-other-keys)
(substitute* (string-append
"src/" import-path "/util_posix.go")
(("/bin/sh") (which "sh"))))))))
(home-page "https://github.com/mattn/go-shellwords")
(synopsis "Parse lines into shell words")
(description "This package parses text into shell arguments. Based on
the @code{cpan} module @code{Parse::CommandLine}.")
(license license:expat)))
(define-public go-github-com-mattn-go-sqlite3
(package
(name "go-github-com-mattn-go-sqlite3")
(version "1.14.6")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mattn/go-sqlite3")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "04anvqkc37mmc3z1dy4xfa6cas67zlxnnab0ywii7sylk864mhxz"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mattn/go-sqlite3"))
(home-page "https://github.com/mattn/go-sqlite3")
(synopsis "Sqlite3 driver for Go")
(description
"This package provides a Sqlite3 driver for Go using
@code{database/sql}.")
(license license:expat)))
(define-public go-github-com-mattn-go-zglob
(package
(name "go-github-com-mattn-go-zglob")
(version "0.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mattn/go-zglob")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1923lvakm66mzy62jmngdvcmbmiqclinsvnghs3907rgygnx1qc1"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/mattn/go-zglob"))
(home-page "https://github.com/mattn/go-zglob")
(synopsis "Glob library that descends into other directories")
(description
"This package provides a glob library that implements descending into
other directories. It is optimized for filewalking.")
(license license:expat)))
(define-public go-github-com-miekg-dns
(package
(name "go-github-com-miekg-dns")
(version "1.1.48")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/miekg/dns")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "14m4wnbgmc1prj4ds1fsz1nwb1awaq365lhbp8clzsidxmhjf3hl"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/miekg/dns"))
(propagated-inputs
(list go-golang-org-x-tools
go-golang-org-x-sys
go-golang-org-x-sync
go-golang-org-x-net))
(home-page "https://github.com/miekg/dns")
(synopsis "Domain Name Service library in Go")
(description
"This package provides a fully featured interface to the @acronym{DNS,
Domain Name System}. Both server and client side programming is supported.
The package allows complete control over what is sent out to the @acronym{DNS,
Domain Name Service}. The API follows the less-is-more principle, by
presenting a small interface.")
(license license:bsd-3)))
(define-public go-github-com-modern-go-concurrent
(package
(name "go-github-com-modern-go-concurrent")
(version "1.0.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/modern-go/concurrent")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "0s0fxccsyb8icjmiym5k7prcqx36hvgdwl588y0491gi18k5i4zs"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/modern-go/concurrent"))
(home-page "https://github.com/modern-go/concurrent")
(synopsis "Concurrency utilities for Go")
(description
"A Go library providing various concurrency utilities including a backport
of @code{sync.Map} to Go versions below 1.9 and a cancellable Goroutine with
explicit ownership.")
(license license:asl2.0)))
(define-public go-github-com-modern-go-reflect2
(package
(name "go-github-com-modern-go-reflect2")
(version "1.0.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/modern-go/reflect2")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "05a89f9j4nj8v1bchfkv2sy8piz746ikj831ilbp54g8dqhl8vzr"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/modern-go/reflect2"))
(home-page "https://github.com/modern-go/reflect2")
(synopsis "Cheaper reflect API")
(description
"This library provides a reflect api for Go programs
without the runtime cost of the standard library reflect.Value.")
(license license:asl2.0)))
(define-public go-github-com-mreiferson-go-options
(package
(name "go-github-com-mreiferson-go-options")
(version "1.0.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mreiferson/go-options")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1pxs9ybrh196qy14ijn4zn51h2z28lj31y6vxrz2xxhgvpmfmxyl"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/mreiferson/go-options"))
(home-page "https://github.com/mreiferson/go-options")
(synopsis "Go package to structure and resolve options")
(description
"The @code{options} Go package resolves configuration values set via
command line flags, config files, and default struct values.")
(license license:expat)))
(define-public go-github-com-mreiferson-go-svc
;; NSQ specific fork of github.com/judwhite/go-svc, as Guix go build system
;; does not support go.mod with `replace' statement.
(let ((commit "7a96e00010f68d9436e3de53a70c53f209a0c244")
(revision "0"))
(package
(name "go-github-com-mreiferson-go-svc")
(version (git-version "1.2.1" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/mreiferson/go-svc")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1acgb0n3svhnraqj1fz5qc5n3b4vc5ffwyk9vfi6gcfkibm0hgmd"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/judwhite/go-svc"))
(propagated-inputs (list go-golang-org-x-sys))
(home-page "https://github.com/mreiferson/go-svc")
(synopsis "Go Windows Service wrapper for GNU/Linux")
(description
"Go Windows Service wrapper compatible with GNU/Linux. Windows tests
@url{https://github.com/judwhite/go-svc/raw/master/svc/svc_windows_test.go,here}.")
(license license:expat))))
(define-public go-github-com-msteinert-pam
(package
(name "go-github-com-msteinert-pam")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/msteinert/pam")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1qnr0zxyxny85andq3cbj90clmz2609j8z9mp0zvdyxiwryfhyhj"))))
(build-system go-build-system)
(arguments
(list
#:go gccgo-12
;; tests don't work, they require special root set up
#:tests? #f
#:import-path "github.com/msteinert/pam"))
(inputs `(("linux-pam" ,linux-pam)))
(propagated-inputs `(("go-golang-org-x-term" ,go-golang-org-x-term)))
(home-page "https://github.com/msteinert/pam")
(synopsis "Go PAM")
(description "Package pam provides a wrapper for the PAM application API.")
(license license:bsd-2)))
(define-public go-github-com-multiformats-go-varint
(package
(name "go-github-com-multiformats-go-varint")
(version "0.0.7")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/multiformats/go-varint")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0l4s0z3rc3d350zp6qximl1jjhic6l8w74wkmx244jgfzsxd93af"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/multiformats/go-varint"))
(home-page "https://github.com/multiformats/go-varint")
(synopsis "Varint helpers that enforce minimal encoding")
(description
"This package provides a functionality for encoding and decoding unsigned
varints.")
(license license:expat)))
(define-public go-github-com-nats-io-nats-go
(package
(name "go-github-com-nats-io-nats-go")
(version "1.32.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nats-io/nats.go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "08b3n5mdpxvn9hipz0j001bp5r67i43cqji9x9dyzikypqdfg38k"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.20
#:import-path "github.com/nats-io/nats.go"))
(propagated-inputs (list go-golang-org-x-text
go-github-com-nats-io-nuid
go-github-com-nats-io-nkeys
go-github-com-klauspost-compress))
(home-page "https://github.com/nats-io/nats.go")
(synopsis "Go Client for NATS server")
(description
"This package provides a Go client for the NATS messaging system.")
(license license:asl2.0)))
(define-public go-github-com-nats-io-nuid
(package
(name "go-github-com-nats-io-nuid")
(version "1.0.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nats-io/nuid")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "11zbhg4kds5idsya04bwz4plj0mmiigypzppzih731ppbk2ms1zg"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/nats-io/nuid"))
(home-page "https://github.com/nats-io/nuid")
(synopsis "Go library implementing identifier generator for NATS ecosystem")
(description
"This package provides a unique identifier generator that is high performance,
very fast, and tries to be entropy pool friendly.")
(license license:asl2.0)))
(define-public go-github-com-nbrownus-go-metrics-prometheus
(package
(name "go-github-com-nbrownus-go-metrics-prometheus")
(version "0.0.0-20210712211119-974a6260965f")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nbrownus/go-metrics-prometheus")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1kl9l08aas544627zmhkgp843qx94sxs4inxm20nw1hx7gp79dz0"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/nbrownus/go-metrics-prometheus"))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-prometheus-client-golang
go-github-com-rcrowley-go-metrics))
(home-page "https://github.com/nbrownus/go-metrics-prometheus")
(synopsis "Prometheus support for go-metrics")
(description
"This package provides a reporter for the @code{go-metrics} library which
posts the metrics to the Prometheus client registry and just updates the
registry.")
(license license:asl2.0)))
(define-public go-nhooyr-io-websocket
(package
(name "go-nhooyr-io-websocket")
(version "1.8.10")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nhooyr/websocket")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1ig77m18sj8kx0f5xyi0vzvwc96cspsyk0d52dp5qph7vyc37lja"))))
(build-system go-build-system)
(arguments
(list
;; tests require additional dependencies like `wasmbrowsertest`
#:tests? #f
#:import-path "nhooyr.io/websocket"))
(home-page "https://nhooyr.io/websocket")
(synopsis "Minimal and idiomatic WebSocket library for Go")
(description
"Package websocket implements the
@@url{https://rfc-editor.org/rfc/rfc6455.html,RFC 6455} @code{WebSocket}
protocol.")
(license license:isc)))
(define-public go-github-com-nsqio-go-diskqueue
(package
(name "go-github-com-nsqio-go-diskqueue")
(version "1.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nsqio/go-diskqueue")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1hp66hkmfn0nyf3c53a40f94ah11a9rj01r5zp3jph9p54j8rany"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/nsqio/go-diskqueue"))
(home-page "https://github.com/nsqio/go-diskqueue")
(synopsis "Go package providing a file system backed FIFO queue")
(description
"The @code{diskqueue} Go package provides a file system backed FIFO
queue.")
(license license:expat)))
(define-public go-github-com-nsqio-go-nsq
(package
(name "go-github-com-nsqio-go-nsq")
(version "1.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/nsqio/go-nsq")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1h9z3z225sdgg7fl3l7x11xn5ch6lm5flgmcj046cdp453qj2qhf"))))
(build-system go-build-system)
(arguments
(list #:tests? #f ;tests require networking
#:import-path "github.com/nsqio/go-nsq"))
(propagated-inputs (list go-github-com-golang-snappy))
(home-page "https://github.com/nsqio/go-nsq")
(synopsis "Consumer/producer library for NSQ")
(description
"The @code{nsq} Go module provides a high-level @code{Consumer} and
@code{Producer} types as well as low-level functions to communicate over the
NSQ protocol @url{https://nsq.io/}.")
(license license:expat)))
(define-public go-github-com-op-go-logging
(package
(name "go-github-com-op-go-logging")
(version "1")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/op/go-logging")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "01a6lkpj5p82gplddh55az194s9y3014p4j8x4zc8yv886z9c8gn"))))
(build-system go-build-system)
(arguments
`(#:tests? #f ; ERROR: incorrect callpath: String.rec...a.b.c.Info.
#:import-path "github.com/op/go-logging"))
(home-page "https://github.com/op/go-logging")
(synopsis "Go logging library")
(description
"Go-Logging implements a logging infrastructure for Go. Its
output format is customizable and supports different logging backends like
syslog, file and memory. Multiple backends can be utilized with different log
levels per backend and logger.")
(license license:bsd-3)))
(define-public go-github-com-orisano-pixelmatch
(package
(name "go-github-com-orisano-pixelmatch")
(version "0.0.0-20230914042517-fa304d1dc785")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/orisano/pixelmatch")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1lplxfif5mfqnd0jjph2vd25c3bpr3idfs2axh8z0ib0zdkwca32"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/orisano/pixelmatch"))
(home-page "https://github.com/orisano/pixelmatch")
(synopsis "Pixelmatch port to Go")
(description
"This package provides a port of Pixelmatch, a pixel-level image
comparison library, to Go. Both a library and a command-line tool are
included in this package.")
(license license:expat)))
(define-public go-github-com-pierrec-cmdflag
(package
(name "go-github-com-pierrec-cmdflag")
(version "0.0.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pierrec/cmdflag")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0nxmqkjwd7i3blmspvxib352vm6167h2ffqy4m9zc3fb9srvrpqc"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/pierrec/cmdflag"))
(home-page "https://github.com/pierrec/cmdflag")
(synopsis "Augment the flag package with commands")
(description
"Package @code{cmdflag} provides simple command line commands processing
on top of the standard library @code{flag} package.")
(license license:bsd-3)))
(define-public go-github-com-pires-go-proxyproto
(package
(name "go-github-com-pires-go-proxyproto")
(version "0.7.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/pires/go-proxyproto")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1p18w555xp187fl807h1yd092cvs8jarp98pa76zl84rxlk4k2h4"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.18
#:import-path "github.com/pires/go-proxyproto"))
(home-page "https://github.com/pires/go-proxyproto")
(synopsis "Implementation of the PROXY protocol")
(description
"Package proxyproto implements Proxy Protocol (v1 and v2) parser and writer, as
per specification: @@url{https://www.haproxy.org/download/2.3/doc/proxy-protocol.txt}")
(license license:asl2.0)))
(define-public go-github-com-prometheus-client-model
(let ((commit "14fe0d1b01d4d5fc031dd4bec1823bd3ebbe8016")
(revision "2"))
(package
(name "go-github-com-prometheus-client-model")
(version (git-version "0.0.2" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/prometheus/client_model")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "0zdmk6rbbx39cvfz0r59v2jg5sg9yd02b4pds5n5llgvivi99550"))))
(build-system go-build-system)
(arguments
'(#:import-path "github.com/prometheus/client_model"
#:tests? #f
#:phases
(modify-phases %standard-phases
;; Source-only package
(delete 'build))))
(propagated-inputs
(list go-github-com-golang-protobuf-proto))
(synopsis "Data model artifacts for Prometheus")
(description "This package provides data model artifacts for Prometheus.")
(home-page "https://github.com/prometheus/client_model")
(license license:asl2.0))))
(define-public go-github-com-prometheus-client-model-v0.5
(package
(inherit go-github-com-prometheus-client-model)
(name "go-github-com-prometheus-client-model-v0.5")
(version "0.5.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/prometheus/client_model")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1pl9i969jx5vkhm8vd5vb8yrifv37aw6h8mjg04820pw0ygfbigy"))))))
(define-public go-github-com-rcrowley-go-metrics
(let ((commit "cac0b30c2563378d434b5af411844adff8e32960")
(revision "2"))
(package
(name "go-github-com-rcrowley-go-metrics")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/rcrowley/go-metrics")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1hfxffnpaw49pr3wrkbzq3pnv3nyzsvk5dxndv0yz70xlrbg8a04"))))
(build-system go-build-system)
(arguments
;; Arbitrary precision tests are known to be broken on aarch64, ppc64le
;; and s390x. See: https://github.com/rcrowley/go-metrics/issues/249
`(#:tests? ,(not (string-prefix? "aarch64" (or (%current-target-system)
(%current-system))))
#:import-path "github.com/rcrowley/go-metrics"))
(propagated-inputs
(list go-github-com-stathat-go))
(synopsis "Go port of Coda Hale's Metrics library")
(description "This package provides a Go implementation of Coda Hale's
Metrics library.")
(home-page "https://github.com/rcrowley/go-metrics")
(license license:bsd-2))))
(define-public go-github-com-sherclockholmes-webpush-go
(package
(name "go-github-com-sherclockholmes-webpush-go")
(version "1.3.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/SherClockHolmes/webpush-go")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0qv16zvkd1c7q81v2ai8pfz590fxdrk4lfbgyymln0q7jn5wlvki"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/SherClockHolmes/webpush-go"))
(propagated-inputs
`(("go-golang-org-x-crypto" ,go-golang-org-x-crypto)
("go-github-com-golang-jwt-jwt-v3" ,go-github-com-golang-jwt-jwt-v3)))
(home-page "https://github.com/SherClockHolmes/webpush-go")
(synopsis "Web Push API Encryption with VAPID support")
(description "Web Push API Encryption with VAPID support.")
(license license:expat)))
(define-public go-github-com-schollz-progressbar-v3
(package
(name "go-github-com-schollz-progressbar-v3")
(version "3.13.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/schollz/progressbar")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1hjahr5r52i7w6iyvl3rpzr46iignhfdh4694fl7m2b4gkaw9gd6"))))
(build-system go-build-system)
(arguments
(list #:import-path "github.com/schollz/progressbar/v3"
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'remove-examples
(lambda* (#:key import-path #:allow-other-keys)
(delete-file-recursively
(string-append "src/" import-path "/examples"))))
(replace 'check
(lambda* (#:key tests? import-path #:allow-other-keys)
(when tests?
;; The full test suite requires Internet access, so only
;; run the short tests.
(invoke "go" "test" "-test.short" import-path)))))))
(native-inputs
(list go-github-com-stretchr-testify))
(propagated-inputs
(list go-github-com-mattn-go-runewidth
go-github-com-mitchellh-colorstring
go-golang-org-x-term))
(home-page "https://github.com/schollz/progressbar")
(synopsis "Simple command-line interface (CLI) progress bar")
(description
"This package provides a very simple thread-safe progress bar. The
@code{progressbar} implements an @code{io.Writer} so it can automatically
detect the number of bytes written to a stream, so you can use it as a
@code{progressbar} for an @code{io.Reader}. When @code{progressbar}'s length
is undetermined, a customizable spinner is shown.")
(license license:expat)))
(define-public go-github-com-shirou-gopsutil
(package
(name "go-github-com-shirou-gopsutil")
(version "2.21.11")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/shirou/gopsutil")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0gpb10xkdwfimn1sp4jhrvzz4p3zgmdb78q8v23nap3yi6v4bff5"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.18
#:import-path "github.com/shirou/gopsutil"
#:phases #~(modify-phases %standard-phases
(add-after 'unpack 'remove-v3
(lambda* (#:key import-path #:allow-other-keys)
;; We remove the separately included v3 module.
(delete-file-recursively (string-append "src/"
import-path
"/v3"))))
(add-before 'check 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(delete-file-recursively
;; host_test.go tries to access files such as
;; /var/run/utmp that do not exist in the build
;; environment.
(string-append "src/" import-path "/host/host_test.go")))))))
(propagated-inputs
(list go-github-com-tklauser-go-sysconf go-golang-org-x-sys))
(native-inputs
(list go-github-com-stretchr-testify procps))
(synopsis "Process and system monitoring in Go")
(description
"This package provides a library for retrieving information
on running processes and system utilization (CPU, memory, disks, network,
sensors).")
(home-page "https://github.com/shirou/gopsutil")
(license license:bsd-3)))
(define-public go-github-com-shirou-gopsutil-v3
(package
(inherit go-github-com-shirou-gopsutil)
(name "go-github-com-shirou-gopsutil-v3")
(version "3.24.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/shirou/gopsutil")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1xlfcx6giqaxdah2m02q2i8ynwlzar953wr8wqx1j3004xdgaivd"))))
(arguments
(list
#:go go-1.18
#:import-path "github.com/shirou/gopsutil"
#:phases
#~(modify-phases %standard-phases
(add-before 'check 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(delete-file-recursively
;; host_test.go tries to access files such as
;; /var/run/utmp that do not exist in the build
;; environment.
(string-append "src/" import-path "/host/host_test.go")))))))))
(define-public go-github-com-skip2-go-qrcode
(package
(name "go-github-com-skip2-go-qrcode")
(version "0.0.0-20200617195104-da1b6568686e")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/skip2/go-qrcode")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0pghd6y2x8a5fqy4rjn4d8j5jcslb236naycdza5an7vyvinsgs9"))
(patches (search-patches "go-github-com-skip2-go-qrcode-fix-tests.patch"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/skip2/go-qrcode"))
(home-page "https://github.com/skip2/go-qrcode")
(synopsis "QR code encoder")
(description "This package provides a QR code encoder for the Goloang.")
(license license:expat)))
(define-public go-github-com-songgao-water
(package
(name "go-github-com-songgao-water")
(version "0.0.0-20200317203138-2b4b6d7c09d8")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/songgao/water")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "1k5aildfszp6x66jzar4y36lic8ijkb5020hfaivpvq3bnwdiikl"))))
(build-system go-build-system)
(arguments '(#:tests? #f ; Tests require network interface access
#:import-path "github.com/songgao/water"))
(home-page "https://github.com/songgao/water")
(synopsis "Simple network TUN/TAP library")
(description
"This package provides a simple TUN/TAP interface library for Go that
efficiently works with standard packages like @code{io}, @code{bufio}, etc..
Use waterutil with it to work with TUN/TAP packets/frames.")
(license license:bsd-3)))
(define-public go-github-com-songmu-gitconfig
(package
(name "go-github-com-songmu-gitconfig")
(version "0.1.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/songmu/gitconfig")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0p7b5n4h4vsjpb7ipfn4n1p8i978d8mlx8pi0m5dla57mj8v56hj"))))
(build-system go-build-system)
(arguments
(list
;; Package's tests appear to be hardcoded to the author's gitconfig
;; and require network access.
#:tests? #f
#:go go-1.21
#:import-path "github.com/Songmu/gitconfig"))
(propagated-inputs
(list go-github-com-goccy-yaml))
(home-page "https://github.com/songmu/gitconfig")
(synopsis "Go library to get configuration values from gitconfig")
(description
"@{gitconfig} is a package to get configuration values from gitconfig.")
(license license:expat)))
(define-public go-github-com-spf13-cobra
(package
(name "go-github-com-spf13-cobra")
(version "1.8.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/spf13/cobra")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0mhnqfgcwwcknlhk7n07i02q3iqq6ihksj4dwz296zci8ry3w0d0"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/spf13/cobra"))
(propagated-inputs
(list go-github-com-spf13-pflag))
(home-page "https://github.com/spf13/cobra")
(synopsis "Go library for creating CLI applications")
(description
"Cobra is both a library for creating powerful modern CLI applications as
well as a program to generate applications and command files.")
(license license:asl2.0)))
(define-public go-github-com-stathat-go
(let ((commit "74669b9f388d9d788c97399a0824adbfee78400e")
(revision "0"))
(package
(name "go-github-com-stathat-go")
(version (git-version "0.0.0" revision commit))
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/stathat/go")
(commit commit)))
(file-name (git-file-name name version))
(sha256
(base32 "1zzlsl24dyr202qkr2pay22m6d0gb7ssms77wgdx0r0clgm7dihw"))))
(build-system go-build-system)
(arguments
`(#:import-path "github.com/stathat/go"))
(synopsis "Post statistics to StatHat")
(description "This is a Go package for posting to a StatHat account.")
(home-page "https://github.com/stathat/go")
(license license:expat))))
(define-public go-github-com-tklauser-go-sysconf
(package
(name "go-github-com-tklauser-go-sysconf")
(version "0.3.13")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tklauser/go-sysconf")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "07vkimncnmh89706s49599h2w9gwa6jyrv70f8ifw90nsh766km9"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.18
#:import-path "github.com/tklauser/go-sysconf"
#:phases #~(modify-phases %standard-phases
(add-before 'check 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(delete-file-recursively
;; sysconf_test.go (among others) tries to read the
;; number of online CPUs using /proc/stat and
;; /sys/devices/system/cpu/online. These files are not
;; accessible in the test environment.
(string-append "src/" import-path
"/cgotest/sysconf_test.go")))))))
(propagated-inputs (list go-golang-org-x-sys
go-github-com-tklauser-numcpus))
(home-page "https://github.com/tklauser/go-sysconf")
(synopsis "Go implementation of @code{sysconf}")
(description
"This package implements @code{sysconf} and provides the associated
@code{SC_*} constants to query system configuration values at run time.")
(license license:bsd-3)))
(define-public go-github-com-tklauser-numcpus
(package
(name "go-github-com-tklauser-numcpus")
(version "0.7.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tklauser/numcpus")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1xcwk42zr6q72zvkqdd9nbyhvq11rmwm2164mr2rvbb9z7alkff8"))))
(build-system go-build-system)
(arguments
(list
#:go go-1.18
#:import-path "github.com/tklauser/numcpus"
#:phases #~(modify-phases %standard-phases
(add-before 'check 'remove-failing-tests
(lambda* (#:key import-path #:allow-other-keys)
(with-directory-excursion (string-append "src/"
import-path)
(for-each delete-file-recursively
;; These tests try to access
;; /sys/devices/system/cpu, which is not
;; available in the test environment.
'("numcpus_test.go" "numcpus_linux_test.go"))))))))
(propagated-inputs (list go-golang-org-x-sys))
(home-page "https://github.com/tklauser/numcpus")
(synopsis "Provides information about the number of CPUs in the system")
(description
"This package provides both library functions and a command-line tool to
query information regarding the number of CPUs available to the system.")
(license license:asl2.0)))
(define-public go-github-com-tkuchiki-go-timezone
(package
(name "go-github-com-tkuchiki-go-timezone")
(version "0.2.2")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/tkuchiki/go-timezone")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1rmvg4hh0br51vbsxacani2g0v5xxsayp8q4xli9jag25zi5rhd1"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/tkuchiki/go-timezone"))
(home-page "https://github.com/tkuchiki/go-timezone")
(synopsis "Timezone utility for Golang")
(description
"This package provides provides an utility for timezone manipulation,
implementing the following features:
@itemize
@item this library uses only the standard package
@item supports getting offset from timezone abbreviation, which is not
supported by the time package
@item determine whether the specified time.Time is daylight saving time
@item change the location of time.Time by specifying the timezone
@end itemize")
(license license:expat)))
(define-public go-github-com-vividcortex-ewma
(package
(name "go-github-com-vividcortex-ewma")
(version "1.2.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/VividCortex/ewma")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0whx516l9nm4n41spagb605ry7kfnz1qha96mcshnfjlahhnnylq"))))
(build-system go-build-system)
(arguments '(#:import-path "github.com/VividCortex/ewma"))
(home-page "https://github.com/VividCortex/ewma")
(synopsis "Exponentially Weighted Moving Average algorithms for Go")
(description
"This package implements algorithms for
@url{https://en.wikipedia.org/wiki/Moving_average#Exponential_moving_average,exponentially
weighted moving averages}.")
(license license:expat)))
(define-public go-github-com-whyrusleeping-go-sysinfo
(package
(name "go-github-com-whyrusleeping-go-sysinfo")
(version "0.0.0-20190219211824-4a357d4b90b1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/whyrusleeping/go-sysinfo")
(commit (go-version->git-ref version))))
(file-name (git-file-name name version))
(sha256
(base32 "0s6yjp9incc579wbbga33vq0hcanv8j2xh9l90ya0r4fihz39jiq"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/whyrusleeping/go-sysinfo"))
(propagated-inputs
(list go-github-com-dustin-go-humanize))
(home-page "https://github.com/whyrusleeping/go-sysinfo")
(synopsis "Package to extract system information")
;; There is not much information provided by the project, see
;; <https://github.com/whyrusleeping/go-sysinfo/issues>.
(description
"This package provides a basic system stats like @code{DiskUsage} and
@code{MemoryInfo}.")
(license license:expat)))
(define-public go-github-com-xhit-go-str2duration-v2
(package
(name "go-github-com-xhit-go-str2duration-v2")
(version "2.1.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/xhit/go-str2duration")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1c9zi9mfy5ww413y1jpfh1rdis43lvd5v6gvajqzh4q1km9lyxjj"))))
(build-system go-build-system)
(arguments
(list
#:import-path "github.com/xhit/go-str2duration/v2"))
(home-page "https://github.com/xhit/go-str2duration")
(synopsis "Convert string to duration in golang")
(description
"This package provides a means to obtain @code{time.Duration} from a
string. The string can be a string retorned for @code{time.Duration} or a
similar string with weeks or days too.")
(license license:bsd-3)))
(define-public go-go-uber-org-automaxprocs
(package
(name "go-go-uber-org-automaxprocs")
(version "1.5.3")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/uber-go/automaxprocs")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "03arxcfaj7k6iwfdk0liaynxf9rjfj9m5glsjp7ws01xjkgrdpbc"))))
(build-system go-build-system)
(arguments
'(#:import-path "go.uber.org/automaxprocs"))
(native-inputs (list go-github-com-stretchr-testify
go-github-com-prashantv-gostub))
(home-page "https://github.com/uber-go/automaxprocs")
(synopsis "CPU-count detection library for Go")
(description
"This package automatically set GOMAXPROCS to match Linux container
CPU quota.")
(license license:expat)))
(define-public go-go-uber-org-zap
(package
(name "go-go-uber-org-zap")
(version "1.24.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/uber-go/zap")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "0lzbbs87fvixzbyv4wpl3s70vm2m0jz2jgdvrviiksc2al451qgs"))))
(build-system go-build-system)
(arguments
'(#:import-path "go.uber.org/zap"
#:tests? #f)) ; TODO: Fix tests
(native-inputs
(list go-github-com-stretchr-testify
go-golang-org-x-lint
go-honnef-co-go-tools))
(propagated-inputs
(list go-github-com-pkg-errors
go-go-uber-org-atomic
go-go-uber-org-multierr
go-gopkg-in-yaml-v2))
(home-page "https://go.uber.org/zap")
(synopsis "Logging library for Go")
(description
"This package provides a library for fast, structured, leveled logging in
Go.")
(license license:expat)))
(define-public go-gopkg-in-alecthomas-kingpin-v2
(package
(inherit go-github-com-alecthomas-kingpin)
(arguments
(list
#:import-path "gopkg.in/alecthomas/kingpin.v2"))))
(define-public go-gopkg-in-cheggaaa-pb-v1
(package
(inherit go-github-com-cheggaaa-pb-v3)
(name "go-gopkg-in-cheggaaa-pb-v1")
(version "1.0.28")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gopkg.in/cheggaaa/pb.v1.git")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "13a66cqbpdif804qj12z9ad8r24va9q41gfk71qbc4zg1wsxs3rh"))))
(arguments
(list
#:import-path "gopkg.in/cheggaaa/pb.v1"))))
(define-public go-gopkg-in-natefinch-lumberjack.v2
(package
(name "go-gopkg-in-natefinch-lumberjack.v2")
(version "2.1")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/natefinch/lumberjack")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1l3vlv72b7rfkpy1164kwd3qzrqmmjnb67akzxqp2mlvc66k6p3d"))))
(build-system go-build-system)
(arguments
(list
#:import-path "gopkg.in/natefinch/lumberjack.v2"))
(propagated-inputs
(list go-github-com-burntsushi-toml
go-gopkg-in-yaml-v2))
(home-page "https://github.com/natefinch/lumberjack")
(synopsis "Rolling logger for Go")
(description
"Lumberjack is a Go package for writing logs to rolling files.")
(license license:expat)))
(define-public go-gopkg-in-op-go-logging-v1
(package
(inherit go-github-com-op-go-logging)
(name "go-gopkg-in-op-go-logging-v1")
(arguments
(substitute-keyword-arguments
(package-arguments go-github-com-op-go-logging)
((#:import-path _) "gopkg.in/op/go-logging.v1")))))
(define-public go-gopkg-in-yaml-v2
(package
(name "go-gopkg-in-yaml-v2")
(version "2.4.0")
(source
(origin
(method git-fetch)
(uri (git-reference
(url "https://gopkg.in/yaml.v2")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32 "1pbmrpj7gcws34g8vwna4i2nhm9p6235piww36436xhyaa10cldr"))
(modules '((guix build utils)))
(snippet
#~(begin
;; https://github.com/go-yaml/yaml/issues/441 and
;; https://github.com/go-yaml/yaml/pull/442
;; Don't assume 64-bit wide integers
(substitute* "decode_test.go"
(("bin: (-0b1000000000000000000000000000000000000000000000000000000000000000)" all number)
(string-append "int64_min_base2: " number))
(("map\\[string\\]interface\\{\\}\\{\"bin\": -9223372036854775808\\}")
"map[string]int64{\"int64_min_base2\": math.MinInt64}"))))))
(build-system go-build-system)
(arguments
(list
#:import-path "gopkg.in/yaml.v2"))
(native-inputs
(list go-gopkg-in-check-v1))
(home-page "https://gopkg.in/yaml.v2")
(synopsis "YAML reader and writer for the Go language")
(description
"This package provides a Go library for encode and decode YAML
values.")
(license license:asl2.0)))
;;;
;;; Executables:
;;;
(define-public go-hclogvet
(package
(inherit go-github-com-hashicorp-go-hclog)
(name "go-hclogvet")
(arguments
(list
#:import-path "github.com/hashicorp/go-hclog/hclogvet"
#:unpack-path "github.com/hashicorp/go-hclog"
#:install-source? #f))
(propagated-inputs
(list go-golang-org-x-tools))
(description
"@code{hclogvet} is a @code{go vet} tool for checking that the
Trace/Debug/Info/Warn/Error methods on @code{hclog.Logger} are used
correctly.")))
(define-public go-numcpus
(package
(inherit go-github-com-tklauser-numcpus)
(name "go-numcpus")
(arguments
(list
#:go go-1.18
#:import-path "github.com/tklauser/numcpus/cmd/numcpus"
#:unpack-path "github.com/tklauser/numcpus"
#:install-source? #f))
(description
"This package provides a CLI build from the
go-github-com-tklauser-numcpus source.")))
(define-public go-pixelmatch
(package
(inherit go-github-com-orisano-pixelmatch)
(name "go-pixelmatch")
(arguments
(list
#:import-path "github.com/orisano/pixelmatch/cmd/pixelmatch"
#:unpack-path "github.com/orisano/pixelmatch"
#:install-source? #f))
(synopsis "Pixel-level image comparison command")
(description
"This package provides a CLI build from the
go-github-com-orisano-pixelmatch source.")))
;;;
;;; Avoid adding new packages to the end of this file. To reduce the chances
;;; of a merge conflict, place them above by existing packages with similar
;;; functionality or similar names.
;;;
|