WIP emby: 3.5.2.0 -> 3.5.3.0
This commit is contained in:
parent
baacbcd2a0
commit
6e8da1ddf0
|
@ -1,8 +1,8 @@
|
||||||
{ stdenv, fetchurl, unzip, sqlite, makeWrapper, mono54, ffmpeg }:
|
{ stdenv, fetchurl, unzip, sqlite, makeWrapper, dotnet-sdk, ffmpeg }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "emby-${version}";
|
name = "emby-${version}";
|
||||||
version = "3.5.2.0";
|
version = "3.5.3.0";
|
||||||
|
|
||||||
# We are fetching a binary here, however, a source build is possible.
|
# We are fetching a binary here, however, a source build is possible.
|
||||||
# See -> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=emby-server-git#n43
|
# See -> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=emby-server-git#n43
|
||||||
|
@ -11,8 +11,8 @@ stdenv.mkDerivation rec {
|
||||||
# This may also need msbuild (instead of xbuild) which isn't in nixpkgs
|
# This may also need msbuild (instead of xbuild) which isn't in nixpkgs
|
||||||
# See -> https://github.com/NixOS/nixpkgs/issues/29817
|
# See -> https://github.com/NixOS/nixpkgs/issues/29817
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/MediaBrowser/Emby.Releases/releases/download/${version}/embyserver-mono_${version}.zip";
|
url = "https://github.com/MediaBrowser/Emby.Releases/releases/download/${version}/embyserver-netcore_${version}.zip";
|
||||||
sha256 = "12f9skvnr9qxnrvr3q014yggfwvkpjk0ynbgf0fwk56h4kal7fx8";
|
sha256 = "0311af3q813cx0ykbdk9vkmnyqi2l8rx66jnvdkw927q6invnnpj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -21,26 +21,22 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
mono54
|
dotnet-sdk
|
||||||
sqlite
|
sqlite
|
||||||
];
|
];
|
||||||
|
|
||||||
preferLocalBuild = true;
|
preferLocalBuild = true;
|
||||||
|
|
||||||
# Need to set sourceRoot as unpacker will complain about multiple directory output
|
|
||||||
sourceRoot = ".";
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
substituteInPlace SQLitePCLRaw.provider.sqlite3.dll.config --replace libsqlite3.so ${sqlite.out}/lib/libsqlite3.so
|
rm -rf {electron,runtimes}
|
||||||
substituteInPlace MediaBrowser.Server.Mono.exe.config --replace ProgramData-Server "/var/lib/emby/ProgramData-Server"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out/bin"
|
install -dm 755 "$out/usr/lib/emby-server"
|
||||||
cp -r * "$out/bin"
|
cp -r * "$out/usr/lib/emby-server"
|
||||||
|
|
||||||
makeWrapper "${mono54}/bin/mono" $out/bin/MediaBrowser.Server.Mono \
|
makeWrapper "${dotnet-sdk}/bin/dotnet" $out/bin/emby \
|
||||||
--add-flags "$out/bin/MediaBrowser.Server.Mono.exe -ffmpeg ${ffmpeg}/bin/ffmpeg -ffprobe ${ffmpeg}/bin/ffprobe"
|
--add-flags "$out/usr/lib/emby-server/EmbyServer.dll -programdata /var/lib/emby/ProgramData-Server -ffmpeg ${ffmpeg}/bin/ffmpeg -ffprobe ${ffmpeg}/bin/ffprobe"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in a new issue