at master 40 lines 1.2 kB view raw
1{ 2 fetchFromGitHub, 3 lib, 4 rustPlatform, 5 versionCheckHook, 6}: 7rustPlatform.buildRustPackage (finalAttrs: { 8 pname = "emmylua_doc_cli"; 9 version = "0.14.0"; 10 11 src = fetchFromGitHub { 12 owner = "EmmyLuaLs"; 13 repo = "emmylua-analyzer-rust"; 14 tag = finalAttrs.version; 15 hash = "sha256-V/Sy5h0dLayf9Oxgh9eFfDm00hJbwq1WAD8k0AA5GTw="; 16 }; 17 18 buildAndTestSubdir = "crates/emmylua_doc_cli"; 19 20 cargoHash = "sha256-ijxLMf7FjX4LzrYwQilC1QfqRP91yFvq5WCoVFJ9V8M="; 21 22 nativeInstallCheckInputs = [ 23 versionCheckHook 24 ]; 25 versionCheckProgram = "${placeholder "out"}/bin/emmylua_doc_cli"; 26 versionCheckProgramArg = "--version"; 27 doInstallCheck = true; 28 29 meta = { 30 description = "Professional documentation generator creating beautiful, searchable API docs from your Lua code and annotations."; 31 homepage = "https://github.com/EmmyLuaLs/emmylua-analyzer-rust"; 32 changelog = "https://github.com/EmmyLuaLs/emmylua-analyzer-rust/blob/${finalAttrs.src.tag}/CHANGELOG.md"; 33 license = lib.licenses.mit; 34 maintainers = with lib.maintainers; [ 35 mrcjkb 36 ]; 37 platforms = lib.platforms.all; 38 mainProgram = "emmylua_doc_cli"; 39 }; 40})