3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/networking/cmst/default.nix

51 lines
1.3 KiB
Nix
Raw Normal View History

2015-12-20 02:49:14 +00:00
{ stdenv, fetchgit, qtbase, makeWrapper, libX11 }:
2014-09-12 12:51:20 +01:00
stdenv.mkDerivation rec {
2014-12-08 11:49:28 +00:00
name = "cmst-2014.12.05";
2014-09-12 12:51:20 +01:00
rev = "refs/tags/${name}";
src = fetchgit {
url = "git://github.com/andrew-bibb/cmst.git";
inherit rev;
2014-12-08 11:49:28 +00:00
sha256 = "070rxv3kyn41ra7nnk1wbqvy6fjg38h7hrdv4dn71b201kmzd194";
2014-09-12 12:51:20 +01:00
};
2015-12-20 02:49:14 +00:00
buildInputs = [ qtbase makeWrapper ];
2014-09-12 12:51:20 +01:00
configurePhase = ''
substituteInPlace ./cmst.pro \
--replace "/usr/bin" "$out/bin" \
--replace "/usr/share" "$out/usr/share"
2014-12-08 11:49:28 +00: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"
2014-09-12 12:51:20 +01:00
'';
buildPhase = ''
qmake PREFIX=$out
make
'';
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;
};
}