blob: da0d26abc0190aaec06373687d0b184c73c0d328 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "txm";
version = "0.1.6";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "thatmagicalcat";
repo = "txm";
tag = "v${finalAttrs.version}";
hash = "sha256-ZpR4uCjGP3GdMbwNTflQNReytPsJjfFw7OdU4P6bDTw=";
};
cargoHash = "sha256-G6C0Z1TMTjzXwbzpuimw6v7FOl2V+M1NjjcgEKPTKwA=";
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Terminal math rendering engine with LaTeX support";
homepage = "https://github.com/thatmagicalcat/txm";
changelog = "https://github.com/thatmagicalcat/txm/releases/tag/v${finalAttrs.src.tag}";
license = with lib.licenses; [
mit
asl20
];
maintainers = with lib.maintainers; [ DuskyElf ];
mainProgram = "txm";
platforms = lib.platforms.all;
};
})
|