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