[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/12: gnu: electrum: Fix share/ location.
From: |
guix-commits |
Subject: |
06/12: gnu: electrum: Fix share/ location. |
Date: |
Sun, 23 Aug 2020 22:55:12 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit a2765029c2e2fbbf5e9d548a7a635a373cccbf7e
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Mon Aug 24 04:21:42 2020 +0200
gnu: electrum: Fix share/ location.
* gnu/packages/finance.scm (electrum)[arguments]: Rename the ‘patch-home’
phase to ‘fix-prefix’. Do so.
---
gnu/packages/finance.scm | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index 12da422..332142f 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -458,12 +458,16 @@ do so.")
`(#:tests? #f ; no tests
#:phases
(modify-phases %standard-phases
- (add-before 'build 'patch-home
+ (add-after 'unpack 'fix-prefix
(lambda* (#:key outputs #:allow-other-keys)
- (substitute* "setup.py"
- (("~/.local/share")
- (string-append (assoc-ref outputs "out") "/local/share")))
- #t)))))
+ (let ((out (assoc-ref outputs "out")))
+ ;; setup.py installs to ~/.local/share if sys.prefix/share isn't
+ ;; writable. sys.prefix points to Python's, not our, --prefix.
+ (mkdir-p (string-append out "/share"))
+ (substitute* "setup.py"
+ (("sys\\.prefix")
+ (format #f "\"~a\"" out)))
+ #t))))))
(home-page "https://electrum.org/")
(synopsis "Bitcoin wallet")
(description
- branch master updated (29f6150 -> c687299), guix-commits, 2020/08/23
- 03/12: gnu: electrum: Return #t from phases., guix-commits, 2020/08/23
- 05/12: gnu: electron-cash: Fix share/ location., guix-commits, 2020/08/23
- 01/12: gnu: wireguard-tools: Update to 1.0.20200820., guix-commits, 2020/08/23
- 02/12: gnu: wireguard-tools: Cross-compile., guix-commits, 2020/08/23
- 04/12: gnu: electron-cash: Return #t from phases., guix-commits, 2020/08/23
- 12/12: gnu: dovecot: Enable FTS stemming., guix-commits, 2020/08/23
- 06/12: gnu: electrum: Fix share/ location.,
guix-commits <=
- 07/12: gnu: xapian: Update to 1.4.17., guix-commits, 2020/08/23
- 08/12: gnu: evisum: Update to 0.5.3., guix-commits, 2020/08/23
- 10/12: gnu: bind: Note that isc-dhcp bundles a BIND., guix-commits, 2020/08/23
- 09/12: gnu: xterm: Update to 359., guix-commits, 2020/08/23
- 11/12: gnu: python-parted: Update to 3.11.6., guix-commits, 2020/08/23