fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib
2, buildGoModule
3, fetchFromGitHub
4, testers
5, xq-xml
6}:
7
8buildGoModule rec {
9 pname = "xq";
10 version = "1.2.4";
11
12 src = fetchFromGitHub {
13 owner = "sibprogrammer";
14 repo = "xq";
15 rev = "v${version}";
16 hash = "sha256-g1d5sS3tgxP2VRogWG/5OXezDsJuQ6e724te+Oj3r24=";
17 };
18
19 vendorHash = "sha256-Oy/BBE6qCKJQRNDn6UiBr+/Psgi3A9Eaytmbmjt7eq8=";
20
21 ldflags = [
22 "-s"
23 "-w"
24 "-X=main.commit=${src.rev}"
25 "-X=main.version=${version}"
26 ];
27
28 passthru.tests = {
29 version = testers.testVersion {
30 package = xq-xml;
31 };
32 };
33
34 meta = with lib; {
35 description = "Command-line XML and HTML beautifier and content extractor";
36 mainProgram = "xq";
37 homepage = "https://github.com/sibprogrammer/xq";
38 changelog = "https://github.com/sibprogrammer/xq/releases/tag/${src.rev}";
39 license = licenses.mit;
40 maintainers = with maintainers; [ figsoda ];
41 };
42}