rekahsoft-gnu: emacs-org-html-themes: adjust setup file paths

This commit is contained in:
Collin J. Doering 2021-09-05 03:18:25 -04:00
parent 2b6a03e633
commit e347da4c15
Signed by: rekahsoft
GPG Key ID: 7B4DEB93212B3022
1 changed files with 16 additions and 1 deletions

View File

@ -818,7 +818,22 @@ dashboard!")
"1jzkfsq4i4w2cgnlaw8cxa0b33rf8gy82bkbvl52hzlzhp68krgv"))))
(build-system copy-build-system)
(arguments
`(#:install-plan
`(#:phases
(modify-phases %standard-phases
(add-after 'install 'hardcode-setup-file-paths
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(src (string-append out "/var/org-themes/org-html-themes/src/")))
(for-each
(lambda (setup-file)
(substitute* setup-file
(("src=\"src/")
(string-append "src=\"" src))
(("href=\"src/")
(string-append "href=\"" src))))
(find-files out "\\.setup$"))
#t))))
#:install-plan
'(("src" "var/org-themes/org-html-themes/src")
("org/" "var/org-themes/org-html-themes"
#:include-regexp ("-local\\.setup$")))))