aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2024-12-18 16:46:44 +0000
committerChristopher Baines <mail@cbaines.net>2024-12-18 16:46:44 +0000
commit1b14b4f767ae1883084e0d0763dc2c2b35e94bf7 (patch)
tree27334d7155c51d0f733d337c93df0d46b6ab1767
parent46025390907beee34664b3bfe7ef87a31673b7a2 (diff)
downloadguix-fix-patchwork.tar
guix-fix-patchwork.tar.gz
Change-Id: Id14792215caa55c5688d512ba25051c139ec90eb
-rw-r--r--gnu/packages/patchutils.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/patchutils.scm b/gnu/packages/patchutils.scm
index 818934189d..ebf3bee0fe 100644
--- a/gnu/packages/patchutils.scm
+++ b/gnu/packages/patchutils.scm
@@ -460,6 +460,12 @@ application = get_wsgi_application()\n") port)))))
;; running Django applications.
(let ((static-root
(string-append out "/share/patchwork/htdocs")))
+ (substitute* (string-append
+ out-site-packages
+ "/patchwork/settings/base.py")
+ (("os\\.path\\.join\\(ROOT\\_DIR, 'htdocs'\\)")
+ (string-append "'" static-root "'")))
+
(mkdir-p static-root)
(copy-file "patchwork/settings/production.example.py"
"patchwork/settings/assets.py")