From fefde6c13541500dcd85c56f3900d757808a5d06 Mon Sep 17 00:00:00 2001 From: illustris Date: Sat, 4 Nov 2023 19:30:56 +0530 Subject: spark: remove with; to avoid ambiguity --- pkgs/applications/networking/cluster/spark/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'pkgs/applications/networking/cluster') diff --git a/pkgs/applications/networking/cluster/spark/default.nix b/pkgs/applications/networking/cluster/spark/default.nix index bd10b78c1f6a4..3d6c620cb9382 100644 --- a/pkgs/applications/networking/cluster/spark/default.nix +++ b/pkgs/applications/networking/cluster/spark/default.nix @@ -22,20 +22,20 @@ let inherit (finalAttrs) hash; }; nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ finalAttrs.jdk finalAttrs.pysparkPython ] - ++ lib.optional RSupport R; + buildInputs = with finalAttrs; [ jdk pysparkPython ] + ++ lib.optional RSupport finalAttrs.R; - installPhase = with finalAttrs; '' + installPhase = '' mkdir -p "$out/opt" mv * $out/ for n in $(find $out/bin -type f -executable ! -name "find-spark-home"); do - wrapProgram "$n" --set JAVA_HOME "${jdk}" \ + wrapProgram "$n" --set JAVA_HOME "${finalAttrs.jdk}" \ --run "[ -z $SPARK_DIST_CLASSPATH ] && export SPARK_DIST_CLASSPATH=$(${finalAttrs.hadoop}/bin/hadoop classpath)" \ - ${lib.optionalString RSupport ''--set SPARKR_R_SHELL "${R}/bin/R"''} \ + ${lib.optionalString RSupport ''--set SPARKR_R_SHELL "${finalAttrs.R}/bin/R"''} \ --prefix PATH : "${ lib.makeBinPath ( - [ pysparkPython ] ++ - (lib.optionals RSupport [ R ]) + [ finalAttrs.pysparkPython ] ++ + (lib.optionals RSupport [ finalAttrs.R ]) )}" done ln -s ${finalAttrs.hadoop} "$out/opt/hadoop" -- cgit 1.4.1