2016-04-16 19:59:20 +00:00
|
|
|
{ fetchgit, libcommuni, makeQtWrapper, qtbase, qmakeHook, stdenv }:
|
2016-01-10 11:01:48 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "communi-${version}";
|
2016-08-29 14:43:10 +00:00
|
|
|
version = "2016-08-19";
|
2016-01-10 11:01:48 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/communi/communi-desktop.git";
|
2016-08-29 14:43:10 +00:00
|
|
|
rev = "d516b01b1382a805de65f21f3475e0a8e64a97b5";
|
|
|
|
sha256 = "1pn7mr7ch1ck5qv9zdn3ril40c9kk6l04475564rpzf11jly76an";
|
|
|
|
fetchSubmodules = true;
|
2016-01-10 11:01:48 +00:00
|
|
|
};
|
|
|
|
|
2016-04-16 19:59:20 +00:00
|
|
|
nativeBuildInputs = [ makeQtWrapper qmakeHook ];
|
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-04-16 19:59:20 +00:00
|
|
|
qmakeFlags="$qmakeFlags \
|
2016-03-08 12:35:03 +00: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 19:59:20 +00:00
|
|
|
"
|
2016-03-08 12:35:03 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapQtProgram "$out/bin/communi"
|
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 = ''
|
2016-08-29 14:43:10 +00:00
|
|
|
patchelf --set-rpath "$out/lib:$(patchelf --print-rpath $out/bin/.communi-wrapped)" $out/bin/.communi-wrapped
|
|
|
|
'';
|
|
|
|
|
2016-01-10 11:01:48 +00: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 12:35:03 +00:00
|
|
|
platforms = platforms.all;
|
2016-01-10 11:01:48 +00:00
|
|
|
};
|
|
|
|
}
|