mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
64 lines
1.5 KiB
Nix
64 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
nixosTests,
|
|
dotnetCorePackages,
|
|
buildDotnetModule,
|
|
jellyfin-ffmpeg,
|
|
fontconfig,
|
|
freetype,
|
|
jellyfin-web,
|
|
sqlite,
|
|
}:
|
|
|
|
buildDotnetModule rec {
|
|
pname = "jellyfin";
|
|
version = "10.9.11"; # ensure that jellyfin-web has matching version
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jellyfin";
|
|
repo = "jellyfin";
|
|
rev = "v${version}";
|
|
hash = "sha256-gZJIsNKXwhUUVgJh8vXuGSu9DEyrVY8NuIeyZHHQKN4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ sqlite ];
|
|
|
|
projectFile = "Jellyfin.Server/Jellyfin.Server.csproj";
|
|
executables = [ "jellyfin" ];
|
|
nugetDeps = ./nuget-deps.nix;
|
|
runtimeDeps = [
|
|
jellyfin-ffmpeg
|
|
fontconfig
|
|
freetype
|
|
];
|
|
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_8_0;
|
|
dotnetBuildFlags = [ "--no-self-contained" ];
|
|
|
|
makeWrapperArgs = [
|
|
"--add-flags" "--ffmpeg=${jellyfin-ffmpeg}/bin/ffmpeg"
|
|
"--add-flags" "--webdir=${jellyfin-web}/share/jellyfin-web"
|
|
];
|
|
|
|
passthru.tests = {
|
|
smoke-test = nixosTests.jellyfin;
|
|
};
|
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
meta = with lib; {
|
|
description = "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
|
|
];
|
|
mainProgram = "jellyfin";
|
|
platforms = dotnet-runtime.meta.platforms;
|
|
};
|
|
}
|