libplacebo: fix build on darwin

This commit is contained in:
Weijia Wang 2024-01-27 18:04:08 +01:00
parent ff9169be93
commit cab9c0100d
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation (finalAttrs: {
pname = "fast-float";
version = "6.0.0";
src = fetchFromGitHub {
owner = "fastfloat";
repo = "fast_float";
rev = "v${finalAttrs.version}";
hash = "sha256-yKHmturouLJkBAdIWoi8vhmipP6jxAwyA+YoSOl6xPU=";
};
nativeBuildInputs = [
cmake
];
meta = {
description = "Fast and exact implementation of the C++ from_chars functions for number types";
homepage = "https://github.com/fastfloat/fast_float";
license = with lib.licenses; [ asl20 boost mit ];
maintainers = with lib.maintainers; [ wegank ];
platforms = lib.platforms.all;
};
})

View File

@ -14,6 +14,7 @@
, libunwind
, libdovi
, xxHash
, fast-float
}:
stdenv.mkDerivation rec {
@ -46,6 +47,8 @@ stdenv.mkDerivation rec {
libunwind
libdovi
xxHash
] ++ lib.optionals (!stdenv.cc.isGNU) [
fast-float
];
mesonFlags = with lib; [