{ lib, rustPlatform, fetchFromGitHub, versionCheckHook, nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "schemat"; version = "0.4.2"; src = fetchFromGitHub { owner = "raviqqe"; repo = "schemat"; tag = "v${finalAttrs.version}"; hash = "sha256-JOrBQvrnA/qSmI+jJjGjcxEWFDCfiUmtJaZPI3N0rMk="; }; cargoHash = "sha256-zGP8m05g6zEQ/dx9ChLhUCM2x9q3bltPW+9ku05rzCE="; 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"; }; })