vacuum: port to mkDerivation, add zlib for hydra failure

This commit is contained in:
Graham Christensen 2016-03-23 09:17:22 -05:00
parent 6648ef5d25
commit aba56e7f59
1 changed files with 20 additions and 46 deletions

View File

@ -1,56 +1,30 @@
x@{builderDefsPackage { stdenv, lib, fetchurl
, qt4, openssl , qt4, openssl
, xproto, libX11, libXScrnSaver, scrnsaverproto , xproto, libX11, libXScrnSaver, scrnsaverproto
, xz , xz, zlib
, ...}: }:
builderDefsPackage stdenv.mkDerivation rec {
(a : name = "vacuum-im-${version}";
let version = "1.2.4";
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = map (n: builtins.getAttr n x) src = fetchurl {
(builtins.attrNames (builtins.removeAttrs x helperArgNames)); url = "https://googledrive.com/host/0B7A5K_290X8-d1hjQmJaSGZmTTA/vacuum-${version}.tar.gz";
sourceInfo = rec { sha256 = "10qxpfbbaagqcalhk0nagvi5irbbz5hk31w19lba8hxf6pfylrhf";
version="1.2.4";
baseName="vacuum-im";
name="${baseName}-${version}";
url="https://googledrive.com/host/0B7A5K_290X8-d1hjQmJaSGZmTTA/vacuum-1.2.4.tar.gz";
sha256="10qxpfbbaagqcalhk0nagvi5irbbz5hk31w19lba8hxf6pfylrhf";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.sha256;
}; };
inherit (sourceInfo) name version; buildInputs = [
inherit buildInputs; qt4 openssl xproto libX11 libXScrnSaver scrnsaverproto xz zlib
];
/* doConfigure should be removed if not needed */ configurePhase = ''
phaseNames = ["addInputs" "doQMake" "doMakeInstall"];
doQMake = a.fullDepEntry (''
qmake INSTALL_PREFIX=$out -recursive vacuum.pro qmake INSTALL_PREFIX=$out -recursive vacuum.pro
'') ["doUnpack" "addInputs"]; '';
meta = { meta = with stdenv.lib; {
description = "An XMPP client fully composed of plugins"; description = "An XMPP client fully composed of plugins";
maintainers = with a.lib.maintainers; maintainers = [ maintainers.raskin ];
[ platforms = platforms.linux;
raskin license = licenses.gpl3;
];
platforms = with a.lib.platforms;
linux;
license = with a.lib.licenses;
gpl3;
homepage = "http://code.google.com/p/vacuum-im/"; homepage = "http://code.google.com/p/vacuum-im/";
}; };
passthru = { }
updateInfo = {
downloadPage = "http://code.google.com/p/vacuum-im/downloads/list?can=2&q=&colspec=Filename";
};
};
}) x