{ lib, rustPlatform, fetchFromGitHub, nix-update-script, versionCheckHook, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "basalt"; version = "0.12.6"; src = fetchFromGitHub { owner = "erikjuhani"; repo = "basalt"; tag = "basalt/v${finalAttrs.version}"; hash = "sha256-MlKrVxNU9PNakIA9hiv5ll7ImkPDekQnassWFO/smkE="; }; cargoHash = "sha256-sTU0AUwR5xdnqLvrRycxuMk+KNcsEcYU3XvyODKT1Ns="; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; passthru.updateScript = nix-update-script { }; meta = { description = "TUI Application to manage Obsidian notes directly from the terminal"; homepage = "https://github.com/erikjuhani/basalt"; changelog = "https://github.com/erikjuhani/basalt/blob/${finalAttrs.src.tag}/basalt/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ faukah ]; mainProgram = "basalt"; }; })