gnu: electron-cash: Fix share/ location.

* gnu/packages/finance.scm (electron-cash)[arguments]: Drop bogus
‘local/share’ subdirectory: rename ‘patch-home’ to
‘create-output-directories’ and adjust body to match.
This commit is contained in:
Tobias Geerinckx-Rice 2020-08-24 03:56:01 +02:00
parent 110888f85f
commit 44da87334d
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -517,11 +517,10 @@ (define-public electron-cash
(guix build qt-utils))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-home
(add-after 'unpack 'create-output-directories
(lambda* (#:key outputs #:allow-other-keys)
(substitute* "setup.py"
(("~/.local/share")
(string-append (assoc-ref outputs "out") "/local/share")))
;; setup.py installs to ~/.local/share if this doesn't exist.
(mkdir-p (string-append (assoc-ref outputs "out") "/share"))
#t))
(add-after 'unpack 'use-libsecp256k1-input
(lambda* (#:key inputs #:allow-other-keys)