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 13:43:32 +02:00
{ lib
, fetchFromGitHub
, stdenv
2023-05-07 10:40:00 +02:00
, buildNpmPackage
, nix-update-script
2021-04-24 13:43:32 +02:00
}:
2023-05-07 10:40:00 +02:00
buildNpmPackage rec {
2021-04-24 13:43:32 +02:00
pname = "jellyfin-web";
2023-11-20 00:47:44 +01:00
version = "10.8.12";
2021-04-24 13:43:32 +02:00
src = fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin-web";
rev = "v${version}";
2023-11-20 00:47:44 +01:00
hash = "sha256-T5MACoNg6yADfM7eike3f6V/ELZXrZYP+3Cz6ea8WtQ=";
2021-04-24 13:43:32 +02:00
};
2023-11-20 00:47:44 +01:00
npmDepsHash = "sha256-s+14x/jucCAxDWlQjCngjGtLB+4PCuO6R0qxP+SZ1+s=";
2021-04-24 13:43:32 +02:00
2023-05-07 10:40:00 +02:00
npmBuildScript = [ "build:production" ];
2021-04-24 13:43:32 +02:00
installPhase = ''
runHook preInstall
mkdir -p $out/share
cp -a dist $out/share/jellyfin-web
runHook postInstall
'';
2023-05-07 10:40:00 +02:00
passthru.updateScript = nix-update-script {};
2021-04-24 13:43:32 +02:00
meta = with lib; {
description = "Web Client for Jellyfin";
homepage = "https://jellyfin.org/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ nyanloutre minijackson purcell jojosch ];
};
}