2014-12-06 07:32:56 +03:00
|
|
|
{ stdenv, fetchgit, autoreconfHook, which }:
|
|
|
|
|
2010-10-01 06:38:03 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2014-12-06 07:32:56 +03:00
|
|
|
name = "torsocks-${version}";
|
|
|
|
version = "2.0.0";
|
|
|
|
|
2013-10-08 17:57:48 +04:00
|
|
|
src = fetchgit {
|
2014-12-06 07:32:56 +03:00
|
|
|
url = meta.repositories.git;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "e3868ae8baadce1854cc9e604a5fcfa0433a15e4eb1223cc9da5b3c586db0048";
|
2010-10-01 06:38:03 +04:00
|
|
|
};
|
|
|
|
|
2013-10-08 17:57:48 +04:00
|
|
|
buildInputs = [ autoreconfHook ];
|
2010-10-01 06:38:03 +04:00
|
|
|
preConfigure = ''
|
|
|
|
export configureFlags="$configureFlags --libdir=$out/lib"
|
|
|
|
'';
|
|
|
|
|
2014-12-06 07:32:56 +03:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace src/bin/torsocks.in \
|
|
|
|
--replace which ${which}/bin/which
|
|
|
|
'';
|
|
|
|
|
2010-10-01 06:38:03 +04:00
|
|
|
meta = {
|
2014-12-06 07:32:56 +03:00
|
|
|
description = "Wrapper to safely torify applications";
|
|
|
|
homepage = http://code.google.com/p/torsocks/;
|
2013-10-08 17:57:48 +04:00
|
|
|
repositories.git = https://git.torproject.org/torsocks.git;
|
2014-12-06 07:32:56 +03:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ phreedom thoughtpolice ];
|
2010-10-01 06:38:03 +04:00
|
|
|
};
|
|
|
|
}
|