From 7999bd11a9db0d9da20df9c419dc9caa13b35bbb Mon Sep 17 00:00:00 2001 From: faukah Date: Tue, 29 Jul 2025 20:29:04 +0200 Subject: [PATCH] basalt: init at 0.9.0 --- pkgs/by-name/ba/basalt/package.nix | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ba/basalt/package.nix diff --git a/pkgs/by-name/ba/basalt/package.nix b/pkgs/by-name/ba/basalt/package.nix new file mode 100644 index 000000000000..cc2ba0960497 --- /dev/null +++ b/pkgs/by-name/ba/basalt/package.nix @@ -0,0 +1,34 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, + versionCheckHook, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "basalt"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "erikjuhani"; + repo = "basalt"; + tag = "basalt/v${finalAttrs.version}"; + hash = "sha256-r34MlNSLZAHqNWlFMGNxT6zTSX+IKKQmJ4klEB4kjek="; + }; + + cargoHash = "sha256-TpbJ1HCBocgLAXGb5dBbZNMlOYXR9IGBRtfShgwlMIo="; + + 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"; + }; +})