gnu: tor: Record the file name of 'torsocks' in 'torify'.
* gnu/packages/tor.scm (tor)[arguments]: Add 'adjust-torify' phase. [inputs]: Add TORSOCKS.
This commit is contained in:
parent
61d4f9e89d
commit
7750f220be
1 changed files with 11 additions and 0 deletions
|
@ -73,6 +73,16 @@
|
||||||
"--enable-zstd")
|
"--enable-zstd")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
|
(add-before 'build 'adjust-torify
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
;; Record in 'torify' the absolute file name of 'torsocks'.
|
||||||
|
(let ((torsocks (search-input-file
|
||||||
|
inputs "/bin/torsocks")))
|
||||||
|
(substitute* "contrib/client-tools/torify"
|
||||||
|
(("pathfind torsocks")
|
||||||
|
"true")
|
||||||
|
(("exec torsocks")
|
||||||
|
(string-append "exec " torsocks))))))
|
||||||
(add-before 'check 'skip-practracker
|
(add-before 'check 'skip-practracker
|
||||||
;; This is a style linter. It doesn't get to throw fatal errors.
|
;; This is a style linter. It doesn't get to throw fatal errors.
|
||||||
(lambda _
|
(lambda _
|
||||||
|
@ -98,6 +108,7 @@
|
||||||
(list libevent
|
(list libevent
|
||||||
libseccomp
|
libseccomp
|
||||||
openssl
|
openssl
|
||||||
|
torsocks
|
||||||
xz
|
xz
|
||||||
zlib
|
zlib
|
||||||
`(,zstd "lib")))
|
`(,zstd "lib")))
|
||||||
|
|
Reference in a new issue