about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/hadoop
diff options
context:
space:
mode:
authorillustris <rharikrishnan95@gmail.com>2023-10-09 18:49:06 +0530
committerillustris <rharikrishnan95@gmail.com>2023-10-09 18:49:06 +0530
commitb1926f189e4122460af0e7dd49f5c700bf957c97 (patch)
tree79cd1eecbcc13cc06c60c7243dc456d22aaadb5f /pkgs/applications/networking/cluster/hadoop
parent21fa56c145258730be931cb870094b87997429cf (diff)
hadoop: fix build on darwin
Diffstat (limited to 'pkgs/applications/networking/cluster/hadoop')
-rw-r--r--pkgs/applications/networking/cluster/hadoop/containerExecutor.nix2
-rw-r--r--pkgs/applications/networking/cluster/hadoop/default.nix5
2 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/applications/networking/cluster/hadoop/containerExecutor.nix b/pkgs/applications/networking/cluster/hadoop/containerExecutor.nix
index 3845026fd4a36..83f2fe971d41e 100644
--- a/pkgs/applications/networking/cluster/hadoop/containerExecutor.nix
+++ b/pkgs/applications/networking/cluster/hadoop/containerExecutor.nix
@@ -32,6 +32,6 @@ stdenv.mkDerivation (finalAttrs: {
     '';
 
     maintainers = with maintainers; [ illustris ];
-    platforms = attrNames platformAttrs;
+    platforms = filter (strings.hasSuffix "linux") (attrNames platformAttrs);
   };
 })
diff --git a/pkgs/applications/networking/cluster/hadoop/default.nix b/pkgs/applications/networking/cluster/hadoop/default.nix
index b36921e89792d..d5bae9ad885b7 100644
--- a/pkgs/applications/networking/cluster/hadoop/default.nix
+++ b/pkgs/applications/networking/cluster/hadoop/default.nix
@@ -40,10 +40,11 @@ let
       doCheck = true;
 
       # Build the container executor binary from source
-      containerExecutor = callPackage ./containerExecutor.nix {
+      # InstallPhase is not lazily evaluating containerExecutor for some reason
+      containerExecutor = if stdenv.isLinux then (callPackage ./containerExecutor.nix {
         inherit (finalAttrs) version;
         inherit platformAttrs;
-      };
+      }) else "";
 
       nativeBuildInputs = [ makeWrapper ]
                           ++ optionals stdenv.isLinux [ autoPatchelfHook ];