aboutsummaryrefslogtreecommitdiff
path: root/gn/packages/bioinformatics.scm
diff options
context:
space:
mode:
authorEfraim Flashner2021-04-25 14:33:36 +0300
committerEfraim Flashner2021-04-25 14:58:42 +0300
commit477b95399080a23b32c350b9ed8629898d033a9b (patch)
treef815a70c2c1677f4baacc2d5495e96962ede8680 /gn/packages/bioinformatics.scm
parent437219718f7bd189f0229570d4319d23aa3256aa (diff)
downloadguix-bioinformatics-477b95399080a23b32c350b9ed8629898d033a9b.tar.gz
gn: ucsc genome browser: functioning web service?
Diffstat (limited to 'gn/packages/bioinformatics.scm')
-rw-r--r--gn/packages/bioinformatics.scm27
1 files changed, 26 insertions, 1 deletions
diff --git a/gn/packages/bioinformatics.scm b/gn/packages/bioinformatics.scm
index 76406db..b836ff0 100644
--- a/gn/packages/bioinformatics.scm
+++ b/gn/packages/bioinformatics.scm
@@ -1616,7 +1616,32 @@ multiple sequence alignment.")
(replace 'install
(lambda _
(invoke "make" "doc-install")
- #t)))))
+ #t))
+ ;; TODO: Figure out how to make this configurable in the service.
+ (add-after 'install 'create-hg-conf
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (with-output-to-file (string-append out "/cgi-bin/hg.conf")
+ (lambda ()
+ (display
+ (string-append
+ "browser.documentRoot=" out "/html\n"
+ "db.host=gbdb\n"
+ "db.user=admin\n"
+ "db.password=admin\n"
+ "db.trackDb=trackDb\n"
+ "defaultGenome=Human\n"
+ "central.db=hgcentral\n"
+ "central.host=gbdb\n"
+ "central.user=admin\n"
+ "central.password=admin\n"
+ "central.domain=\n"
+ "backupcentral.db=hgcentral\n"
+ "backupcentral.host=gbdb\n"
+ "backupcentral.user=admin\n"
+ "backupcentral.password=admin\n"
+ "backupcentral.domain=\n"))))
+ #t))))))
(inputs
`(("libpng" ,libpng)
("mysql:dev" ,mariadb "dev")