From: Ricardo Wurmus <rekado@elephly.net>
To: Timothy Sample <samplet@ngyro.com>
Cc: guix-devel@gnu.org, Robert Vollmert <rob@vllmrt.net>
Subject: Re: on cabal revisions
Date: Fri, 14 Jun 2019 22:12:23 +0200 [thread overview]
Message-ID: <87blz0q63c.fsf@elephly.net> (raw)
In-Reply-To: <87v9xbmmid.fsf@ngyro.com>
Hi,
>> What I’m imagining is something roughly like this:
>>
>> (source
>> (origin
>> (method url-fetch)
>> (uri “https://hackage.haskell.org/package-sources.tar.gz”))
>> (sha256 …))
>> (origin
>> (destination “package.cabal”)
>> (method url-fetch)
>> (uri “https://hackage.haskell.org/package/1.cabal”)
>> (sha256 …)))
>>
>> probably with some way to specify how the sources should be
>> combined, by default unpacking over the previous result
>> sequentially. Would that be possible? A good idea even?
>
> This makes sense, but I’m not sure it’s a common enough use case to
> warrant a specialized interface. Besides these Cabal revisions, only a
> handful of packages (that I’ve seen) need to download extra non-patch
> stuff.
One notorious class of packages that could benefit from a general
mechanism like this: the TeX Live packages. They consist of various
subsets of a big SVN repository. Currently, we pick an arbitrary
directory of the SVN repository as the main source and add all the other
locations as native inputs.
I wanted to add a procedure that accepts multiple locations in the SVN
repository, creates a union, and computes the single hash of the union.
This would make the texlive-* packages a lot simpler.
--
Ricardo
prev parent reply other threads:[~2019-06-14 20:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-11 20:56 on cabal revisions Robert Vollmert
2019-06-12 4:54 ` Timothy Sample
2019-06-13 11:46 ` Robert Vollmert
2019-06-13 14:25 ` Timothy Sample
2019-06-14 14:30 ` Robert Vollmert
2019-06-14 15:36 ` Timothy Sample
2019-06-14 20:24 ` Ricardo Wurmus
2019-06-16 8:00 ` haskell package organization (Re: on cabal revisions) Robert Vollmert
2019-06-14 20:28 ` on cabal revisions Ricardo Wurmus
2019-06-15 9:02 ` reproducibility and bootstrapping in mid 2019 (was Re: on cabal revisions) Giovanni Biscuolo
2019-06-14 20:12 ` Ricardo Wurmus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87blz0q63c.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=guix-devel@gnu.org \
--cc=rob@vllmrt.net \
--cc=samplet@ngyro.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).