anchor.diff:  
     inherit (stdenv) cc;
   
  -  isCross = stdenv.buildPlatform != stdenv.hostPlatform;
  +  isCross = stdenv.targetPlatform != stdenv.hostPlatform;
   
     meta = with lib; {
       homepage = http://mesonbuild.com;
  
positive.code: { lib, python3Packages, stdenv, writeTextDir, substituteAll }:
  
  python3Packages.buildPythonApplication rec {
    version = "0.46.1";
  
negative.code: 
    crossFile = writeTextDir "cross-file.conf" ''
      [binaries]
      c = '${targetPackages.stdenv.cc.targetPrefix}cc'
      cpp = '${targetPackages.stdenv.cc.targetPrefix}c++'
      ar = '${targetPackages.stdenv.cc.bintools.targetPrefix}ar'
      strip = '${targetPackages.stdenv.cc.bintools.targetPrefix}strip'
      pkgconfig = 'pkg-config'
  
      [properties]
      needs_exe_wrapper = true
  
      [host_machine]
      system = '${targetPackages.stdenv.targetPlatform.parsed.kernel.name}'
      cpu_family = '${targetPackages.stdenv.targetPlatform.parsed.cpu.family}'
      cpu = '${targetPackages.stdenv.targetPlatform.parsed.cpu.name}'
      endian = ${if targetPackages.stdenv.targetPlatform.isLittleEndian then "'little'" else "'big'"}
    '';
  
    # 0.45 update enabled tests but they are failing
  