anchor.diff:    buildPhase = ''
       export SOURCE_DIR=$(pwd)
       export HOME=$TMPDIR
  -    export JBIN=$HOME/j${bits}/bin
       export JLIB=$SOURCE_DIR/jlibrary
  +
  +    export jbld=$HOME/bld
  +    export jplatform=${platform}
  +    export jmake=$SOURCE_DIR/make
  +    export jgit=$SOURCE_DIR
  +    export JBIN=$jbld/j${bits}/bin
       mkdir -p $JBIN
  +
  +    echo $OUT_DIR
   
       cd make
   
       patchShebangs .
  -    sed -i jvars.sh -e '
  -      s@~/gitdev/jsource@$SOURCE_DIR@;
  +    sed -i jvars.sh -e "
  +      s@~/git/jsource@$SOURCE_DIR@;
         s@~/jbld@$HOME@;
  -      s@linux@${platform}@;
  -      '
  +      "
   
       sed -i $JLIB/bin/profile.ijs -e "s@'/usr/share/j/.*'@'$out/share/j'@;"
   
  
positive.code: 
    meta = with stdenv.lib; {
      description = "J programming language, an ASCII-based APL successor";
      maintainers = with maintainers; [ raskin ];
      platforms = platforms.linux;
      license = licenses.gpl3Plus;
      homepage = http://jsoftware.com/;
    };
  
negative.code:       #define jplatform  "${platform}"
        #define jtype      "${jtype}"         // release,beta,...
        #define jlicense   "GPL3"
        #define jbuilder   "nixpkgs"  // website or email
        ' > ../jsrc/jversion.h
  
      ./build_jconsole.sh j${bits}
  