torsocks: redo patching, ensure getcap is available
This commit is contained in:
parent
8aebb6b181
commit
95608c3e8d
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchgit, autoreconfHook, which }:
|
{ stdenv, fetchgit, autoreconfHook, libcap }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "torsocks-${version}";
|
name = "torsocks-${version}";
|
||||||
@ -12,9 +12,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook ];
|
nativeBuildInputs = [ autoreconfHook ];
|
||||||
|
|
||||||
patchPhase = ''
|
postPatch = ''
|
||||||
substituteInPlace src/bin/torsocks.in \
|
# Patch torify_app()
|
||||||
--replace which ${which}/bin/which
|
sed -i \
|
||||||
|
-e 's,\(local app_path\)=`which $1`,\1=`type -P $1`,' \
|
||||||
|
-e 's,\(local getcap\)=.*,\1=${libcap}/bin/getcap,' \
|
||||||
|
src/bin/torsocks.in
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user