vacuum: use mkDerivation and turn off format hardening

This commit is contained in:
Robin Gloster 2016-02-22 08:57:20 +00:00
parent 9b4c99edc6
commit 95325aa96f

View File

@ -1,56 +1,31 @@
x@{builderDefsPackage { stdenv, fetchurl, qt4, openssl, xproto, libX11
, qt4, openssl , libXScrnSaver, scrnsaverproto, xz
, xproto, libX11, libXScrnSaver, scrnsaverproto }:
, xz
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
[];
buildInputs = map (n: builtins.getAttr n x) stdenv.mkDerivation rec {
(builtins.attrNames (builtins.removeAttrs x helperArgNames)); name="${baseName}-${version}";
sourceInfo = rec { baseName = "vacuum-im";
version="1.2.4"; version = "1.2.4";
baseName="vacuum-im";
name="${baseName}-${version}"; src = fetchurl {
url="https://googledrive.com/host/0B7A5K_290X8-d1hjQmJaSGZmTTA/vacuum-1.2.4.tar.gz"; url="https://googledrive.com/host/0B7A5K_290X8-d1hjQmJaSGZmTTA/vacuum-1.2.4.tar.gz";
sha256="10qxpfbbaagqcalhk0nagvi5irbbz5hk31w19lba8hxf6pfylrhf"; sha256="10qxpfbbaagqcalhk0nagvi5irbbz5hk31w19lba8hxf6pfylrhf";
}; };
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.sha256;
};
inherit (sourceInfo) name version; configurePhase = "qmake INSTALL_PREFIX=$out -recursive vacuum.pro";
inherit buildInputs;
/* doConfigure should be removed if not needed */ hardening_format = false;
phaseNames = ["addInputs" "doQMake" "doMakeInstall"];
doQMake = a.fullDepEntry ('' buildInputs = [
qmake INSTALL_PREFIX=$out -recursive vacuum.pro qt4 openssl xproto libX11 libXScrnSaver scrnsaverproto xz
'') ["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 = with maintainers; [ raskin ];
[ platforms = with platforms; linux;
raskin license = with 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