hadoop: fix build on darwin

+4 -3
+1 -1
pkgs/applications/networking/cluster/hadoop/containerExecutor.nix
··· 32 32 ''; 33 33 34 34 maintainers = with maintainers; [ illustris ]; 35 - platforms = attrNames platformAttrs; 35 + platforms = filter (strings.hasSuffix "linux") (attrNames platformAttrs); 36 36 }; 37 37 })
+3 -2
pkgs/applications/networking/cluster/hadoop/default.nix
··· 40 40 doCheck = true; 41 41 42 42 # Build the container executor binary from source 43 - containerExecutor = callPackage ./containerExecutor.nix { 43 + # InstallPhase is not lazily evaluating containerExecutor for some reason 44 + containerExecutor = if stdenv.isLinux then (callPackage ./containerExecutor.nix { 44 45 inherit (finalAttrs) version; 45 46 inherit platformAttrs; 46 - }; 47 + }) else ""; 47 48 48 49 nativeBuildInputs = [ makeWrapper ] 49 50 ++ optionals stdenv.isLinux [ autoPatchelfHook ];