2016-02-07 01:51:28 -08:00
|
|
|
{ stdenv, fetchFromGitHub, qtbase, makeWrapper, libX11 }:
|
2014-09-12 04:51:20 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-02-07 01:51:28 -08:00
|
|
|
name = "cmst-2016.01.28";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "1zf4jnrnbi05mrq1fnsji5zx60h1knrkr64pwcz2c7q8p59k4646";
|
|
|
|
rev = name;
|
|
|
|
repo = "cmst";
|
|
|
|
owner = "andrew-bibb";
|
2014-09-12 04:51:20 -07:00
|
|
|
};
|
|
|
|
|
2015-12-19 18:49:14 -08:00
|
|
|
buildInputs = [ qtbase makeWrapper ];
|
2014-09-12 04:51:20 -07:00
|
|
|
|
|
|
|
configurePhase = ''
|
2016-04-14 20:00:18 -07:00
|
|
|
runHook preConfigure
|
2014-09-12 04:51:20 -07:00
|
|
|
substituteInPlace ./cmst.pro \
|
|
|
|
--replace "/usr/bin" "$out/bin" \
|
|
|
|
--replace "/usr/share" "$out/usr/share"
|
2014-12-08 03:49:28 -08:00
|
|
|
|
|
|
|
substituteInPlace ./cmst.pri \
|
|
|
|
--replace "/usr/lib" "$out/lib" \
|
|
|
|
--replace "/usr/share" "$out/share"
|
|
|
|
|
|
|
|
substituteInPlace ./apps/cmstapp/cmstapp.pro \
|
|
|
|
--replace "/usr/bin" "$out/bin" \
|
|
|
|
--replace "/usr/share" "$out/share"
|
|
|
|
|
|
|
|
substituteInPlace ./apps/rootapp/rootapp.pro \
|
|
|
|
--replace "/etc" "$out/etc" \
|
|
|
|
--replace "/usr/share" "$out/share"
|
2016-04-14 20:00:18 -07:00
|
|
|
runHook postConfigure
|
2014-09-12 04:51:20 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
2016-04-14 20:00:18 -07:00
|
|
|
runHook preBuild
|
2014-09-12 04:51:20 -07:00
|
|
|
qmake PREFIX=$out
|
|
|
|
make
|
2016-04-14 20:00:18 -07:00
|
|
|
runHook postBuild
|
2014-09-12 04:51:20 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/cmst \
|
|
|
|
--prefix "QTCOMPOSE" ":" "${libX11}/share/X11/locale"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "QT GUI for Connman with system tray icon";
|
|
|
|
homepage = "https://github.com/andrew-bibb/cmst";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.matejc ];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|