emby: 3.0.5934 -> 3.0.5971 (#15698)
Emby is now build from source instead of relying on the pre-made binaries released on GitHub.
This commit is contained in:
parent
2fb4b797a1
commit
fcdac347cf
@ -1,28 +1,28 @@
|
|||||||
{ stdenv, fetchurl, unzip, sqlite }:
|
{ stdenv, fetchurl, pkgs, ... }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "emby-${version}";
|
name = "emby-${version}";
|
||||||
version = "3.0.5934";
|
version = "3.0.5971";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/MediaBrowser/Emby/releases/download/${version}/Emby.Mono.zip";
|
url = "https://github.com/MediaBrowser/Emby/archive/${version}.tar.gz";
|
||||||
sha256 = "1yjplz7i0lwxjnmrra33xxsvza6gj4dblsl4rqjq1qv6i0jarfv1";
|
sha256 = "1ahx8y8l7hybkq6wy83cpgnc741q7583lp6h7qnin6x73l2wq2i8";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ unzip ];
|
propagatedBuildInputs = with pkgs; [
|
||||||
propagatedBuildInputs = [ sqlite ];
|
mono
|
||||||
|
sqlite
|
||||||
|
];
|
||||||
|
|
||||||
# Need to set sourceRoot as unpacker will complain about multiple directory output
|
buildPhase = ''
|
||||||
sourceRoot = ".";
|
xbuild /p:Configuration="Release Mono" /p:Platform="Any CPU" /t:build MediaBrowser.Mono.sln
|
||||||
|
substituteInPlace MediaBrowser.Server.Mono/bin/Release\ Mono/System.Data.SQLite.dll.config --replace libsqlite3.so ${pkgs.sqlite.out}/lib/libsqlite3.so
|
||||||
patchPhase = ''
|
substituteInPlace MediaBrowser.Server.Mono/bin/Release\ Mono/MediaBrowser.Server.Mono.exe.config --replace ProgramData-Server "/var/lib/emby/ProgramData-Server"
|
||||||
substituteInPlace System.Data.SQLite.dll.config --replace libsqlite3.so ${sqlite.out}/lib/libsqlite3.so
|
|
||||||
substituteInPlace MediaBrowser.Server.Mono.exe.config --replace ProgramData-Server "/var/lib/emby/ProgramData-Server"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp -r * $out/bin
|
cp -r MediaBrowser.Server.Mono/bin/Release\ Mono/* $out/bin/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user