jql: cleanup

This commit is contained in:
liberodark
2025-11-07 15:46:07 +01:00
parent d55e7db76a
commit 5a3298f644

View File

@@ -2,32 +2,44 @@
lib,
fetchFromGitHub,
rustPlatform,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "jql";
version = "8.0.9";
src = fetchFromGitHub {
owner = "yamafaktory";
repo = "jql";
rev = "jql-v${version}";
tag = "jql-v${finalAttrs.version}";
hash = "sha256-1gkKOOR2mIUKrbVb1BlFxVuskL6y7s6mrI99xTfjjTI=";
};
cargoHash = "sha256-7pSvHZqvPW9SXwU0AtQHIjgHQCSKPzrBhNxLY5ZAcMw=";
meta = with lib; {
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "JSON Query Language CLI tool built with Rust";
homepage = "https://github.com/yamafaktory/jql";
changelog = "https://github.com/yamafaktory/jql/releases/tag/${src.rev}";
license = with licenses; [
changelog = "https://github.com/yamafaktory/jql/releases/tag/${finalAttrs.src.tag}";
license = with lib.licenses; [
asl20
mit
];
maintainers = with maintainers; [
maintainers = with lib.maintainers; [
akshgpt7
];
mainProgram = "jql";
};
}
})