mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 23:55:23 +00:00
3793ff5290
Signed-off-by: Austin Seipp <aseipp@pobox.com>
32 lines
915 B
Nix
32 lines
915 B
Nix
{ stdenv, fetchgit, autoreconfHook, which }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "torsocks-${version}";
|
|
version = "2.1.0";
|
|
|
|
src = fetchgit {
|
|
url = meta.repositories.git;
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "1q7rbf0j54jh17qs76b6k9hzv4sh4044qfzidjrp6gx576ysrvsf";
|
|
};
|
|
|
|
buildInputs = [ autoreconfHook ];
|
|
preConfigure = ''
|
|
export configureFlags="$configureFlags --libdir=$out/lib"
|
|
'';
|
|
|
|
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/;
|
|
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 ];
|
|
};
|
|
}
|