updating tor to 0.2.6.10
I checked the tarball signature. I fixed the optimised build (broken since 2013) and I added seccomp.
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
{ stdenv, fetchurl, libevent, openssl, zlib, torsocks }:
|
{ stdenv, fetchurl, libevent, openssl, zlib, torsocks, libseccomp }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "tor-0.2.6.9";
|
name = "tor-0.2.6.10";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://archive.torproject.org/tor-package-archive/${name}.tar.gz";
|
url = "https://archive.torproject.org/tor-package-archive/${name}.tar.gz";
|
||||||
sha256 = "171gjhapymfzql3bbx5qndgkamcfdl6lincrqlr7i3d9i6njjv2a";
|
sha256 = "0542c0efe43b86619337862fa7eb02c7a74cb23a79d587090628a5f0f1224b8d";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Note: torsocks is specified as a dependency, as the distributed
|
# Note: torsocks is specified as a dependency, as the distributed
|
||||||
# 'torify' wrapper attempts to use it; although there is no
|
# 'torify' wrapper attempts to use it; although there is no
|
||||||
# ./configure time check for any of this.
|
# ./configure time check for any of this.
|
||||||
buildInputs = [ libevent openssl zlib torsocks ];
|
buildInputs = [ libevent openssl zlib torsocks libseccomp ];
|
||||||
|
|
||||||
CFLAGS = stdenv.lib.optionalString stdenv.cc.isGNU "-lgcc_s";
|
NIX_CFLAGS_LINK = stdenv.lib.optionalString stdenv.cc.isGNU "-lgcc_s";
|
||||||
|
|
||||||
# Patch 'torify' to point directly to torsocks.
|
# Patch 'torify' to point directly to torsocks.
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user