about summary refs log tree commit diff
path: root/genenetwork/development-helper.scm
diff options
context:
space:
mode:
Diffstat (limited to 'genenetwork/development-helper.scm')
-rw-r--r--genenetwork/development-helper.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/genenetwork/development-helper.scm b/genenetwork/development-helper.scm
index e8364ef..85ab1a1 100644
--- a/genenetwork/development-helper.scm
+++ b/genenetwork/development-helper.scm
@@ -157,3 +157,16 @@ SOURCE. PROFILE is a profile with necessary dependencies."
 
           (chdir #$source)
           (invoke "tissue" "web" #$output)))))
+
+(define (tissue-index-gexp source profile)
+  "Return a G-expression that builds a tissue index from
+SOURCE. PROFILE is a profile with necessary dependencies."
+  (with-imported-modules '((guix build utils))
+    (with-profile profile
+      #~(begin
+          (use-modules (guix build utils))
+
+          (mkdir-p #$output)
+          (chdir #$output)
+          (copy-recursively #$source #$output)
+          (invoke "tissue" "index")))))