anchor.diff: -{ stdenv, fetchFromGitHub, fetchpatch }:
  +{ stdenv, fetchFromGitHub, fetchpatch, cmake }:
   
   stdenv.mkDerivation rec {
     name = "zopfli-${version}";
  
positive.code:       This library can only compress, not decompress. Existing zlib or
        deflate libraries can decompress the data.
      '';
      platforms = platforms.linux;
      license = licenses.asl20;
      maintainers = with maintainers; [ bobvanderlinden nckx ];
    };
  
negative.code:       name = "zopfli-bug-and-typo-fixes.patch";
        url = "https://github.com/google/zopfli/commit/7190e08ecac2446c7c9157cfbdb7157b18912a92.patch";
      })
      (fetchpatch {
        name = "zopfli-cmake.patch";
        url = "https://github.com/google/zopfli/commit/7554e4d34e7000b0595aa606e7d72357cf46ba86.patch";
        sha256 = "1pvfhir2083v1l042a4dy5byqdmad7sxnd4jrprl2hzzb2avxbbn";
      })
    ];
  
    nativeBuildInputs = [ cmake ];
  
    cmakeFlags = [ "-DBUILD_SHARED_LIBS=ON" "-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON" ];
  
    installPhase = ''
      install -D -t $out/bin zopfli*
      install -d $out/lib
      cp -d libzopfli* $out/lib
      install -Dm444 -t $out/share/doc/zopfli ../README*
    '';
  
    enableParallelBuilding = true;
  
    meta = with stdenv.lib; {
      inherit (src.meta) homepage;
  