2021-01-11 07:54:33 +00:00
|
|
|
{ fetchgit, libcommuni, qtbase, qmake, lib, stdenv }:
|
2016-01-10 11:01:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "communi";
|
2017-08-29 10:45:39 +00:00
|
|
|
version = "3.5.0";
|
2016-01-10 11:01:48 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/communi/communi-desktop.git";
|
2017-08-29 10:45:39 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "10grskhczh8601s90ikdsbjabgr9ypcp2j7vivjkl456rmg6xbji";
|
2016-08-29 14:43:10 +00:00
|
|
|
fetchSubmodules = true;
|
2016-01-10 11:01:48 +00:00
|
|
|
};
|
|
|
|
|
2017-05-17 19:26:11 +00:00
|
|
|
nativeBuildInputs = [ qmake ];
|
2016-03-08 12:35:03 +00:00
|
|
|
|
2016-04-16 19:59:20 +00:00
|
|
|
buildInputs = [ libcommuni qtbase ];
|
2016-01-10 11:01:48 +00:00
|
|
|
|
2016-09-01 08:46:11 +00:00
|
|
|
enableParallelBuilding = true;
|
2016-01-10 11:01:48 +00:00
|
|
|
|
2016-04-16 19:59:20 +00:00
|
|
|
preConfigure = ''
|
2016-01-10 11:01:48 +00:00
|
|
|
export QMAKEFEATURES=${libcommuni}/features
|
2016-03-08 12:35:03 +00:00
|
|
|
'';
|
|
|
|
|
2020-09-12 11:25:56 +00:00
|
|
|
qmakeFlags = [
|
|
|
|
"COMMUNI_INSTALL_PREFIX=${placeholder "out"}"
|
|
|
|
"COMMUNI_INSTALL_BINS=${placeholder "out"}/bin"
|
|
|
|
"COMMUNI_INSTALL_PLUGINS=${placeholder "out"}/lib/communi/plugins"
|
|
|
|
"COMMUNI_INSTALL_ICONS=${placeholder "out"}/share/icons/hicolor"
|
|
|
|
"COMMUNI_INSTALL_DESKTOP=${placeholder "out"}/share/applications"
|
|
|
|
"COMMUNI_INSTALL_THEMES=${placeholder "out"}/share/communi/themes"
|
|
|
|
];
|
|
|
|
|
2018-03-17 13:46:02 +00:00
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isLinux ''
|
2016-03-16 14:23:10 +00:00
|
|
|
substituteInPlace "$out/share/applications/communi.desktop" \
|
|
|
|
--replace "/usr/bin" "$out/bin"
|
2016-01-10 11:01:48 +00:00
|
|
|
'';
|
|
|
|
|
2017-06-18 11:39:18 +00:00
|
|
|
preFixup = ''
|
2017-08-29 10:45:39 +00:00
|
|
|
rm -rf lib
|
2016-08-29 14:43:10 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-01-10 11:01:48 +00:00
|
|
|
description = "A simple and elegant cross-platform IRC client";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/communi/communi-desktop";
|
2016-01-10 11:01:48 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ hrdinka ];
|
2016-03-08 12:35:03 +00:00
|
|
|
platforms = platforms.all;
|
2016-01-10 11:01:48 +00:00
|
|
|
};
|
|
|
|
}
|