guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New build system: copy-build-system


From: Pierre Neidhardt
Subject: Re: New build system: copy-build-system
Date: Mon, 27 Jan 2020 16:18:15 +0100

zimoun <address@hidden> writes:

> You want something like that:
>
> --8<---------------cut here---------------start------------->8---
> (define-public debian-archive-keyring
>   (package
>     (name "debian-archive-keyring")
>     (version "2019.1")
>     (source ...)
>     (build-system copy-build-system)
>     (arguments
>      '(#:install-plan
>        (lambda* (#:key outputs #:allow-other-keys)
>                 (let* ((out (assoc-ref outputs "out"))
>                        (apt (string-append out "/etc/apt/trusted.gpg.d/"))
>                        (key (string-append out "/share/keyrings/")))
>                   (install-file "keyrings/debian-archive-keyring.gpg" key)
>                   (install-file "keyrings/debian-archive-removed-keys.gpg" 
> key)
>                   (for-each (lambda (file)
>                               (install-file file apt))
>                             (find-files "trusted.gpg" "\\.gpg$")))
>                 #t)))))
> --8<---------------cut here---------------end--------------->8---

Actually we could simplify the install plan with something like

--8<---------------cut here---------------start------------->8---
#:install-plan
(("source1" "target1")
 ("source-dir2/" "target-dir2" #:exclude ("foo")))
--8<---------------cut here---------------end--------------->8---

Regarding the data fetching, if I understand your point I think it
should be handled in a separate issue.

Cheers!

-- 
Pierre Neidhardt
https://ambrevar.xyz/

Attachment: signature.asc
Description: PGP signature


reply via email to

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