guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: electron-cash: Use substitute-keyword-arguments from electru


From: guix-commits
Subject: 01/01: gnu: electron-cash: Use substitute-keyword-arguments from electrum.
Date: Mon, 16 Dec 2019 18:26:33 -0500 (EST)

vagrantc pushed a commit to branch master
in repository guix.

commit e5c32a3afa4b3b24fa8e93d8453b0977e492a27e
Author: Vagrant Cascadian <address@hidden>
Date:   Mon Dec 16 23:16:52 2019 +0000

    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.
---
 gnu/packages/finance.scm | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 637a4dc..ce3033c 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -462,19 +462,14 @@ other machines/servers.  Electrum does not download the 
Bitcoin blockchain.")
        ("python-dateutil", python-dateutil)
        ("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"))))))))
+     (substitute-keyword-arguments (package-arguments electrum)
+       ((#:phases phases)
+        `(modify-phases ,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'")))))))))
     (home-page "https://electroncash.org/";)
     (synopsis "Bitcoin Cash wallet")
     (description



reply via email to

[Prev in Thread] Current Thread [Next in Thread]