16 pname = "jellyfin-web";
20 assert version == jellyfin.version;
23 repo = "jellyfin-web";
25 hash = "sha256-+f+chR00eDCVZvAGNDB61c0htsVvqFK62oZorW3Qdsg=";
29 substituteInPlace webpack.common.js \
30 --replace-fail "git describe --always --dirty" "echo ${src.rev}" \
33 npmDepsHash = "sha256-kL57KmBHmBwJEhsUciPaj826qdoSQxZXxtFNGkddGZk=";
36 # using sass-embedded fails at executing node_modules/sass-embedded-linux-x64/dart-sass/src/dart
37 rm -r node_modules/sass-embedded*
40 npmBuildScript = [ "build:production" ];
42 nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcbuild ];
46 ++ lib.optionals stdenv.hostPlatform.isDarwin [
49 # node-canvas builds code that requires aligned_alloc,
50 # which on Darwin requires at least the 10.15 SDK
51 (darwinMinVersionHook "10.15")
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; [