vm: deprecate phases
This commit is contained in:
parent
2f2c1a900b
commit
ae9337179b
|
@ -494,7 +494,9 @@ rec {
|
|||
tarball must contain an RPM specfile. */
|
||||
|
||||
buildRPM = attrs: runInLinuxImage (stdenv.mkDerivation ({
|
||||
phases = "prepareImagePhase sysInfoPhase buildPhase installPhase";
|
||||
prePhases = [ prepareImagePhase sysInfoPhase ];
|
||||
dontUnpack = true;
|
||||
dontConfigure = true;
|
||||
|
||||
outDir = "rpms/${attrs.diskImage.name}";
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
with import ../../.. {};
|
||||
with import ../../.. { };
|
||||
with vmTools;
|
||||
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ with vmTools;
|
|||
src = patchelf.src;
|
||||
diskImage = diskImages.ubuntu1204i386;
|
||||
memSize = 512;
|
||||
phases = "sysInfoPhase unpackPhase patchPhase configurePhase buildPhase checkPhase installPhase fixupPhase distPhase";
|
||||
prePhases = [ sysInfoPhase ];
|
||||
sysInfoPhase = ''
|
||||
dpkg-query --list
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue