anchor.diff:  { stdenv, fetchgit, pkgconfig, libuuid, openssl }:
   
  -let
  -  arch = if stdenv.system == "x86_64-linux" then "x86_64"
  -    else if stdenv.system == "i686-linux" then "x86"
  -    else throw "vboot_reference for: ${stdenv.system} not supported!";
  -
  +stdenv.mkDerivation rec {
     version = "20130507";
     checkout = "25/50225/2";
  -in stdenv.mkDerivation {
  +
     name = "vboot_reference-${version}";
   
     src = fetchgit {
  
positive.code:                  then []
                   else [ (stdenv.lib.overrideDerivation libuuid
                            (args: { configureFlags = args.configureFlags + " --enable-static"; })) ]);
  
    buildPhase = ''
      make ARCH=${arch} `pwd`/build/cgpt/cgpt
  
negative.code:     cp build/utility/vbutil_keyblock $out/bin
      cp build/utility/vbutil_firmware $out/bin
    '';
  
    meta = {
      description = "Chrome OS partitioning and kernel signing tools.";
      license = stdenv.lib.licenses.bsd3;
      platforms = stdenv.lib.platforms.linux;
    };
  }
  