Merge pull request #45839 from oxij/pkgs/tor-browser-docstrings

treewide: write better docstrings for tor-browser things

authored by Jörg Thalheim and committed by GitHub 359227da 86bd0411

+29 -9
+5 -1
pkgs/applications/networking/browsers/tor-browser-bundle-bin/default.nix
··· 51 51 52 52 # Extra preferences 53 53 , extraPrefs ? "" 54 + 55 + # For meta 56 + , tor-browser-bundle 54 57 }: 55 58 56 59 with stdenv.lib; ··· 397 400 ''; 398 401 399 402 meta = with stdenv.lib; { 400 - description = "Tor Browser Bundle"; 403 + description = "Tor Browser Bundle built by torproject.org"; 404 + longDescription = tor-browser-bundle.meta.longDescription; 401 405 homepage = https://www.torproject.org/; 402 406 platforms = attrNames srcs; 403 407 maintainers = with maintainers; [ offline matejc doublec thoughtpolice joachifm ];
+23 -1
pkgs/applications/networking/browsers/tor-browser-bundle/default.nix
··· 339 339 340 340 passthru.execdir = "/bin"; 341 341 meta = with stdenv.lib; { 342 - description = "An unofficial version of the tor browser bundle, built from source"; 342 + description = "An unofficial version of the Tor Browser Bundle, built from source"; 343 + longDescription = '' 344 + Tor Browser Bundle is a bundle of the Tor daemon, Tor Browser (heavily patched version of 345 + Firefox), several essential extensions for Tor Browser, and some tools that glue those 346 + together with a convenient UI. 347 + 348 + `tor-browser-bundle-bin` package is the official version built by torproject.org patched with 349 + `patchelf` to work under nix and with bundled scripts adapted to the read-only nature of 350 + the `/nix/store`. 351 + 352 + `tor-browser-bundle` package is the version built completely from source. It reuses the `tor` 353 + package for the tor daemon, `firefoxPackages.tor-browser` package for the tor-browser, and 354 + builds all the extensions from source. 355 + 356 + Note that `tor-browser-bundle` package is not only built from source, but also bundles Tor 357 + Browser differently from the official `tor-browser-bundle-bin` implementation. The official 358 + Tor Browser is not a normal UNIX program and is heavily patched for its use in the Tor Browser 359 + Bundle (which `tor-browser-bundle-bin` package then has to work around for the read-only 360 + /nix/store). Meanwhile, `firefoxPackages.tor-browser` reverts all those patches, allowing 361 + `firefoxPackages.tor-browser` to be used independently of the bundle, and then implements what 362 + `tor-browser-bundle` needs for the bundling using a much simpler patch. See the 363 + longDescription and expression of the `firefoxPackages.tor-browser` package for more info. 364 + ''; 343 365 homepage = https://torproject.org/; 344 366 license = licenses.free; 345 367 platforms = [ "x86_64-linux" ];
+1
pkgs/top-level/aliases.nix
··· 278 278 tex-gyre-schola-math = tex-gyre-math.schola; # added 2018-04-03 279 279 tex-gyre-termes-math = tex-gyre-math.termes; # added 2018-04-03 280 280 tftp_hpa = tftp-hpa; # added 2015-04-03 281 + torbrowser = tor-browser-bundle-bin; # added 2017-04-05 281 282 trang = jing-trang; # added 2018-04-25 282 283 transmission_gtk = transmission-gtk; # added 2018-01-06 283 284 transmission_remote_gtk = transmission-remote-gtk; # added 2018-01-06
-7
pkgs/top-level/all-packages.nix
··· 5564 5564 5565 5565 tor-arm = callPackage ../tools/security/tor/tor-arm.nix { }; 5566 5566 5567 - # added 2017-04-05 5568 - torbrowser = /* builtins.trace '' 5569 - WARNING: torbrowser package was renamed to tor-browser-bundle-bin. 5570 - 5571 - Also, consider using nix-built tor-browser-unwrapped package instead. Read its longDescription. 5572 - '' */ tor-browser-bundle-bin; 5573 - 5574 5567 tor-browser-bundle-bin = callPackage ../applications/networking/browsers/tor-browser-bundle-bin { }; 5575 5568 5576 5569 tor-browser-bundle = callPackage ../applications/networking/browsers/tor-browser-bundle {