gnu: git-annex: Patch 'git-annex webapp' to use hardcoded lsof.

* gnu/packages/haskell-apps.scm (git-annex)[arguments]: Substitute "lsof" in
'patch-webapp' phase.
[inputs]: Add lsof.
This commit is contained in:
David Thompson 2023-01-09 18:06:10 -05:00
parent 8bf8b59101
commit 323d868ceb
No known key found for this signature in database
GPG key ID: 8328C7470FF1D807

View file

@ -50,6 +50,7 @@ (define-module (gnu packages haskell-apps)
#:use-module (gnu packages haskell-crypto)
#:use-module (gnu packages haskell-web)
#:use-module (gnu packages haskell-xyz)
#:use-module (gnu packages lsof)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
@ -335,7 +336,11 @@ (define-public git-annex
;; webapp' runs without making the user also install xdg-utils.
(substitute* '("Assistant/WebApp/DashBoard.hs"
"Utility/WebApp.hs")
(("xdg-open") (which "xdg-open")))))
(("xdg-open") (which "xdg-open")))
;; Also replace loose references to lsof.
(substitute* "Assistant/Threads/Watcher.hs"
(("\"lsof\"")
(string-append "\"" (which "lsof") "\"")))))
(add-before 'configure 'factor-setup
(lambda _
;; Factor out necessary build logic from the provided
@ -480,6 +485,7 @@ (define-public git-annex
ghc-yesod-core
ghc-yesod-form
ghc-yesod-static
lsof
rsync
xdg-utils))
(propagated-inputs