nixpkgs/pkgs/tools/security/tor/torsocks.nix

29 lines
831 B
Nix
Raw Normal View History

{ stdenv, fetchgit, autoreconfHook, which }:
stdenv.mkDerivation rec {
name = "torsocks-${version}";
2016-12-04 17:16:18 +00:00
version = "2.2.0";
2013-10-08 13:57:48 +00:00
src = fetchgit {
url = meta.repositories.git;
rev = "refs/tags/v${version}";
2016-12-04 17:16:18 +00:00
sha256 = "1xwkmfaxhhnbmvp37agnby1n53hznwhvx0dg1hj35467qfx985zc";
};
nativeBuildInputs = [ autoreconfHook ];
patchPhase = ''
substituteInPlace src/bin/torsocks.in \
--replace which ${which}/bin/which
'';
meta = {
description = "Wrapper to safely torify applications";
homepage = http://code.google.com/p/torsocks/;
2013-10-08 13:57:48 +00:00
repositories.git = https://git.torproject.org/torsocks.git;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ phreedom thoughtpolice ];
};
}