anchor.diff:          sha256 = "0126x48pjiy2zm4l8jzhk70w24hviaz560ffp4lb9x0ar615bc9q";
         };
   
  -      nativeBuildInputs = [ zip ];
  -
  -      buildCommand = ''
  +      nativeBuildInputs = [ unzip zip ];
  +
  +      unpackPhase = ''
           cp -dR --no-preserve=mode "$src" src
           cd src
  -
  +      '';
  +
  +      buildPhase = ''
           make package
  -        install -m 444 -Dt $out pkg"/"*.xpi
  -      '';
  -    };
  +      '';
  +
  +      installPhase = ''
  +        mkdir $out
  +        unzip -d "$out/$extid" "pkg/tor-launcher-$version.xpi"
  +      '';
  +
  +      meta = {
  +        homepage = https://gitweb.torproject.org/tor-launcher.git/;
  +      };
  +    };
  +  };
  +
  +  extensionsEnv = symlinkJoin {
  +    name = "tor-browser-extensions";
  +    paths = with firefoxExtensions; [ https-everywhere noscript torbutton tor-launcher ];
     };
   in
   stdenv.mkDerivation rec {
  
positive.code:       };
      };
  
      noscript = fetchurl {
        url = https://secure.informaction.com/download/releases/noscript-5.0.10.xpi;
        sha256 = "18k5karbaj5mhd9cyjbqgik6044bw88rjalkh6anjanxbn503j6g";
      };
  
      torbutton = stdenv.mkDerivation rec {
        name = "torbutton-${version}";
        version = "1.9.8.1";
  
        src = fetchgit {
          url = "https://git.torproject.org/torbutton.git";
  
negative.code: , lib
  , fetchurl
  , fetchgit
  , symlinkJoin
  
  , tor
  , tor-browser-unwrapped
  
  # Extensions, common
  , unzip
  , zip
  
  # HTTPS Everywhere
  