diff options
Diffstat (limited to 'pkgs/by-name/je/jellyfin-web/package.nix')
-rw-r--r-- | pkgs/by-name/je/jellyfin-web/package.nix | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/pkgs/by-name/je/jellyfin-web/package.nix b/pkgs/by-name/je/jellyfin-web/package.nix index c1f81ee3f2f5..6cfa106b603c 100644 --- a/pkgs/by-name/je/jellyfin-web/package.nix +++ b/pkgs/by-name/je/jellyfin-web/package.nix @@ -1,33 +1,20 @@ { lib, stdenv, - overrideSDK, fetchFromGitHub, buildNpmPackage, - jellyfin, nix-update-script, pkg-config, xcbuild, pango, giflib, - darwin, + apple-sdk_11, + darwinMinVersionHook, + jellyfin, }: -let - # node-canvas builds code that requires aligned_alloc, - # which on Darwin requires at least the 10.15 SDK - stdenv' = - if stdenv.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.9.11"; + version = "10.10.1"; src = assert version == jellyfin.version; @@ -35,20 +22,33 @@ buildNpmPackage' rec { owner = "jellyfin"; repo = "jellyfin-web"; rev = "v${version}"; - hash = "sha256-zt0Exx/4B5gqiN3fxvQuVh1MqRNNtJG6/G0/reqVHRc="; + hash = "sha256-+f+chR00eDCVZvAGNDB61c0htsVvqFK62oZorW3Qdsg="; }; - npmDepsHash = "sha256-kQxfh8o8NBshKmmjQrLdxiOQK83LG+lxhZwzDkEJwEo="; + postPatch = '' + substituteInPlace webpack.common.js \ + --replace-fail "git describe --always --dirty" "echo ${src.rev}" \ + ''; + + npmDepsHash = "sha256-kL57KmBHmBwJEhsUciPaj826qdoSQxZXxtFNGkddGZk="; + + preBuild = '' + # using sass-embedded fails at executing node_modules/sass-embedded-linux-x64/dart-sass/src/dart + rm -r node_modules/sass-embedded* + ''; npmBuildScript = [ "build:production" ]; - nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; + nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcbuild ]; buildInputs = [ pango ] - ++ lib.optionals stdenv.isDarwin [ + ++ 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 = '' |