torsocks: expression cleanups

- Remove redundant preConfigure
  torsocks installs into $libdir/torsocks, so setting libdir=$out/lib
  doesn't really help.  To put the shared objects into $out/lib we'd have
  to manually move them into $out and patch various files (the script
  itself expects $libdir/torsocks).
- Use nativeBuildInputs
This commit is contained in:
Joachim Fasting 2016-12-04 18:23:02 +01:00
parent 9353d8c1ea
commit 8aebb6b181
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08

View File

@ -10,10 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "1xwkmfaxhhnbmvp37agnby1n53hznwhvx0dg1hj35467qfx985zc";
};
buildInputs = [ autoreconfHook ];
preConfigure = ''
export configureFlags="$configureFlags --libdir=$out/lib"
'';
nativeBuildInputs = [ autoreconfHook ];
patchPhase = ''
substituteInPlace src/bin/torsocks.in \