git.iko.soy/typeable/nixpkgs
on master help sign in
nixpkgs: torsocks 1.3 -> 2.0.0

Additionally, this fixes 'torsocks' using the 'which' executable as a dependency. Signed-off-by: Austin Seipp <aseipp@pobox.com>

commitd92d0eca9230b5154bc690a90c1ddc7508fb0ee7 authorAustin Seipp <aseipp@pobox.com> dateFri 5 Dec 2014, 22:32 (12 years ago) parent1ef6470
1 file changed+18−12
pkgs/tools/security/tor/torsocks.nix+18−12
pkgs/tools/security/tor/torsocks.nix+18−12
@@ -1,13 +1,13 @@
1−{ stdenv, fetchgit, autoreconfHook }:
1+{ stdenv, fetchgit, autoreconfHook, which }:
2+
23stdenv.mkDerivation rec {
3− pname = "torsocks";
4− name = "${pname}-${version}";
5− version = "1.3";
6−
4+ name = "torsocks-${version}";
5+ version = "2.0.0";
6+
77 src = fetchgit {
8− url = meta.repositories.git;
9− rev = "refs/tags/${version}";
10− sha256 = "1cqplb36fkdb81kzf48xlxclf64wnp8r56x1gjayax1h6x4aal1w";
8+ url = meta.repositories.git;
9+ rev = "refs/tags/v${version}";
10+ sha256 = "e3868ae8baadce1854cc9e604a5fcfa0433a15e4eb1223cc9da5b3c586db0048";
1111 };
1212
1313 buildInputs = [ autoreconfHook ];
@@ -15,11 +15,17 @@ stdenv.mkDerivation rec {
1515 export configureFlags="$configureFlags --libdir=$out/lib"
1616 '';
1717
18+ patchPhase = ''
19+ substituteInPlace src/bin/torsocks.in \
20+ --replace which ${which}/bin/which
21+ '';
22+
1823 meta = {
19− description = "use socks-friendly applications with Tor";
20− homepage = http://code.google.com/p/torsocks/;
24+ description = "Wrapper to safely torify applications";
25+ homepage = http://code.google.com/p/torsocks/;
2126 repositories.git = https://git.torproject.org/torsocks.git;
22− license = stdenv.lib.licenses.gpl2;
23− maintainers = [ stdenv.lib.maintainers.phreedom ];
27+ license = stdenv.lib.licenses.gpl2;
28+ platforms = stdenv.lib.platforms.unix;
29+ maintainers = with stdenv.lib.maintainers; [ phreedom thoughtpolice ];
2430 };
2531}