Files
nixpkgs/pkgs/by-name/xe/xee/package.nix
Jonathan Davies 116036d574 treewide: Remove redundant versionCheckProgramArg = "--version"; with:
```shell
git grep -l -e 'versionCheckProgramArg = "--version";' -e 'versionCheckProgramArg = \[ "--version" \];' | while read f; do
  sed -i '/versionCheckProgramArg/d' "$f"
  sed -i '/^$/N;/\n$/D' "$f"
done
```
2025-11-20 10:39:02 +00:00

43 lines
1.0 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
writers,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "xee";
version = "0.1.6";
src = fetchFromGitHub {
owner = "Paligo";
repo = "xee";
tag = "xee-v${finalAttrs.version}";
hash = "sha256-AU1x2Y2oDaUi4XliOf3GxJCwPv/OMTTUE2p/SOJtM2k=";
};
cargoHash = "sha256-30OXowgIVSXMFEZVM74kwU8mdDuXVngsISyVQ0MB+VQ=";
cargoBuildFlags = [
"--package"
"xee"
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
meta = {
description = "XML Execution Engine written in Rust";
longDescription = ''
Load XML documents, issue XPath expressions against them, including in
a REPL, and pretty-print XML documents. A Swiss Army knife CLI for XML.
'';
homepage = "https://github.com/Paligo/xee";
changelog = "https://github.com/Paligo/xee/releases/tag/xee-v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pbsds ];
mainProgram = "xee";
};
})