2022-01-03 16:56:52 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, qmake, qtbase, qttools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "cmst";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "2022.03.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "cmst";
|
|
|
|
owner = "andrew-bibb";
|
|
|
|
rev = "${pname}-${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-PIS77yYM7tR+0vpTDh9Li/dnaWHUQW+w1NLRb5g+sz8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ qtbase ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
for f in $(find . -name \*.cpp -o -name \*.pri -o -name \*.pro); do
|
|
|
|
substituteInPlace $f --replace /etc $out/etc --replace /usr $out
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "QT GUI for Connman with system tray icon";
|
|
|
|
homepage = "https://github.com/andrew-bibb/cmst";
|
2022-01-13 20:06:32 +00:00
|
|
|
maintainers = with maintainers; [ matejc romildo ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|