spark_4_0: init at 4.0.1

This commit is contained in:
C4 Patino
2025-09-07 17:45:37 -05:00
parent c3713cbb4e
commit 5874ae3211
2 changed files with 19 additions and 2 deletions

View File

@@ -8,6 +8,8 @@
RSupport ? true,
R,
nixosTests,
# needeed in situations where hadoop's jdk version is too old
jdk21_headless,
}:
let
@@ -28,7 +30,15 @@ let
R
pysparkPython
;
inherit (finalAttrs.hadoop) jdk;
jdk =
if
(
(lib.versionAtLeast finalAttrs.version "4") && (lib.versionOlder finalAttrs.hadoop.jdk.version "21")
)
then
jdk21_headless
else
finalAttrs.hadoop.jdk;
src = fetchzip {
url =
with finalAttrs;
@@ -96,12 +106,17 @@ in
# we strictly adhere to the EOL timeline, despite 3.3.4 being released one day before (2023-12-08).
# A better policy is to keep these versions around, and clean up EOL versions just before
# a new NixOS release.
spark_4_0 = spark {
pname = "spark";
version = "4.0.1";
hash = "sha256-AW+EQ83b4orJO3+dUPPDlTRAH/D94U7KQBKvKjguChY=";
};
spark_3_5 = spark {
pname = "spark";
version = "3.5.5";
hash = "sha256-vzcWgIfHPhN3nyrxdk3f0p4fW3MpQ+FuEPnWPw0xNPg=";
};
spark_3_4 = spark rec {
spark_3_4 = spark {
pname = "spark";
version = "3.4.4";
hash = "sha256-GItHmthLhG7y0XSF3QINCyE7wYFb0+lPZmYLUuMa4Ww=";

View File

@@ -6359,11 +6359,13 @@ with pkgs;
samplebrain = libsForQt5.callPackage ../applications/audio/samplebrain { };
inherit (callPackages ../applications/networking/cluster/spark { })
spark_4_0
spark_3_5
spark_3_4
;
spark3 = spark_3_5;
spark = spark3;
spark4 = spark_4_0;
inherit
({