mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: electron-cash: Update to 4.0.12.
* gnu/packages/finanace (electron-cash): Update to 4.0.12. [source] switch to git. [inputs] Add libsecp256k1. [arguments] Add phase patching to use libsecp256k1 from inputs.
This commit is contained in:
parent
b9676a4bbb
commit
d08c3e51ab
1 changed files with 22 additions and 14 deletions
|
@ -445,28 +445,36 @@ (define-public electron-cash
|
||||||
(package
|
(package
|
||||||
(inherit electrum)
|
(inherit electrum)
|
||||||
(name "electron-cash")
|
(name "electron-cash")
|
||||||
(version "4.0.10")
|
(version "4.0.12")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://electroncash.org/downloads/"
|
(uri (git-reference
|
||||||
version
|
(url "https://github.com/Electron-Cash/Electron-Cash.git")
|
||||||
"/win-linux/Electron-Cash-"
|
(commit version)))
|
||||||
version
|
(file-name (git-file-name name version))
|
||||||
".tar.gz"))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1rcywlma6hk52ymisx536jvkdwa73rhn1jxhsbs4wbvajl90w9s8"))
|
"0gidrx8499v7rig7ljhd70wssshs1qm0gp1553g70i323hcbf62x"))))
|
||||||
(modules '((guix build utils)))
|
|
||||||
(snippet
|
|
||||||
'(begin
|
|
||||||
;; Delete the bundled dependencies.
|
|
||||||
(delete-file-recursively "packages")
|
|
||||||
#t))))
|
|
||||||
(inputs
|
(inputs
|
||||||
`(,@(package-inputs electrum)
|
`(,@(package-inputs electrum)
|
||||||
|
("libsecp256k1", libsecp256k1)
|
||||||
("python-dateutil", python-dateutil)
|
("python-dateutil", python-dateutil)
|
||||||
("python-dnspython", python-dnspython)))
|
("python-dnspython", python-dnspython)))
|
||||||
|
(arguments
|
||||||
|
`(#:tests? #f ;; package doesn't have any tests
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'use-libsecp256k1-input
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* "lib/secp256k1.py"
|
||||||
|
(("library_paths = .* '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