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