[Top][All Lists]

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

Re: Multiple sources

From: phodina
Subject: Re: Multiple sources
Date: Thu, 22 Jul 2021 18:03:45 +0000

> Maybe you can use the first repo as the source, and use the second as
> an input, then have a phase to copy the files in place?
> You can do something like this in the inputs:
> (inputs
> `(("second-repo" ,(origin
> (method url-fetch)
> (uri ...)
> ...))))
> and in a phase you could do something like
> (with-directory-excursion "some-place"
> (invoke "tar" "xf" (assoc-ref inputs "second-repo")))
> (or copy if it's not a tar)
> HTH!

Thanks Julien!

This is a good way to save myself from full package definition. I now see that 
other packages define multiple sources in similar way as now I know what to 
look for.

Though my original question was more about the way the other package managers 
define sources e.g. PKGBUILD. There the sources are in one "list".
But in the end both definitions are equivalent and they alsoprovide the sums 
(if not skipped ;-)


reply via email to

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