anchor.diff:          echo "pref(\"extensions.torlauncher.tordatadir_path\", \"\$HOME/Data/Tor/\");" >> \
             ~/Data/Browser/profile.default/preferences/extension-overrides.js
         fi
  -      export LD_LIBRARY_PATH=${torEnv}/lib:$out/share/tor-browser/Tor
  +      export LD_LIBRARY_PATH=${ldLibraryPath}:$out/share/tor-browser/Tor
         $out/share/tor-browser/Browser/firefox -no-remote -profile ~/Data/Browser/profile.default "$@"
       EOF
       chmod +x $out/bin/tor-browser
  
positive.code:     # Just do a simple test if all libraries get loaded by running help on
      # firefox and tor
      echo "Checking firefox..."
      LD_LIBRARY_PATH=${torEnv}/lib Browser/firefox --help 1> /dev/null
      echo "Checking tor..."
      LD_LIBRARY_PATH=${torEnv}/lib:Tor Tor/tor --help 1> /dev/null
    '';
  
negative.code:     description = "Tor Browser Bundle for GNU/Linux, everything you need to safely browse the Internet";
      homepage = https://www.torproject.org/;
      platforms = ["i686-linux" "x86_64-linux"];
      maintainers = [ maintainers.offline maintainers.matejc ];
    };
  }
  