gnu: smalltalk: Use 'inputs' in phases instead of '%build-inputs'.

In build phases, the former is preferred.

* gnu/packages/smalltalk.scm
  (smalltalk)[arguments]<#:phases>{fix-libc}: Use 'inputs'
  argument instead of '%build-inputs'.

Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
Maxime Devos 2021-05-25 15:22:24 +02:00 committed by Mathieu Othacehe
parent 8190f5bb97
commit f5f78d0d02
No known key found for this signature in database
GPG key ID: 8354763531769CA6

View file

@ -102,8 +102,8 @@ (define-public smalltalk
(find-files "doc" "\\.info"))
#t))
(add-before 'configure 'fix-libc
(lambda _
(let ((libc (assoc-ref %build-inputs "libc")))
(lambda* (#:key inputs #:allow-other-keys)
(let ((libc (assoc-ref inputs "libc")))
(substitute* "libc.la.in"
(("@LIBC_SO_NAME@") "libc.so")
(("@LIBC_SO_DIR@") (string-append libc "/lib"))))