tsocks: fix LD_PRELOAD references

This commit is contained in:
Edward Tjörnhammar 2014-10-20 11:11:16 +02:00
parent 57eb7f107d
commit 5074a95c54

View File

@ -2,14 +2,16 @@
stdenv.mkDerivation rec {
name = "tsocks-${version}";
version = "1.8beta5";
src = fetchurl {
url = "mirror://sourceforge/tsocks/${name}.tar.gz";
sha256 = "0ixkymiph771dcdzvssi9dr2pk1bzaw9zv85riv3xl40mzspx7c4";
};
preConfigure = ''
export configureFlags="$configureFlags --libdir=$out/lib"
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; {