nixpkgs/pkgs/by-name/je/jellyfin/package.nix

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

65 lines
1.5 KiB
Nix
Raw Normal View History

{
lib,
fetchFromGitHub,
nixosTests,
dotnetCorePackages,
buildDotnetModule,
jellyfin-ffmpeg,
fontconfig,
freetype,
jellyfin-web,
sqlite,
2021-04-24 11:43:46 +00:00
}:
2022-03-28 08:48:16 +00:00
buildDotnetModule rec {
2019-03-07 21:22:37 +00:00
pname = "jellyfin";
version = "10.9.7"; # ensure that jellyfin-web has matching version
2019-03-07 21:22:37 +00:00
2021-04-24 11:43:46 +00:00
src = fetchFromGitHub {
owner = "jellyfin";
repo = "jellyfin";
rev = "v${version}";
sha256 = "sha256-jxOFbmYrgxP6jbjnWubajqXInLXu7TO4vssU4E1oeoc=";
2019-03-07 21:22:37 +00:00
};
propagatedBuildInputs = [ sqlite ];
2019-03-07 21:22:37 +00:00
2022-03-28 08:48:16 +00:00
projectFile = "Jellyfin.Server/Jellyfin.Server.csproj";
executables = [ "jellyfin" ];
nugetDeps = ./nuget-deps.nix;
runtimeDeps = [
jellyfin-ffmpeg
2022-03-28 08:48:16 +00:00
fontconfig
freetype
];
2024-05-11 20:49:26 +00:00
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
2022-03-28 08:48:16 +00:00
dotnetBuildFlags = [ "--no-self-contained" ];
makeWrapperArgs = [
"--add-flags" "--ffmpeg=${jellyfin-ffmpeg}/bin/ffmpeg"
"--add-flags" "--webdir=${jellyfin-web}/share/jellyfin-web"
];
2019-03-07 21:22:37 +00:00
2020-04-13 10:47:26 +00:00
passthru.tests = {
smoke-test = nixosTests.jellyfin;
};
2021-04-24 11:43:46 +00:00
passthru.updateScript = ./update.sh;
meta = with lib; {
2019-03-07 21:22:37 +00:00
description = "The Free Software Media System";
homepage = "https://jellyfin.org/";
# https://github.com/jellyfin/jellyfin/issues/610#issuecomment-537625510
license = licenses.gpl2Plus;
maintainers = with maintainers; [
nyanloutre
minijackson
purcell
jojosch
];
2024-01-20 23:04:58 +00:00
mainProgram = "jellyfin";
2022-03-28 08:48:16 +00:00
platforms = dotnet-runtime.meta.platforms;
2019-03-07 21:22:37 +00:00
};
}