nixpkgs/pkgs/build-support/fetchcvs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
626 B
Nix
Raw Normal View History

# example tags:
# date="2007-20-10"; (get the last version before given date)
# tag="<tagname>" (get version by tag name)
# If you don't specify neither one date="NOW" will be used (get latest)
{stdenvNoCC, cvs, openssh, lib}:
lib.makeOverridable (
2024-09-15 22:02:31 +00:00
lib.fetchers.withNormalizedHash { } (
{cvsRoot, module, tag ? null, date ? null, outputHash, outputHashAlgo}:
2024-09-15 22:02:31 +00:00
stdenvNoCC.mkDerivation {
name = "cvs-export";
builder = ./builder.sh;
nativeBuildInputs = [cvs openssh];
2024-09-15 22:02:31 +00:00
inherit outputHash outputHashAlgo;
outputHashMode = "recursive";
2024-09-15 22:02:31 +00:00
inherit cvsRoot module tag date;
}
)
)