anchor.diff:          
           TARGETS+=( "nixbuild" )
           target_nixbuild() {
  -        ${targetVarsText}
  -        }
  +        ${targetVarsText}}
       '';
       
  -    mainFile = pkgs.writeText "aprinter-main.cpp" mainText;
  +    mainFile = writeText "aprinter-main.cpp" mainText;
       
   in
   
  
positive.code: { stdenv, pkgs, gccAvrAtmel, gcc-arm-embedded, asf, teensyCores, buildName, boardName, mainText }:
  
  let
      boardDefinitions = import ./boards.nix;
  
negative.code:     
      needTeensyCores = board.platform == "teensy";
      
      targetFile = writeText "aprinter-nixbuild.sh" ''
          ${stdenv.lib.optionalString isAvr "CUSTOM_AVR_GCC=${gccAvrAtmel}/bin/avr-"}
          ${stdenv.lib.optionalString isArm "CUSTOM_ARM_GCC=${gcc-arm-embedded}/bin/arm-none-eabi-"}
          ${stdenv.lib.optionalString needAsf "CUSTOM_ASF=${asf}"}
  