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