diff options
author | figsoda <figsoda@pm.me> | 2023-07-12 11:36:25 -0400 |
---|---|---|
committer | figsoda <figsoda@pm.me> | 2023-07-12 11:36:25 -0400 |
commit | dd73f358ab30754f52b97aed9f023ae5ef70c077 (patch) | |
tree | 04193b57cf5c5a591dedf351cb987a00a482b33e /pkgs/tools/text/xml | |
parent | 9a1074ae6b2e76f8c1ae69a5c467f4097de85516 (diff) |
xq-xml: init at 1.2.1
https://github.com/sibprogrammer/xq
Diffstat (limited to 'pkgs/tools/text/xml')
-rw-r--r-- | pkgs/tools/text/xml/xq/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/text/xml/xq/default.nix b/pkgs/tools/text/xml/xq/default.nix new file mode 100644 index 0000000000000..9c6db5bd5fe77 --- /dev/null +++ b/pkgs/tools/text/xml/xq/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, testers +, xq +}: + +buildGoModule rec { + pname = "xq"; + version = "1.2.1"; + + src = fetchFromGitHub { + owner = "sibprogrammer"; + repo = "xq"; + rev = "v${version}"; + hash = "sha256-Z14x1b25wKNm9fECkNqGJglK/Z8Xq8VHmYfp5aEvvMU="; + }; + + vendorHash = "sha256-CP4QsrTkFcOLDxnFc0apevXRmXHA9aJSU4AK9+TAxOU="; + + ldflags = [ + "-s" + "-w" + "-X=main.commit=${src.rev}" + "-X=main.version=${version}" + ]; + + passthru.tests = { + version = testers.testVersion { + package = xq; + }; + }; + + 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 ]; + }; +} |