1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 12:28:51 +00:00
nixpkgs/pkgs/tools/networking/cmst/default.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, qtbase, qmakeHook, makeWrapper, libX11 }:
2014-09-12 12:51:20 +01:00
stdenv.mkDerivation rec {
name = "cmst-${version}";
2016-10-18 18:31:51 +01:00
version = "2016.10.03";
2016-02-07 09:51:28 +00:00
src = fetchFromGitHub {
repo = "cmst";
owner = "andrew-bibb";
rev = name;
2016-10-18 18:31:51 +01:00
sha256 = "1pvk1jg0fiw0j4f1wrnhgirgziliwa44sxfdmcq9ans4zbig4izh";
2014-09-12 12:51:20 +01:00
};
nativeBuildInputs = [ makeWrapper qmakeHook ];
buildInputs = [ qtbase ];
enableParallelBuilding = true;
2014-09-12 12:51:20 +01:00
preConfigure = ''
2014-09-12 12:51:20 +01:00
substituteInPlace ./cmst.pro \
2016-10-18 18:31:51 +01:00
--replace "/usr/share" "$out/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 \
2016-10-18 18:31:51 +01:00
--replace "/usr/bin" "$out/bin"
2014-12-08 11:49:28 +00:00
substituteInPlace ./apps/rootapp/rootapp.pro \
--replace "/etc" "$out/etc" \
--replace "/usr/share" "$out/share"
2014-09-12 12:51:20 +01: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;
};
}