This commit is contained in:
Daniel Ziltener 2024-03-20 17:34:18 +01:00
parent 767edd806a
commit 3da20d6708
Signed by: zilti
GPG key ID: B38976E82C9DAE42

View file

@ -31,8 +31,6 @@
(list
#:configure-flags
#~(list
(string-append "-DPHARO_BIN_LOCATION="
(assoc-ref %outputs "out") "/bin")
(string-append "-DPHARO_LIBRARY_PATH="
(assoc-ref %outputs "out") "/lib")
"-DGENERATED_SOURCE_DIR=."
@ -43,12 +41,11 @@
#:phases
#~(modify-phases %standard-phases
(delete 'check)
(delete 'validate-runpath)
(add-after 'install 'really-install
(lambda _
(let ((bin (string-append #$output "/bin"))
(lib (string-append #$output "/lib")))
(wrap-program "./build/vm/pharo"
`("LD_LIBRARY_PATH" prefix (,lib)))
(mkdir-p bin)
(mkdir-p lib)
(copy-recursively "./build/vm/pharo"
@ -62,7 +59,9 @@
"./build/vm"
(find-files "."
(lambda (file stat)
(string-contains file ".so")))))))))))
(string-contains file ".so")))))
(wrap-program (string-append bin "/pharo")
`("LD_LIBRARY_PATH" prefix (,lib)))))))))
(inputs
(list libffi
libgit2