1{
2 mkDerivation,
3 lib,
4 fetchFromGitHub,
5 qmake,
6 qtbase,
7 qttools,
8 gitUpdater,
9}:
10
11mkDerivation rec {
12 pname = "cmst";
13 version = "2023.03.14";
14
15 src = fetchFromGitHub {
16 repo = "cmst";
17 owner = "andrew-bibb";
18 rev = "${pname}-${version}";
19 sha256 = "sha256-yTqPxywPbtxTy1PPG+Mq64u8MrB27fEdmt1B0pn0BVk=";
20 };
21
22 nativeBuildInputs = [
23 qmake
24 qttools
25 ];
26
27 buildInputs = [ qtbase ];
28
29 postPatch = ''
30 for f in $(find . -name \*.cpp -o -name \*.pri -o -name \*.pro); do
31 substituteInPlace $f --replace /etc $out/etc --replace /usr $out
32 done
33 '';
34
35 passthru.updateScript = gitUpdater {
36 rev-prefix = "${pname}-";
37 };
38
39 meta = with lib; {
40 description = "QT GUI for Connman with system tray icon";
41 mainProgram = "cmst";
42 homepage = "https://github.com/andrew-bibb/cmst";
43 maintainers = with maintainers; [
44 matejc
45 romildo
46 ];
47 platforms = platforms.linux;
48 license = licenses.mit;
49 };
50}