anchor.diff:    '';
   
     checkInputs = [ file ];
  -  doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
  +  inherit doCheck;
     checkPhase = ''
       runHook preCheck
       # Patch shebangs for playTests
  
positive.code: , file
  , legacySupport ? false
  , static ? stdenv.hostPlatform.isStatic
  }:
  
  stdenv.mkDerivation rec {
  
negative.code:     (name: value: "-DZSTD_${name}:BOOL=${if value then "ON" else "OFF"}") {
        BUILD_SHARED = !static;
        BUILD_STATIC = static;
        BUILD_CONTRIB = buildContrib;
        PROGRAMS_LINK_SHARED = !static;
        LEGACY_SUPPORT = legacySupport;
        BUILD_TESTS = doCheck;
  