anchor.diff:        else throw ("Architecture: "+stdenv.system+" not supported for VirtualBox guest additions")
       }
   
  -    
  -    # Build kernel modules    
  -    cd src        
  +
  +    # Build kernel modules
  +    cd src
   
       for i in *
       do
  -	cd $i
  -	find . -type f | xargs sed 's/depmod -a/true/' -i
  -	make
  -	cd ..
  +        cd $i
  +        find . -type f | xargs sed 's/depmod -a/true/' -i
  +        make
  +        cd ..
       done
   
       cd ..
  -    
  +
       # Change the interpreter for various binaries
       for i in sbin/VBoxService bin/{VBoxClient,VBoxControl}
       do
           ${if stdenv.system == "i686-linux" then ''
             patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux.so.2 $i
  -	''
  -	else if stdenv.system == "x86_64-linux" then ''
  -	  patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $i
  -	''
  -	else throw ("Architecture: "+stdenv.system+" not supported for VirtualBox guest additions")
  -	}
  +        ''
  +        else if stdenv.system == "x86_64-linux" then ''
  +          patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 $i
  +        ''
  +        else throw ("Architecture: "+stdenv.system+" not supported for VirtualBox guest additions")
  +        }
       done
   
       # Change rpath for various binaries and libraries
  
positive.code:     cp -v lib/VBoxOGL*.so $out/lib
      mkdir -p $out/lib/dri
      ln -s $out/lib/VBoxOGL.so $out/lib/dri/vboxvideo_dri.so
      
      # Install desktop file
      mkdir -p $out/share/autostart
      cp -v share/VBoxGuestAdditions/vboxclient.desktop $out/share/autostart
  
negative.code:     '';
      license = "GPL";
      maintainers = [ lib.maintainers.sander ];
      platforms = lib.platforms.linux;
    };
  }
  