summary refs log tree commit diff
path: root/pkgs/build-support/fetchcvs/default.nix
blob: 1f7947d4d452924d31b8e84e4c680710d14d5fa9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 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}:

{cvsRoot, module, tag ? null, date ? null, sha256}:

stdenvNoCC.mkDerivation {
  name = "cvs-export";
  builder = ./builder.sh;
  nativeBuildInputs = [cvs openssh];

  outputHashAlgo = "sha256";
  outputHashMode = "recursive";
  outputHash = sha256;

  inherit cvsRoot module sha256 tag date;
}