cvs: support ssh access

hacky wrapper handles ssh issues in nix builders

+9 -3
+6
pkgs/build-support/fetchcvs/builder.sh
··· 1 source $stdenv/setup 2 3 # creating the export drictory and checking out there only to be able to 4 # move the content without the root directory into $out ... 5 # cvs -f -d "$url" export $tag -d "$out" "$module"
··· 1 source $stdenv/setup 2 3 + (echo '#!/usr/bin/env sh'; \ 4 + echo 'echo $@'; \ 5 + echo 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"') > ssh 6 + chmod +x ssh 7 + export CVS_RSH=$PWD/ssh 8 + 9 # creating the export drictory and checking out there only to be able to 10 # move the content without the root directory into $out ... 11 # cvs -f -d "$url" export $tag -d "$out" "$module"
+3 -3
pkgs/build-support/fetchcvs/default.nix
··· 3 # tag="<tagname>" (get version by tag name) 4 # If you don't specify neither one date="NOW" will be used (get latest) 5 6 - {stdenvNoCC, cvs}: 7 8 {cvsRoot, module, tag ? null, date ? null, sha256}: 9 10 stdenvNoCC.mkDerivation { 11 name = "cvs-export"; 12 builder = ./builder.sh; 13 - nativeBuildInputs = [cvs]; 14 15 outputHashAlgo = "sha256"; 16 outputHashMode = "recursive"; 17 outputHash = sha256; 18 - 19 inherit cvsRoot module sha256 tag date; 20 }
··· 3 # tag="<tagname>" (get version by tag name) 4 # If you don't specify neither one date="NOW" will be used (get latest) 5 6 + {stdenvNoCC, cvs, openssh}: 7 8 {cvsRoot, module, tag ? null, date ? null, sha256}: 9 10 stdenvNoCC.mkDerivation { 11 name = "cvs-export"; 12 builder = ./builder.sh; 13 + nativeBuildInputs = [cvs openssh]; 14 15 outputHashAlgo = "sha256"; 16 outputHashMode = "recursive"; 17 outputHash = sha256; 18 + 19 inherit cvsRoot module sha256 tag date; 20 }