1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/tsocks/${pname}-${version}.tar.gz";
9 sha256 = "0ixkymiph771dcdzvssi9dr2pk1bzaw9zv85riv3xl40mzspx7c4";
12 patches = [ ./poll.patch ];
15 sed -i -e "s,\\\/usr,"$(echo $out|sed -e "s,\\/,\\\\\\\/,g")",g" tsocks
16 substituteInPlace tsocks --replace /usr $out
17 export configureFlags="$configureFlags --libdir=$out/lib"
21 # We don't need the saveme binary, it is in fact never stored and we're
22 # never injecting stuff into ld.so.preload anyway
24 -e "s,TARGETS=\(.*\)..SAVE.\(.*\),TARGETS=\1\2," \
29 description = "Transparent SOCKS v4 proxying library";
30 homepage = "http://tsocks.sourceforge.net/";
31 license = lib.licenses.gpl2;
32 maintainers = with maintainers; [ edwtjo ];
33 platforms = platforms.unix;
34 broken = stdenv.hostPlatform.isDarwin;