diff --git a/pkgs/development/libraries/tsocks/default.nix b/pkgs/development/libraries/tsocks/default.nix index 778762f1bf87..149b2260792f 100644 --- a/pkgs/development/libraries/tsocks/default.nix +++ b/pkgs/development/libraries/tsocks/default.nix @@ -1,4 +1,5 @@ { stdenv, fetchurl }: + stdenv.mkDerivation rec { name = "tsocks-${version}"; version = "1.8beta5"; @@ -16,11 +17,19 @@ stdenv.mkDerivation rec { export configureFlags="$configureFlags --libdir=$out/lib" ''; + preBuild = '' + # We don't need the saveme binary, it is in fact never stored and we're + # never injecting stuff into ld.so.preload anyway + sed -i \ + -e "s,TARGETS=\(.*\)..SAVE.\(.*\),TARGETS=\1\2," \ + -e "/SAVE/d" Makefile + ''; + 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; + platforms = platforms.unix; }; -} \ No newline at end of file +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cd576d1bea03..9c6c9540da6c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8979,11 +8979,7 @@ in unicap = callPackage ../development/libraries/unicap {}; - tsocks = callPackage ../development/libraries/tsocks { - stdenv = overrideCC stdenv ( - wrapCCWith (callPackage ../build-support/cc-wrapper) - musl "" gcc.cc); - }; + tsocks = callPackage ../development/libraries/tsocks { }; unixODBC = callPackage ../development/libraries/unixODBC { };