[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to copy a file to the package /bin folder using the r-build-syst
From: |
Kyle Andrews |
Subject: |
Re: How to copy a file to the package /bin folder using the r-build-system? |
Date: |
Sun, 09 Apr 2023 12:54:39 +0000 |
"(" <paren@disroot.org> writes:
> [[PGP Signed Part:Undecided]]
> Heya,
>
> On Sun Apr 9, 2023 at 4:15 AM BST, Kyle Andrews wrote:
>> > (lambda _
>> > (mkdir (string-append #$output "/bin"))
>> > (copy-file "inst/bin/r"
>> > (string-append #$output "/bin/r")))
>>
>> This perfect makes sense now and is much more concise.
>
> Actually, you can even do:
>
> ```
> (lambda _
> (install-file "inst/bin/r"
> (string-append #$output "/bin")))
> ```
That is nice and intentional!
>> ```
>> $ guix build -L dev r-littler
>> ...
>> ld: cannot find -lz
>> collect2: error: ld returned 1 exit status
>> ...
>> ```
>>
>> I know I have seen that error before, but I thought it was fixed by
>> importing compression, prefixing (guix licenses) to prevent a
>> namespace collision, and including zlib in the package inputs.
>
> I think (!) you also need to import (gnu packages pkg-config) and add
> PKG-CONFIG to NATIVE-INPUTS.
That fixed it! Thanks!
> -- (