jellyfin: use dotnet runtime instead of sdk

This commit is contained in:
nyanloutre 2020-01-18 02:53:02 +01:00 committed by Jon
parent 1946f0ece8
commit 1156930744

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, unzip, sqlite, makeWrapper, dotnet-sdk, ffmpeg,
{ stdenv, lib, fetchurl, unzip, sqlite, makeWrapper, dotnet-netcore, ffmpeg,
fontconfig, freetype }:
let
@ -32,7 +32,7 @@ in stdenv.mkDerivation rec {
];
propagatedBuildInputs = [
dotnet-sdk
dotnet-netcore
sqlite
];
@ -42,7 +42,7 @@ in stdenv.mkDerivation rec {
install -dm 755 "$out/opt/jellyfin"
cp -r * "$out/opt/jellyfin"
makeWrapper "${dotnet-sdk}/bin/dotnet" $out/bin/jellyfin \
makeWrapper "${dotnet-netcore}/bin/dotnet" $out/bin/jellyfin \
--prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [
sqlite fontconfig freetype stdenv.cc.cc.lib
]}:$out/opt/jellyfin/runtimes/${runtimeDir}/native/" \