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, lib,
fetchFromGitHub, fetchFromGitHub,
rustPlatform, rustPlatform,
versionCheckHook,
nix-update-script,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage (finalAttrs: {
pname = "jql"; pname = "jql";
version = "8.0.9"; version = "8.0.9";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "yamafaktory"; owner = "yamafaktory";
repo = "jql"; repo = "jql";
rev = "jql-v${version}"; tag = "jql-v${finalAttrs.version}";
hash = "sha256-1gkKOOR2mIUKrbVb1BlFxVuskL6y7s6mrI99xTfjjTI="; hash = "sha256-1gkKOOR2mIUKrbVb1BlFxVuskL6y7s6mrI99xTfjjTI=";
}; };
cargoHash = "sha256-7pSvHZqvPW9SXwU0AtQHIjgHQCSKPzrBhNxLY5ZAcMw="; 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"; description = "JSON Query Language CLI tool built with Rust";
homepage = "https://github.com/yamafaktory/jql"; homepage = "https://github.com/yamafaktory/jql";
changelog = "https://github.com/yamafaktory/jql/releases/tag/${src.rev}"; changelog = "https://github.com/yamafaktory/jql/releases/tag/${finalAttrs.src.tag}";
license = with licenses; [ license = with lib.licenses; [
asl20 asl20
mit mit
]; ];
maintainers = with maintainers; [ maintainers = with lib.maintainers; [
akshgpt7 akshgpt7
]; ];
mainProgram = "jql"; mainProgram = "jql";
}; };
} })