diff --git a/pkgs/by-name/ro/root/package.nix b/pkgs/by-name/ro/root/package.nix index f2fae91697c3..0d2aae4a19e1 100644 --- a/pkgs/by-name/ro/root/package.nix +++ b/pkgs/by-name/ro/root/package.nix @@ -51,6 +51,7 @@ patchRcPathPosix, onetbb, xrootd, + freetype, }: stdenv.mkDerivation (finalAttrs: { @@ -117,7 +118,10 @@ stdenv.mkDerivation (finalAttrs: { zlib zstd ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ apple-sdk.privateFrameworksHook ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + apple-sdk.privateFrameworksHook + freetype + ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ libGLU libGL @@ -138,11 +142,6 @@ stdenv.mkDerivation (finalAttrs: { patchShebangs cmake/unix/ '' - + lib.optionalString stdenv.hostPlatform.isDarwin '' - # Eliminate impure reference to /System/Library/PrivateFrameworks - substituteInPlace core/macosx/CMakeLists.txt \ - --replace-fail "-F/System/Library/PrivateFrameworks " "" - '' + lib.optionalString (stdenv.hostPlatform.isDarwin && lib.versionAtLeast stdenv.hostPlatform.darwinMinVersion "11")