anchor.diff:       tarball must contain an RPM specfile. */
   
     buildRPM = attrs: runInLinuxImage (stdenv.mkDerivation ({
  -    prePhases = [ prepareImagePhase sysInfoPhase ];
  +    prePhases = [ pkgs.prepareImagePhase pkgs.sysInfoPhase ];
       dontUnpack = true;
       dontConfigure = true;
   
  
positive.code: 
  
    extractMTDfs = {file, fs ? null} :
      with pkgs; runInLinuxVM (
      stdenv.mkDerivation {
        name = "extract-file-mtd";
        buildInputs = [ util-linux mtdutils ];
        buildCommand = ''
          ln -s ${kernel}/lib /lib
          ${kmod}/bin/modprobe mtd
  
negative.code:       buildCommand = ''
          ${createRootFS}
  
          PATH=$PATH:${lib.makeBinPath [ pkgs.dpkg pkgs.glibc pkgs.xz ]}
  
          # Unpack the .debs.  We do this to prevent pre-install scripts
          # (which have lots of circular dependencies) from barfing.
  