1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-02-19 17:39:34 +00:00

cvs: support ssh access

hacky wrapper handles ssh issues in nix builders
This commit is contained in:
Matthew Bauer 2018-04-19 21:51:40 -05:00
parent cd5dfa1f88
commit 0dc26d0e7e
2 changed files with 9 additions and 3 deletions
pkgs/build-support/fetchcvs

View file

@ -1,5 +1,11 @@
source $stdenv/setup source $stdenv/setup
(echo '#!/usr/bin/env sh'; \
echo 'echo $@'; \
echo 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"') > ssh
chmod +x ssh
export CVS_RSH=$PWD/ssh
# creating the export drictory and checking out there only to be able to # creating the export drictory and checking out there only to be able to
# move the content without the root directory into $out ... # move the content without the root directory into $out ...
# cvs -f -d "$url" export $tag -d "$out" "$module" # cvs -f -d "$url" export $tag -d "$out" "$module"

View file

@ -3,18 +3,18 @@
# tag="<tagname>" (get version by tag name) # tag="<tagname>" (get version by tag name)
# If you don't specify neither one date="NOW" will be used (get latest) # If you don't specify neither one date="NOW" will be used (get latest)
{stdenvNoCC, cvs}: {stdenvNoCC, cvs, openssh}:
{cvsRoot, module, tag ? null, date ? null, sha256}: {cvsRoot, module, tag ? null, date ? null, sha256}:
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation {
name = "cvs-export"; name = "cvs-export";
builder = ./builder.sh; builder = ./builder.sh;
nativeBuildInputs = [cvs]; nativeBuildInputs = [cvs openssh];
outputHashAlgo = "sha256"; outputHashAlgo = "sha256";
outputHashMode = "recursive"; outputHashMode = "recursive";
outputHash = sha256; outputHash = sha256;
inherit cvsRoot module sha256 tag date; inherit cvsRoot module sha256 tag date;
} }