1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 cmake,
6 pkg-config,
7 qttools,
8 ninja,
9 cups,
10 curl,
11 libGL,
12 qtbase,
13 qt5compat,
14 qtcreator,
15 vulkan-headers,
16}:
17stdenv.mkDerivation (finalAttrs: {
18 pname = "qodeassist-plugin";
19 version = "0.6.2";
20
21 src = fetchFromGitHub {
22 owner = "Palm1r";
23 repo = "QodeAssist";
24 tag = "v${finalAttrs.version}";
25 hash = "sha256-M+h4TXgsRBHxta0prFxvxjyrD0MXLWJxpWI5tA4+ZY8=";
26 };
27
28 dontWrapQtApps = true;
29
30 nativeBuildInputs = [
31 cmake
32 pkg-config
33 ninja
34 (qttools.override { withClang = true; })
35 ];
36
37 buildInputs = [
38 cups
39 curl
40 libGL
41 qtbase
42 qt5compat
43 qtcreator
44 vulkan-headers
45 ];
46
47 outputs = [ "out" ];
48
49 cmakeFlags = [ ];
50
51 installPhase = "mkdir -p $out; cp -R lib $out/";
52
53 meta = {
54 description = "AI-powered coding assistant plugin for Qt Creator";
55 longDescription = ''
56 QodeAssist is an AI-powered coding assistant plugin for Qt Creator.
57 It provides intelligent code completion and suggestions for C++ and QML,
58 leveraging large language models through local providers like Ollama.
59 Enhance your coding productivity with context-aware AI assistance directly
60 in your Qt development environment.
61 '';
62 homepage = "https://github.com/Palm1r/QodeAssist";
63 license = lib.licenses.gpl3Only;
64 maintainers = [ lib.maintainers.zatm8 ];
65 platforms = lib.platforms.linux;
66 };
67})