Fix spark scripts that use dirname

This commit is contained in:
Thomas Karolski 2018-03-21 01:57:58 +01:00 committed by GitHub
parent 1c810f5f83
commit 006332d8ac
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
'';