nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 versionCheckHook,
6 nix-update-script,
7}:
8
9rustPlatform.buildRustPackage (finalAttrs: {
10 pname = "doxx";
11 version = "0.1.2";
12
13 src = fetchFromGitHub {
14 owner = "bgreenwell";
15 repo = "doxx";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-V0pBeh9u6iNt6hS1MpUau6nYBdfn9bELhR0GAMqTRmc=";
18 };
19
20 cargoHash = "sha256-WsV6IGKO3mwAXtqXHu+CP1dQ/tw1jsuZlfSZx4L2WIM=";
21
22 # https://github.com/bgreenwell/doxx/issues/65
23 checkFlags = [ "--skip=terminal_image::tests::test_renderer_creation" ];
24
25 postInstall = ''
26 rm $out/bin/generate_test_docs
27 '';
28
29 nativeInstallCheckInputs = [ versionCheckHook ];
30
31 passthru.updateScript = nix-update-script { };
32
33 meta = {
34 description = "Terminal document viewer for .docx files";
35 longDescription = ''
36 `doxx` is a lightning-fast, terminal-native document viewer for
37 Microsoft Word files. Built with Rust for performance and
38 reliability, it brings Word documents to your command line with
39 beautiful rendering, smart table support, and powerful export
40 capabilities.
41 '';
42 homepage = "https://github.com/bgreenwell/doxx";
43 changelog = "https://github.com/bgreenwell/doxx/blob/${finalAttrs.src.tag}/CHANGELOG.md";
44 license = lib.licenses.mit;
45 maintainers = with lib.maintainers; [ yiyu ];
46 mainProgram = "doxx";
47 };
48})