help-guix
[Top][All Lists]
Advanced

[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: (
Subject: Re: How to copy a file to the package /bin folder using the r-build-system?
Date: Sun, 09 Apr 2023 10:36:50 +0100

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")))
```

> ```
> $ 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.

    -- (

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]