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

43 lines
659 B
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
# 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)
2024-06-30 08:16:52 +00:00
{
stdenvNoCC,
cvs,
openssh,
lib,
}:
2024-05-02 00:46:19 +00:00
lib.makeOverridable (
2024-06-30 08:16:52 +00:00
{
cvsRoot,
module,
tag ? null,
date ? null,
sha256,
}:
2024-05-02 00:46:19 +00:00
2024-06-30 08:16:52 +00:00
stdenvNoCC.mkDerivation {
name = "cvs-export";
builder = ./builder.sh;
nativeBuildInputs = [
cvs
openssh
];
2024-05-02 00:46:19 +00:00
2024-06-30 08:16:52 +00:00
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = sha256;
2024-05-02 00:46:19 +00:00
2024-06-30 08:16:52 +00:00
inherit
cvsRoot
module
sha256
tag
date
;
}
2024-05-02 00:46:19 +00:00
)