jellyfin-web: switch to apple-sdk_11 (#352923)

This commit is contained in:
Gaétan Lepage
2024-11-07 00:56:45 +01:00
committed by GitHub
+7 -17
View File
@@ -1,7 +1,6 @@
{
lib,
stdenv,
overrideSDK,
fetchFromGitHub,
buildNpmPackage,
jellyfin,
@@ -10,22 +9,10 @@
xcbuild,
pango,
giflib,
darwin,
apple-sdk_11,
darwinMinVersionHook,
}:
let
# node-canvas builds code that requires aligned_alloc,
# which on Darwin requires at least the 10.15 SDK
stdenv' =
if stdenv.hostPlatform.isDarwin then
overrideSDK stdenv {
darwinMinVersion = "10.15";
darwinSdkVersion = "11.0";
}
else
stdenv;
buildNpmPackage' = buildNpmPackage.override { stdenv = stdenv'; };
in
buildNpmPackage' rec {
buildNpmPackage rec {
pname = "jellyfin-web";
version = "10.10.0";
@@ -56,7 +43,10 @@ buildNpmPackage' rec {
[ pango ]
++ lib.optionals stdenv.hostPlatform.isDarwin [
giflib
darwin.apple_sdk.frameworks.CoreText
apple-sdk_11
# node-canvas builds code that requires aligned_alloc,
# which on Darwin requires at least the 10.15 SDK
(darwinMinVersionHook "10.15")
];
installPhase = ''