Unverified Commit 391e55c2 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

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

parents 49f64e9d 42412a0d
Loading
Loading
Loading
Loading
+7 −17
Original line number Diff line number Diff line
{
  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 = ''