git.iko.soy/typeable/nixpkgs
on master help sign in
nixpkgs: torsocks 1.3 -> 2.0.0
d92d0ecAustin Seipp
pkgs/tools/security/tor/torsocks.nix+18−12
@@ -1,13 +1,13 @@
1−{ stdenv, fetchgit, autoreconfHook }:
1+{ stdenv, fetchgit, autoreconfHook, which }:
2+
2stdenv.mkDerivation rec {
3stdenv.mkDerivation rec {
3− pname = "torsocks";
4+ name = "torsocks-${version}";
4− name = "${pname}-${version}";
5− version = "1.3";
5+ version = "2.0.0";
6−
6+
7 src = fetchgit {
7 src = fetchgit {
8− url = meta.repositories.git;
8+ url = meta.repositories.git;
9− rev = "refs/tags/${version}";
9+ rev = "refs/tags/v${version}";
10− sha256 = "1cqplb36fkdb81kzf48xlxclf64wnp8r56x1gjayax1h6x4aal1w";
10+ sha256 = "e3868ae8baadce1854cc9e604a5fcfa0433a15e4eb1223cc9da5b3c586db0048";
11 };
11 };
12
12
13 buildInputs = [ autoreconfHook ];
13 buildInputs = [ autoreconfHook ];
@@ -15,11 +15,17 @@ stdenv.mkDerivation rec {
15 export configureFlags="$configureFlags --libdir=$out/lib"
15 export configureFlags="$configureFlags --libdir=$out/lib"
16 '';
16 '';
17
17
18+ patchPhase = ''
19+ substituteInPlace src/bin/torsocks.in \
20+ --replace which ${which}/bin/which
21+ '';
22+
18 meta = {
23 meta = {
19− description = "use socks-friendly applications with Tor";
24+ description = "Wrapper to safely torify applications";
20− homepage = http://code.google.com/p/torsocks/;
25+ homepage = http://code.google.com/p/torsocks/;
21 repositories.git = https://git.torproject.org/torsocks.git;
26 repositories.git = https://git.torproject.org/torsocks.git;
22− license = stdenv.lib.licenses.gpl2;
27+ license = stdenv.lib.licenses.gpl2;
23− maintainers = [ stdenv.lib.maintainers.phreedom ];
28+ platforms = stdenv.lib.platforms.unix;
29+ maintainers = with stdenv.lib.maintainers; [ phreedom thoughtpolice ];
24 };
30 };
25}
31}