git.iko.soy/typeable/nixpkgs
on master help sign in
cvs: support ssh access

hacky wrapper handles ssh issues in nix builders

commit0dc26d0e7edfd6849643147b8e6c2d21ea7f5d5d authorMatthew Bauer <mjbauer95@gmail.com> dateThu 19 Apr 2018, 21:51 (9 years ago) parentcd5dfa1
2 files changed+9−3
pkgs/build-support/fetchcvs/builder.sh+6 pkgs/build-support/fetchcvs/default.nix+3−3
pkgs/build-support/fetchcvs/builder.sh+6
@@ -1,5 +1,11 @@
11source $stdenv/setup
22
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+
39# creating the export drictory and checking out there only to be able to
410# move the content without the root directory into $out ...
511# cvs -f -d "$url" export $tag -d "$out" "$module"
pkgs/build-support/fetchcvs/default.nix+3−3
@@ -3,18 +3,18 @@
33# tag="<tagname>" (get version by tag name)
44# If you don't specify neither one date="NOW" will be used (get latest)
55
6−{stdenvNoCC, cvs}:
6+{stdenvNoCC, cvs, openssh}:
77
88{cvsRoot, module, tag ? null, date ? null, sha256}:
99
1010stdenvNoCC.mkDerivation {
1111 name = "cvs-export";
1212 builder = ./builder.sh;
13− nativeBuildInputs = [cvs];
13+ nativeBuildInputs = [cvs openssh];
1414
1515 outputHashAlgo = "sha256";
1616 outputHashMode = "recursive";
1717 outputHash = sha256;
18−
18+
1919 inherit cvsRoot module sha256 tag date;
2020}