aboutsummaryrefslogtreecommitdiff
path: root/gn
diff options
context:
space:
mode:
authorArun Isaac2024-01-02 16:57:24 +0000
committerArun Isaac2024-01-02 17:04:08 +0000
commit7a4299e73635f0b68f548105f05cfdd6ecb234bd (patch)
treeb4828f03aa5bf2fc2229514ad005375bf5e5c5f9 /gn
parent05dd63817302e890a16a33fc3b5f88fa07a8184d (diff)
downloadguix-bioinformatics-7a4299e73635f0b68f548105f05cfdd6ecb234bd.tar.gz
gn: genenetwork2: Install bundled fonts.
* gn/packages/genenetwork.scm (genenetwork2)[arguments]: Add install-bundled-fonts and fix-font-paths phases.
Diffstat (limited to 'gn')
-rw-r--r--gn/packages/genenetwork.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/gn/packages/genenetwork.scm b/gn/packages/genenetwork.scm
index 6be016e..d499d8a 100644
--- a/gn/packages/genenetwork.scm
+++ b/gn/packages/genenetwork.scm
@@ -305,6 +305,19 @@
#:phases
#~(modify-phases %standard-phases
(delete 'reset-gzip-timestamps)
+ (add-after 'install 'install-bundled-fonts
+ (lambda _
+ ;; Install bundled fonts.
+ (for-each (lambda (font-file)
+ (install-file font-file (string-append #$output "/share/fonts/")))
+ (find-files "gn2/wqflask/static/fonts"
+ "\\.ttf$"))))
+ (add-after 'unpack 'fix-font-paths
+ (lambda _
+ ;; Set absolute store paths to installed bundled fonts.
+ (substitute* "gn2/wqflask/marker_regression/display_mapping_results.py"
+ (("\\./gn2/wqflask/static/fonts")
+ (string-append #$output "/gn2/wqflask/static/fonts")))))
(add-after 'unpack 'fix-paths-scripts
(lambda _
(substitute* "bin/genenetwork2"