2010-09-20 10:40:30 +02:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, qt4, openssl
|
2011-03-18 09:06:36 +01:00
|
|
|
, xproto, libX11, libXScrnSaver, scrnsaverproto
|
2011-09-01 08:15:12 +02:00
|
|
|
, xz
|
2010-09-20 10:40:30 +02:00
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
2011-09-01 08:15:12 +02:00
|
|
|
version="1.1.1";
|
|
|
|
baseName="vacuum-im";
|
2010-09-20 10:40:30 +02:00
|
|
|
name="${baseName}-${version}";
|
2011-09-01 08:15:12 +02:00
|
|
|
url="http://vacuum-im.googlecode.com/files/${name}.tar.xz";
|
|
|
|
hash="b4b3472bf83173f6be1bbe69520bf6cab97e24cf9fd8a7b60e4ffdc1cb43b1dc";
|
2010-09-20 10:40:30 +02:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
2011-09-01 08:15:12 +02:00
|
|
|
phaseNames = ["addInputs" "preBuild" "doQMake" "doMakeInstall"];
|
2010-10-13 01:15:25 +02:00
|
|
|
|
|
|
|
preBuild = a.fullDepEntry (''
|
|
|
|
echo "Fixing a name collision with a function added in Qt 4.7"
|
|
|
|
sed -re 's/qHash[(][a-z ]*QUrl/vacuum_obsolete_&/' -i src/plugins/dataforms/dataforms.cpp
|
|
|
|
'') ["minInit" "doUnpack"];
|
2010-09-20 10:40:30 +02:00
|
|
|
|
|
|
|
doQMake = a.fullDepEntry (''
|
|
|
|
qmake INSTALL_PREFIX=$out -recursive vacuum.pro
|
|
|
|
'') ["doUnpack" "addInputs"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An XMPP client fully composed of plugins";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://code.google.com/p/vacuum-im/downloads/list?can=2&q=&colspec=Filename";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|