nixpkgs/pkgs/tools/networking/cmst/default.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

2017-06-02 17:40:19 +02:00
{ stdenv, fetchFromGitHub, qtbase, qmake, makeWrapper, libX11 }:
2014-09-12 13:51:20 +02:00
stdenv.mkDerivation rec {
name = "cmst-${version}";
2017-05-02 13:50:55 +02:00
version = "2017.03.18";
2016-02-07 10:51:28 +01:00
src = fetchFromGitHub {
repo = "cmst";
owner = "andrew-bibb";
rev = name;
2017-05-02 13:50:55 +02:00
sha256 = "0lsg8ya36df48ij0jawgli3f63hy6mn9zcla48whb1l4r7cih545";
2014-09-12 13:51:20 +02:00
};
2017-06-02 17:40:19 +02:00
nativeBuildInputs = [ makeWrapper qmake ];
buildInputs = [ qtbase ];
enableParallelBuilding = true;
2014-09-12 13:51:20 +02:00
preConfigure = ''
2014-09-12 13:51:20 +02:00
substituteInPlace ./cmst.pro \
2016-10-18 19:31:51 +02:00
--replace "/usr/share" "$out/share"
2014-12-08 12:49:28 +01:00
substituteInPlace ./cmst.pri \
--replace "/usr/lib" "$out/lib" \
--replace "/usr/share" "$out/share"
substituteInPlace ./apps/cmstapp/cmstapp.pro \
2016-10-18 19:31:51 +02:00
--replace "/usr/bin" "$out/bin"
2014-12-08 12:49:28 +01:00
substituteInPlace ./apps/rootapp/rootapp.pro \
--replace "/etc" "$out/etc" \
--replace "/usr/share" "$out/share"
2014-09-12 13:51:20 +02: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;
2014-09-12 13:51:20 +02:00
maintainers = [ stdenv.lib.maintainers.matejc ];
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.mit;
};
}