blob: 84dc36511bb9bc3437badaac65be6d7255ab55c2 (
plain) (
blame)
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
|
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, xq-xml
}:
buildGoModule rec {
pname = "xq";
version = "1.2.2";
src = fetchFromGitHub {
owner = "sibprogrammer";
repo = "xq";
rev = "v${version}";
hash = "sha256-bhJ8zMZQZn/VzhulkfGOW+uyS8E43TIREAvKIsEPonA=";
};
vendorHash = "sha256-iJ1JMvIJqXLkZXuzn2rzKnLbiagTocg/6mJN3Pgd/4w=";
ldflags = [
"-s"
"-w"
"-X=main.commit=${src.rev}"
"-X=main.version=${version}"
];
passthru.tests = {
version = testers.testVersion {
package = xq-xml;
};
};
meta = with lib; {
description = "Command-line XML and HTML beautifier and content extractor";
homepage = "https://github.com/sibprogrammer/xq";
changelog = "https://github.com/sibprogrammer/xq/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
};
}
|