mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
7102ef5d49
torsocks and tsocks are not equivalent. torsocks needs a
tor proxy for DNS, tsocks do not.
This reverts commit 1ef6470f15
.
tsocks: adding myself as maintainer
26 lines
768 B
Nix
26 lines
768 B
Nix
{ stdenv, fetchurl }:
|
|
stdenv.mkDerivation rec {
|
|
name = "tsocks-${version}";
|
|
version = "1.8beta5";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/tsocks/${name}.tar.gz";
|
|
sha256 = "0ixkymiph771dcdzvssi9dr2pk1bzaw9zv85riv3xl40mzspx7c4";
|
|
};
|
|
|
|
patches = [ ./poll.patch ];
|
|
|
|
preConfigure = ''
|
|
sed -i -e "s,\\\/usr,"$(echo $out|sed -e "s,\\/,\\\\\\\/,g")",g" tsocks
|
|
substituteInPlace tsocks --replace /usr $out
|
|
export configureFlags="$configureFlags --libdir=$out/lib"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Transparent SOCKS v4 proxying library";
|
|
homepage = http://tsocks.sourceforge.net/;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
maintainers = with maintainers; [ edwtjo phreedom ];
|
|
platforms = platforms.linux;
|
|
};
|
|
} |