about summary refs log tree commit diff
path: root/pkgs/applications/networking
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-04-17 10:41:12 -0500
committerGitHub <noreply@github.com>2018-04-17 10:41:12 -0500
commit2f0f9b4d0fd4f2d0485289e163d2f0c88e90a778 (patch)
treea79bc7c086c388890483a8b4328b28b6732c83e5 /pkgs/applications/networking
parent9e01411a7cf3462f17ed44a8fcb6c5da664e3ca6 (diff)
parent006332d8acf011bb119448f3b58db24e00366f63 (diff)
downloadnixlib-2f0f9b4d0fd4f2d0485289e163d2f0c88e90a778.tar
nixlib-2f0f9b4d0fd4f2d0485289e163d2f0c88e90a778.tar.gz
nixlib-2f0f9b4d0fd4f2d0485289e163d2f0c88e90a778.tar.bz2
nixlib-2f0f9b4d0fd4f2d0485289e163d2f0c88e90a778.tar.lz
nixlib-2f0f9b4d0fd4f2d0485289e163d2f0c88e90a778.tar.xz
nixlib-2f0f9b4d0fd4f2d0485289e163d2f0c88e90a778.tar.zst
nixlib-2f0f9b4d0fd4f2d0485289e163d2f0c88e90a778.zip
Merge pull request #37512 from MHOOO/patch-1
Fix spark scripts that use dirname
Diffstat (limited to 'pkgs/applications/networking')
-rw-r--r--pkgs/applications/networking/cluster/spark/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/networking/cluster/spark/default.nix b/pkgs/applications/networking/cluster/spark/default.nix
index 99b7566fc713..2b36d7c5647a 100644
--- a/pkgs/applications/networking/cluster/spark/default.nix
+++ b/pkgs/applications/networking/cluster/spark/default.nix
@@ -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
   '';