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)
(let ((hugo (string-append #$output "/bin/hugo")))
(invoke "patchelf" "--set-interpreter"
(search-input-file inputs #$(glibc-dynamic-linker))
(string-append #$(this-package-input "glibc")
#$(glibc-dynamic-linker))
hugo)
(invoke "patchelf" "--set-rpath"
(dirname (search-input-file
inputs "/lib/libgcc_s.so.1"))
(string-append (ungexp (this-package-input "gcc")
"lib")
"/lib")
hugo)))))))
(supported-systems '("x86_64-linux"))
(native-inputs (list patchelf))

Loading…
Cancel
Save