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