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