nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 nix-update-script,
6 versionCheckHook,
7}:
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "basalt";
10 version = "0.11.0";
11
12 src = fetchFromGitHub {
13 owner = "erikjuhani";
14 repo = "basalt";
15 tag = "basalt/v${finalAttrs.version}";
16 hash = "sha256-+bkONCG4PSa266r0am2sjtz2WJXdhwijfJ8Uz3iEk68=";
17 };
18
19 cargoHash = "sha256-7jkeDZhGoufY1lHnhc2yKz2ulBf/nlV4ngY2XRSHF+4=";
20
21 nativeInstallCheckInputs = [ versionCheckHook ];
22 doInstallCheck = true;
23
24 passthru.updateScript = nix-update-script { };
25
26 meta = {
27 description = "TUI Application to manage Obsidian notes directly from the terminal";
28 homepage = "https://github.com/erikjuhani/basalt";
29 changelog = "https://github.com/erikjuhani/basalt/blob/${finalAttrs.src.tag}/basalt/CHANGELOG.md";
30 license = lib.licenses.mit;
31 maintainers = with lib.maintainers; [ faukah ];
32 mainProgram = "basalt";
33 };
34})