* Optionally install extra RPMs before doing the build.
svn path=/nixpkgs/trunk/; revision=11500
This commit is contained in:
parent
ff87b2ffa9
commit
6b852ab38f
@ -366,9 +366,15 @@ 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"
|
||||
|
Loading…
Reference in New Issue
Block a user