16 # node-canvas builds code that requires aligned_alloc,
17 # which on Darwin requires at least the 10.15 SDK
19 if stdenv.isDarwin then
21 darwinMinVersion = "10.15";
22 darwinSdkVersion = "11.0";
26 buildNpmPackage' = buildNpmPackage.override { stdenv = stdenv'; };
28 buildNpmPackage' rec {
29 pname = "jellyfin-web";
33 assert version == jellyfin.version;
36 repo = "jellyfin-web";
38 hash = "sha256-vjp96NTcSY1Uj1PeEOPIdZuMFNcO3ZyjRvYYT0AQCrk=";
41 npmDepsHash = "sha256-CKUssg4YWZd2Gzz7FtO5zA4ngQeLXkFu0VskXrFNwjM=";
43 npmBuildScript = [ "build:production" ];
45 nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.isDarwin [ xcbuild ];
49 ++ lib.optionals stdenv.isDarwin [
51 darwin.apple_sdk.frameworks.CoreText
58 cp -a dist $out/share/jellyfin-web
63 passthru.updateScript = nix-update-script { };
66 description = "Web Client for Jellyfin";
67 homepage = "https://jellyfin.org/";
68 license = licenses.gpl2Plus;
69 maintainers = with maintainers; [