[Nix-dev] fetchcvs - proposal / What does the prefetch do now?
Eelco Dolstra
eelco at cs.uu.nl
Mon Nov 12 12:44:18 CET 2007
Marc Weber wrote:
> Why modifying it at all?
> Using the current fetcvs builder you are not able to export
> '-D2007-20-10'
> which is the only option if you don't want to use NOW (which breakes
> things) if the author hasn't created tagnames .. (Or am I wrong here?)
No, you indeed need to be able to specify a date/time if there are no tags.
> # example tags:
> # "-DNOW" (get current version)
> # "-D2007-20-10" (get the last version before given date)
> # "-r <tagname>" (get version by tag name)
> {stdenv, cvs, nix}: {url, module, tag, sha256}:
This doesn't look so nice, since you can put arbitrary arguments to CVS in
"tag". Wouldn't it be better to have separate "tag" and "date" arguments? I.e.
fetchCVS { ...; tag = "foo"; } would map to `cvs -r "foo"', and
fetchCVS { ...; date = "2007-20-10"; } would map to `cvs -D "2007-20-10"', and
--
Eelco Dolstra | http://www.cs.uu.nl/~eelco
More information about the nix-dev
mailing list