vm: deprecate phases

This commit is contained in:
Felix Buehler 2021-08-20 23:31:26 +02:00
parent 2f2c1a900b
commit ae9337179b
2 changed files with 5 additions and 3 deletions

View File

@ -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}";

View File

@ -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
'';