schemat: init at 0.4.0

This commit is contained in:
Luna Simons
2025-05-22 21:22:24 +02:00
parent 71c6860ae3
commit e673213ed2
+35
View File
@@ -0,0 +1,35 @@
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "schemat";
version = "0.4.0";
src = fetchFromGitHub {
owner = "raviqqe";
repo = "schemat";
tag = "v${finalAttrs.version}";
hash = "sha256-LFUXohgQQObuyXv0dVzaok922x0G6zd2vqxDvJU506U=";
};
cargoHash = "sha256-YdeeFYETvgWQFkjERRaP3NsqBNLdtWqo67spxrhuYDk=";
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Code formatter for Scheme, Lisp, and any S-expressions";
homepage = "https://github.com/raviqqe/schemat";
changelog = "https://github.com/raviqqe/schemat/releases/tag/v${finalAttrs.version}";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ bddvlpr ];
mainProgram = "schemat";
};
})