Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
75 lines
1.5 KiB
Nix
75 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
buildNpmPackage,
|
|
nodejs_20,
|
|
nix-update-script,
|
|
pkg-config,
|
|
xcbuild,
|
|
pango,
|
|
giflib,
|
|
jellyfin,
|
|
}:
|
|
buildNpmPackage rec {
|
|
pname = "jellyfin-web";
|
|
version = "10.10.7";
|
|
|
|
src =
|
|
assert version == jellyfin.version;
|
|
fetchFromGitHub {
|
|
owner = "jellyfin";
|
|
repo = "jellyfin-web";
|
|
rev = "v${version}";
|
|
hash = "sha256-jX9Qut8YsJRyKI2L7Aww4+6G8z741WzN37CUx3KWQfY=";
|
|
};
|
|
|
|
nodejs = nodejs_20; # does not build with 22
|
|
|
|
postPatch = ''
|
|
substituteInPlace webpack.common.js \
|
|
--replace-fail "git describe --always --dirty" "echo ${src.rev}" \
|
|
'';
|
|
|
|
npmDepsHash = "sha256-nfvqVByD3Kweq+nFJQY4R2uRX3mx/qJvGFiKiOyMUdw=";
|
|
|
|
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.hostPlatform.isDarwin [ xcbuild ];
|
|
|
|
buildInputs = [
|
|
pango
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
giflib
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share
|
|
cp -a dist $out/share/jellyfin-web
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "Web Client for Jellyfin";
|
|
homepage = "https://jellyfin.org/";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [
|
|
nyanloutre
|
|
minijackson
|
|
purcell
|
|
jojosch
|
|
];
|
|
};
|
|
}
|