rio: fix darwin build by providing libutil

https://hydra.nixos.org/build/276908293
This commit is contained in:
Olivér Falvai 2024-11-04 08:58:53 +01:00
parent 577c9affbf
commit 254bf2a34b
No known key found for this signature in database

View File

@ -31,13 +31,7 @@
, rio
}:
let
rlinkLibs = if stdenv.hostPlatform.isDarwin then [
darwin.libobjc
darwin.apple_sdk_11_0.frameworks.AppKit
darwin.apple_sdk_11_0.frameworks.AVFoundation
darwin.apple_sdk_11_0.frameworks.MetalKit
darwin.apple_sdk_11_0.frameworks.Vision
] else [
rlinkLibs = lib.optionals stdenv.hostPlatform.isLinux [
(lib.getLib gcc-unwrapped)
fontconfig
libGL
@ -76,7 +70,9 @@ rustPlatform.buildRustPackage rec {
runtimeDependencies = rlinkLibs;
buildInputs = rlinkLibs;
buildInputs = rlinkLibs ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.libutil
];
outputs = [ "out" "terminfo" ];