rosenthal: hugo-bin: Reference libraries from inputs.

See (guix build-system copy), `copy-build' only passes native-inputs
to #:inputs...

* rosenthal/packages/binaries.scm (hugo-bin)[#:phases]<patch-elf>: Use
`this-package-input' instead of `search-input-file'.
pull/2/head
Hilton Chain 1 year ago
parent 9b8194cc7f
commit 47c14d4cd5
No known key found for this signature in database
GPG Key ID: ACC66D09CA528292
  1. 8
      rosenthal/packages/binaries.scm

@ -130,11 +130,13 @@ different needs.")
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((hugo (string-append #$output "/bin/hugo"))) (let ((hugo (string-append #$output "/bin/hugo")))
(invoke "patchelf" "--set-interpreter" (invoke "patchelf" "--set-interpreter"
(search-input-file inputs #$(glibc-dynamic-linker)) (string-append #$(this-package-input "glibc")
#$(glibc-dynamic-linker))
hugo) hugo)
(invoke "patchelf" "--set-rpath" (invoke "patchelf" "--set-rpath"
(dirname (search-input-file (string-append (ungexp (this-package-input "gcc")
inputs "/lib/libgcc_s.so.1")) "lib")
"/lib")
hugo))))))) hugo)))))))
(supported-systems '("x86_64-linux")) (supported-systems '("x86_64-linux"))
(native-inputs (list patchelf)) (native-inputs (list patchelf))

Loading…
Cancel
Save