openlibm: fix runtime error on darwin

This commit is contained in:
Weijia Wang
2025-03-18 00:21:11 +01:00
parent 779e2c818f
commit a39dffdbb5
+5
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fixDarwinDylibNames,
}:
stdenv.mkDerivation rec {
@@ -15,6 +16,10 @@ stdenv.mkDerivation rec {
sha256 = "sha256-HFSRrTdIhbbSyeU/FSo5e2ZI5tff2ZDEFgYcI412ATU=";
};
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
fixDarwinDylibNames
];
makeFlags = [
"prefix=$(out)"
"CC=${stdenv.cc.targetPrefix}cc"