Merge pull request #37512 from MHOOO/patch-1

Fix spark scripts that use dirname
This commit is contained in:
Matthew Justin Bauer 2018-04-17 10:41:12 -05:00 committed by GitHub
commit 2f0f9b4d0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ stdenv, fetchzip, makeWrapper, jre, pythonPackages
{ stdenv, fetchzip, makeWrapper, jre, pythonPackages, coreutils
, RSupport? true, R
, mesosSupport ? true, mesos
, version
@ -53,6 +53,7 @@ stdenv.mkDerivation rec {
for n in $(find $out/lib/${untarDir}/bin -type f ! -name "*.*"); do
makeWrapper "$n" "$out/bin/$(basename $n)"
substituteInPlace "$n" --replace dirname ${coreutils.out}/bin/dirname
done
ln -s $out/lib/${untarDir}/lib/spark-assembly-*.jar $out/share/java
'';