3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/irc/communi/default.nix

50 lines
1.5 KiB
Nix
Raw Normal View History

{ fetchgit, libcommuni, makeQtWrapper, qtbase, qmakeHook, stdenv }:
2016-01-10 11:01:48 +00:00
stdenv.mkDerivation rec {
name = "communi-${version}";
2016-08-29 15:43:10 +01: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 15:43:10 +01:00
rev = "d516b01b1382a805de65f21f3475e0a8e64a97b5";
sha256 = "1pn7mr7ch1ck5qv9zdn3ril40c9kk6l04475564rpzf11jly76an";
fetchSubmodules = true;
2016-01-10 11:01:48 +00:00
};
nativeBuildInputs = [ makeQtWrapper qmakeHook ];
2016-03-08 12:35:03 +00:00
buildInputs = [ libcommuni qtbase ];
2016-01-10 11:01:48 +00:00
enableParallelBuilding = true;
2016-01-10 11:01:48 +00:00
preConfigure = ''
2016-01-10 11:01:48 +00:00
export QMAKEFEATURES=${libcommuni}/features
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-03-08 12:35:03 +00:00
'';
postInstall = ''
wrapQtProgram "$out/bin/communi"
substituteInPlace "$out/share/applications/communi.desktop" \
--replace "/usr/bin" "$out/bin"
2016-01-10 11:01:48 +00:00
'';
2016-08-29 15:43:10 +01:00
postFixup = ''
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
};
}