nixpkgs/pkgs/servers/jellyfin/web.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
851 B
Nix
Raw Normal View History

2021-04-24 11:43:32 +00:00
{ lib
, fetchFromGitHub
, stdenv
2023-05-07 08:40:00 +00:00
, buildNpmPackage
, nix-update-script
2021-04-24 11:43:32 +00:00
}:
2023-05-07 08:40:00 +00:00
buildNpmPackage rec {
2021-04-24 11:43:32 +00:00
pname = "jellyfin-web";
2023-04-23 15:57:44 +00:00
version = "10.8.10";
2021-04-24 11:43:32 +00:00
src = fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin-web";
rev = "v${version}";
2023-05-07 08:40:00 +00:00
hash = "sha256-fJmGiHLwhgd3Ac7ggCbkMu6llob3qN87EpHpCO4K29I=";
2021-04-24 11:43:32 +00:00
};
2023-05-07 08:40:00 +00:00
npmDepsHash = "sha256-X8a/pmQGAhoGKhThJ86b50sf0nlsCXGgvLQaxRsmA5Q=";
2021-04-24 11:43:32 +00:00
2023-05-07 08:40:00 +00:00
npmBuildScript = [ "build:production" ];
2021-04-24 11:43:32 +00:00
installPhase = ''
runHook preInstall
mkdir -p $out/share
cp -a dist $out/share/jellyfin-web
runHook postInstall
'';
2023-05-07 08:40:00 +00:00
passthru.updateScript = nix-update-script {};
2021-04-24 11:43:32 +00:00
meta = with lib; {
description = "Web Client for Jellyfin";
homepage = "https://jellyfin.org/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ nyanloutre minijackson purcell jojosch ];
};
}