* Optionally install extra RPMs before doing the build.

svn path=/nixpkgs/trunk/; revision=11500
This commit is contained in:
Eelco Dolstra 2008-04-09 06:37:59 +00:00
parent ff87b2ffa9
commit 6b852ab38f

View File

@ -366,10 +366,16 @@ rec {
tarball must contain an RPM specfile. */
buildRPM = attrs: runInLinuxImage (stdenv.mkDerivation ({
phases = "sysInfoPhase buildPhase installPhase";
phases = "prepareImagePhase sysInfoPhase buildPhase installPhase";
outDir = "rpms/${attrs.diskImage.name}";
prepareImagePhase = ''
for rpm in $extraRPMs; do
rpm -iv $rpm
done
'';
sysInfoPhase = ''
header "base RPMs"
rpm -qa --qf "%{Name}-%{Version}-%{Release} (%{Arch}; %{Distribution}; %{Vendor})\n"