mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
vm: deprecate phases
This commit is contained in:
parent
2f2c1a900b
commit
ae9337179b
@ -494,7 +494,9 @@ rec {
|
|||||||
tarball must contain an RPM specfile. */
|
tarball must contain an RPM specfile. */
|
||||||
|
|
||||||
buildRPM = attrs: runInLinuxImage (stdenv.mkDerivation ({
|
buildRPM = attrs: runInLinuxImage (stdenv.mkDerivation ({
|
||||||
phases = "prepareImagePhase sysInfoPhase buildPhase installPhase";
|
prePhases = [ prepareImagePhase sysInfoPhase ];
|
||||||
|
dontUnpack = true;
|
||||||
|
dontConfigure = true;
|
||||||
|
|
||||||
outDir = "rpms/${attrs.diskImage.name}";
|
outDir = "rpms/${attrs.diskImage.name}";
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
with import ../../.. {};
|
with import ../../.. { };
|
||||||
with vmTools;
|
with vmTools;
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -30,7 +30,7 @@ with vmTools;
|
|||||||
src = patchelf.src;
|
src = patchelf.src;
|
||||||
diskImage = diskImages.ubuntu1204i386;
|
diskImage = diskImages.ubuntu1204i386;
|
||||||
memSize = 512;
|
memSize = 512;
|
||||||
phases = "sysInfoPhase unpackPhase patchPhase configurePhase buildPhase checkPhase installPhase fixupPhase distPhase";
|
prePhases = [ sysInfoPhase ];
|
||||||
sysInfoPhase = ''
|
sysInfoPhase = ''
|
||||||
dpkg-query --list
|
dpkg-query --list
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user