2017-09-27 06:10:42 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchgit
|
|
|
|
, fetchurl
|
|
|
|
|
|
|
|
# common
|
|
|
|
, zip
|
|
|
|
|
|
|
|
# HTTPS Everywhere
|
|
|
|
, git
|
|
|
|
, libxml2 # xmllint
|
|
|
|
, python27
|
|
|
|
, python27Packages
|
|
|
|
, rsync
|
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
|
|
|
https-everywhere = stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "https-everywhere";
|
2017-10-15 23:10:02 +01:00
|
|
|
version = "2017.10.4";
|
2017-09-27 06:10:42 +01:00
|
|
|
|
|
|
|
extid = "https-everywhere-eff@eff.org";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.torproject.org/https-everywhere.git";
|
|
|
|
rev = "refs/tags/${version}";
|
2017-10-15 23:10:02 +01:00
|
|
|
sha256 = "1g7971xygnhagnb25xjdf6mli6091ai9igx42d0ww88g8i0cqfzj";
|
2017-09-29 23:26:12 +01:00
|
|
|
fetchSubmodules = true; # for translations, TODO: remove
|
2017-09-27 06:10:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
git
|
|
|
|
libxml2 # xmllint
|
|
|
|
python27
|
|
|
|
python27Packages.lxml
|
|
|
|
rsync
|
|
|
|
zip
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
$shell ./makexpi.sh ${version} --no-recurse
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m 444 -D pkg/https-everywhere-$version-eff.xpi "$out/$extid.xpi"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
noscript = stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "noscript";
|
2017-10-15 23:10:18 +01:00
|
|
|
version = "5.1.2";
|
2017-09-27 06:10:42 +01:00
|
|
|
|
|
|
|
extid = "{73a6fe31-595d-460b-a920-fcc0f8843232}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://secure.informaction.com/download/releases/noscript-${version}.xpi";
|
2017-10-15 23:10:18 +01:00
|
|
|
sha256 = "1fzspdiwhjabwz1yxb3gzj7giz9jbc1xxm65i93rvhzcp537cs42";
|
2017-09-27 06:10:42 +01:00
|
|
|
};
|
|
|
|
|
2019-06-19 16:45:34 +01:00
|
|
|
dontUnpack = true;
|
2017-09-27 06:10:42 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m 444 -D $src "$out/$extid.xpi"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
torbutton = stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "torbutton";
|
2017-09-27 06:10:42 +01:00
|
|
|
version = "1.9.8.1";
|
|
|
|
|
|
|
|
extid = "torbutton@torproject.org";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.torproject.org/torbutton.git";
|
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "1amp0c9ky0a7fsa0bcbi6n6ginw7s2g3an4rj7kvc1lxmrcsm65l";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ zip ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
$shell ./makexpi.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m 444 -D pkg/torbutton-$version.xpi "$out/$extid.xpi"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
tor-launcher = stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "tor-launcher";
|
2017-10-15 23:09:30 +01:00
|
|
|
version = "0.2.13";
|
2017-09-27 06:10:42 +01:00
|
|
|
|
|
|
|
extid = "tor-launcher@torproject.org";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.torproject.org/tor-launcher.git";
|
|
|
|
rev = "refs/tags/${version}";
|
2017-10-15 23:09:30 +01:00
|
|
|
sha256 = "1f98v88y2clwvjiw77kxqc9cacp5h0489a540nc2wmsx7vnskrq0";
|
2017-09-27 06:10:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ zip ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make package
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m 444 -D pkg/tor-launcher-$version.xpi "$out/$extid.xpi"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|