Merge pull request #243093 from figsoda/xq

This commit is contained in:
figsoda 2023-07-14 11:11:05 -04:00 committed by GitHub
commit ca654df896
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -14516,6 +14516,8 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) AppKit;
};
xq-xml = callPackage ../tools/text/xml/xq { };
xsecurelock = callPackage ../tools/X11/xsecurelock { };
xsel = callPackage ../tools/misc/xsel { };