@@ -0,0 +1,67 @@
1+{ stdenv
2+, fetchurl
3+, makeWrapper
4+, cvs
5+, perl
6+, nettools
7+, findutils
8+, rsync
9+, coreutils
10+, diffutils
11+} :
12+
13+stdenv.mkDerivation rec {
14+ pname = "cvsq";
15+ version = "1.10";
16+
17+ src = fetchurl {
18+ url = "http://www.linta.de/~aehlig/cvsq/cvsq-${version}.tgz";
19+ sha256 = "1a2e5666d4d23f1eb673a505caeb771ac62a86ed69c9ab89c4e2696c2ccd0621";
20+ };
21+
22+ nativeBuildInputs = [ makeWrapper ];
23+ buildInputs = [ cvs perl nettools findutils rsync coreutils diffutils ];
24+
25+
26+ makeFlags = [ "prefix=$(out)" ];
27+
28+ postInstall = ''
29+ substituteInPlace $out/bin/cvsq --replace "/bin/sh" "${stdenv.shell}"
30+ substituteInPlace $out/bin/lcvs --replace "/bin/sh" "${stdenv.shell}"
31+ wrapProgram $out/bin/cvsq --prefix PATH : ${stdenv.lib.makeBinPath
32+ [ cvs nettools findutils rsync coreutils diffutils ]}
33+ wrapProgram $out/bin/cvsq-branch --prefix PATH : ${stdenv.lib.makeBinPath
34+ [ cvs nettools findutils rsync coreutils diffutils ]}
35+ wrapProgram $out/bin/cvsq-merge --prefix PATH : ${stdenv.lib.makeBinPath
36+ [ cvs nettools findutils rsync coreutils diffutils ]}
37+ wrapProgram $out/bin/cvsq-switch --prefix PATH : ${stdenv.lib.makeBinPath
38+ [ cvs nettools findutils rsync coreutils diffutils ]}
39+ wrapProgram $out/bin/lcvs --prefix PATH : ${stdenv.lib.makeBinPath
40+ [ cvs nettools findutils rsync coreutils diffutils ]}
41+ '';
42+
43+ meta = {
44+ description = ''A collection of tools to work locally with CVS'';
45+ longDescription = ''
46+ cvsq is a collection of tools to work locally with CVS.
47+
48+ cvsq queues commits and other cvs commands in a queue to be executed later,
49+ when the machine is online again. In case of a commit (the default action)
50+ an actual copy of the working directory is made, so that you can continue
51+ editing without affecting the scheduled commit. You can even schedule
52+ several successive commits to the same file and they will be correctly
53+ committed as successive commits at the time of upload. This is different
54+ from an earlier script also named cvsq that you might have seen elsewhere.
55+
56+ lcvs uses rsync to maintain a local copy of a cvs repository. It also
57+ gives a convenient interface to call cvs in such a way that it believes the
58+ current working directory refers to the local copy rather than to the actual
59+ repository. This is useful for commands like log, diff, etc; however it cannot
60+ be used for commits (that's what cvsq is for).
61+ '';
62+ homepage = https://www.linta.de/~aehlig/cvsq/;
63+ license = stdenv.lib.licenses.bsd3;
64+ maintainers = with stdenv.lib.maintainers; [ clkamp ];
65+ platforms = stdenv.lib.platforms.all;
66+ };
67+}