anchor.diff:        #define jplatform  "${platform}"
         #define jtype      "${jtype}"         // release,beta,...
         #define jlicense   "GPL3"
  -      #define jbuilder   "unknown"  // website or email
  +      #define jbuilder   "nixpkgs"  // website or email
         ' > ../jsrc/jversion.h
   
       ./build_jconsole.sh j${bits}
  
positive.code: { stdenv, fetchFromGitHub, readline, libedit }:
  
  stdenv.mkDerivation rec {
    name = "j-${version}";
    version = "808";
    jtype = "release";
    src = fetchFromGitHub {
      owner = "jsoftware";
      repo = "jsource";
      rev = "j${version}-${jtype}";
      sha256 = "1sshm04p3yznlhfp6vyc7g8qxw95y67vhnh92cmz3lfy69n2q6bf";
    };
  
    buildInputs = [ readline libedit ];
    bits = if stdenv.is64bit then "64" else "32";
    platform =
      /*if stdenv.isRaspberryPi then "raspberry" else*/
      if stdenv.isLinux then "linux" else
      if stdenv.isDarwin then "darwin" else
      "unknown";
  
negative.code: 
      # Now run the real tests
      cd $SOURCE_DIR/test
      for f in *.ijs
      do
        echo $f
        $JBIN/jconsole < $f > /dev/null || echo FAIL && echo PASS
      done
    '';
  
    installPhase = ''
      mkdir -p "$out"
      cp -r $JBIN "$out/bin"
      rm $out/bin/*.txt # Remove logs from the bin folder
  
      mkdir -p "$out/share/j"
      cp -r $JLIB/{addons,system} "$out/share/j"
  