at v192 34 lines 896 B view raw
1{ stdenv, fetchgit, zip }: 2stdenv.mkDerivation rec { 3 4 name = "torbutton-${version}.xpi"; 5 version = "1.6.1"; 6 7 src = fetchgit { 8 url = https://git.torproject.org/torbutton.git; 9 rev = "refs/tags/${version}"; 10 sha256 = "0ypzrl8nhckrgh45rcwsjds1jnzz3w5nr09b926a4h3a5njammlv"; 11 }; 12 13 buildInputs = [ zip ]; 14 15 buildPhase = '' 16 mkdir pkg 17 ./makexpi.sh 18 ''; 19 20 installPhase = "cat pkg/*.xpi > $out"; 21 22 meta = with stdenv.lib; { 23 homepage = https://www.torproject.org/torbutton/; 24 description = "Part of the Tor Browser Bundle"; 25 longDescription = '' 26 The component in Tor Browser Bundle that takes care of application-level 27 security and privacy concerns in Firefox. To keep you safe, Torbutton 28 disables many types of active content. 29 ''; 30 license = licenses.mit; 31 maintainers = [ maintainers.phreedom ]; 32 platforms = platforms.linux; 33 }; 34}