summary refs log tree commit diff
path: root/pkgs/build-support/fetchcvs
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-02-08 19:18:17 +0100
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-02-08 19:18:17 +0100
commitd026bfba046053a6cc46fa7db938b2c264d42c02 (patch)
tree896d25e836ea34e71d2e8e7acfc010909a32c5c1 /pkgs/build-support/fetchcvs
parent93498b15264bb796d4ff3a08971b96847cdd9391 (diff)
downloadnixpkgs-d026bfba046053a6cc46fa7db938b2c264d42c02.tar
nixpkgs-d026bfba046053a6cc46fa7db938b2c264d42c02.tar.gz
nixpkgs-d026bfba046053a6cc46fa7db938b2c264d42c02.tar.bz2
nixpkgs-d026bfba046053a6cc46fa7db938b2c264d42c02.tar.lz
nixpkgs-d026bfba046053a6cc46fa7db938b2c264d42c02.tar.xz
nixpkgs-d026bfba046053a6cc46fa7db938b2c264d42c02.tar.zst
nixpkgs-d026bfba046053a6cc46fa7db938b2c264d42c02.zip
fetchcvs: fix ssh wrapper failing due to missing /usr/bin/env
/usr/bin/env seems to be no longer be present in the sandbox. This means
that fetchcvs would fail with a “not found error” whenever CVS_RSH was
necessary.

We fix this by simply setting the current $SHELL as shebang.
Alternatively also setting it to /bin/sh statically would be possible.
Diffstat (limited to 'pkgs/build-support/fetchcvs')
-rw-r--r--pkgs/build-support/fetchcvs/builder.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchcvs/builder.sh b/pkgs/build-support/fetchcvs/builder.sh
index 0975c347882..fe1019aafc2 100644
--- a/pkgs/build-support/fetchcvs/builder.sh
+++ b/pkgs/build-support/fetchcvs/builder.sh
@@ -1,6 +1,6 @@
 source $stdenv/setup
 
-(echo '#!/usr/bin/env sh'; \
+(echo "#!$SHELL"; \
  echo 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"') > ssh
 chmod +x ssh
 export CVS_RSH=$PWD/ssh