hadoop: fix build on darwin

This commit is contained in:
illustris 2023-10-09 18:49:06 +05:30
parent 21fa56c145
commit b1926f189e
No known key found for this signature in database
GPG Key ID: 56C8FC0B899FEFA3
2 changed files with 4 additions and 3 deletions

View File

@ -32,6 +32,6 @@ stdenv.mkDerivation (finalAttrs: {
'';
maintainers = with maintainers; [ illustris ];
platforms = attrNames platformAttrs;
platforms = filter (strings.hasSuffix "linux") (attrNames platformAttrs);
};
})

View File

@ -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 ];