mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: electron-cash: Use substitute-keyword-arguments from electrum.
* gnu/packages/finance (electron-cash)[arguments]: Use substitute-keyword-arguments to re-use arguments from electrum.
This commit is contained in:
parent
d08c3e51ab
commit
e5c32a3afa
1 changed files with 8 additions and 13 deletions
|
@ -462,19 +462,14 @@ (define-public electron-cash
|
||||||
("python-dateutil", python-dateutil)
|
("python-dateutil", python-dateutil)
|
||||||
("python-dnspython", python-dnspython)))
|
("python-dnspython", python-dnspython)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ;; package doesn't have any tests
|
(substitute-keyword-arguments (package-arguments electrum)
|
||||||
#:phases
|
((#:phases phases)
|
||||||
(modify-phases %standard-phases
|
`(modify-phases ,phases
|
||||||
(add-after 'unpack 'use-libsecp256k1-input
|
(add-after 'unpack 'use-libsecp256k1-input
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(substitute* "lib/secp256k1.py"
|
(substitute* "lib/secp256k1.py"
|
||||||
(("library_paths = .* 'libsecp256k1.so.0'.")
|
(("library_paths = .* 'libsecp256k1.so.0'.")
|
||||||
(string-append "library_paths = ('" (assoc-ref inputs "libsecp256k1") "/lib/libsecp256k1.so.0'")))))
|
(string-append "library_paths = ('" (assoc-ref inputs "libsecp256k1") "/lib/libsecp256k1.so.0'")))))))))
|
||||||
(add-before 'build 'patch-home
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(substitute* "setup.py"
|
|
||||||
(("~/.local/share")
|
|
||||||
(string-append (assoc-ref outputs "out") "/local/share"))))))))
|
|
||||||
(home-page "https://electroncash.org/")
|
(home-page "https://electroncash.org/")
|
||||||
(synopsis "Bitcoin Cash wallet")
|
(synopsis "Bitcoin Cash wallet")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue