Update guix to get rid of hall cruft
This commit is contained in:
parent
822c410964
commit
c302065af2
1 changed files with 1 additions and 58 deletions
59
guix.scm
59
guix.scm
|
@ -26,64 +26,7 @@
|
||||||
(string-contains file my-string))
|
(string-contains file my-string))
|
||||||
(list ".git" ".dir-locals.el" "guix.scm"))))))
|
(list ".git" ".dir-locals.el" "guix.scm"))))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments `())
|
||||||
`(#:modules
|
|
||||||
((ice-9 match)
|
|
||||||
(ice-9 ftw)
|
|
||||||
,@%gnu-build-system-modules)
|
|
||||||
#:phases
|
|
||||||
(modify-phases
|
|
||||||
%standard-phases
|
|
||||||
(add-after
|
|
||||||
'install
|
|
||||||
'hall-wrap-binaries
|
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
|
||||||
(let* ((compiled-dir
|
|
||||||
(lambda (out version)
|
|
||||||
(string-append
|
|
||||||
out
|
|
||||||
"/lib/guile/"
|
|
||||||
version
|
|
||||||
"/site-ccache")))
|
|
||||||
(uncompiled-dir
|
|
||||||
(lambda (out version)
|
|
||||||
(string-append
|
|
||||||
out
|
|
||||||
"/share/guile/site"
|
|
||||||
(if (string-null? version) "" "/")
|
|
||||||
version)))
|
|
||||||
(dep-path
|
|
||||||
(lambda (env modules path)
|
|
||||||
(list env
|
|
||||||
":"
|
|
||||||
'prefix
|
|
||||||
(cons modules
|
|
||||||
(map (lambda (input)
|
|
||||||
(string-append
|
|
||||||
(assoc-ref inputs input)
|
|
||||||
path))
|
|
||||||
,''())))))
|
|
||||||
(out (assoc-ref outputs "out"))
|
|
||||||
(bin (string-append out "/bin/"))
|
|
||||||
(site (uncompiled-dir out "")))
|
|
||||||
(match (scandir site)
|
|
||||||
(("." ".." version)
|
|
||||||
(for-each
|
|
||||||
(lambda (file)
|
|
||||||
(wrap-program
|
|
||||||
(string-append bin file)
|
|
||||||
(dep-path
|
|
||||||
"GUILE_LOAD_PATH"
|
|
||||||
(uncompiled-dir out version)
|
|
||||||
(uncompiled-dir "" version))
|
|
||||||
(dep-path
|
|
||||||
"GUILE_LOAD_COMPILED_PATH"
|
|
||||||
(compiled-dir out version)
|
|
||||||
(compiled-dir "" version))))
|
|
||||||
,''("generate-eastasian"
|
|
||||||
"generate-emoji"
|
|
||||||
"generate-graphemes"))
|
|
||||||
#t))))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list autoconf automake pkg-config texinfo))
|
(list autoconf automake pkg-config texinfo))
|
||||||
(inputs (list guile-3.0))
|
(inputs (list guile-3.0))
|
||||||
|
|
Loading…
Reference in a new issue