hadoop: fix build on darwin

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