lol
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 writers,
6 versionCheckHook,
7}:
8
9rustPlatform.buildRustPackage (finalAttrs: {
10 pname = "xee";
11 version = "0.1.6";
12
13 src = fetchFromGitHub {
14 owner = "Paligo";
15 repo = "xee";
16 tag = "xee-v${finalAttrs.version}";
17 hash = "sha256-AU1x2Y2oDaUi4XliOf3GxJCwPv/OMTTUE2p/SOJtM2k=";
18 };
19
20 cargoHash = "sha256-30OXowgIVSXMFEZVM74kwU8mdDuXVngsISyVQ0MB+VQ=";
21
22 cargoBuildFlags = [
23 "--package"
24 "xee"
25 ];
26
27 doInstallCheck = true;
28 nativeInstallCheckInputs = [ versionCheckHook ];
29 versionCheckProgramArg = "--version";
30
31 meta = {
32 description = "XML Execution Engine written in Rust";
33 longDescription = ''
34 Load XML documents, issue XPath expressions against them, including in
35 a REPL, and pretty-print XML documents. A Swiss Army knife CLI for XML.
36 '';
37 homepage = "https://github.com/Paligo/xee";
38 changelog = "https://github.com/Paligo/xee/releases/tag/xee-v${finalAttrs.version}";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ pbsds ];
41 mainProgram = "xee";
42 };
43})