jql: cleanup
This commit is contained in:
@@ -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";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user