mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
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 changed files with 13 additions and 13 deletions
|
@ -1,28 +1,28 @@
|
|||
{ stdenv, fetchurl, unzip, sqlite }:
|
||||
{ stdenv, fetchurl, pkgs, ... }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "emby-${version}";
|
||||
version = "3.0.5934";
|
||||
version = "3.0.5971";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/MediaBrowser/Emby/releases/download/${version}/Emby.Mono.zip";
|
||||
sha256 = "1yjplz7i0lwxjnmrra33xxsvza6gj4dblsl4rqjq1qv6i0jarfv1";
|
||||
url = "https://github.com/MediaBrowser/Emby/archive/${version}.tar.gz";
|
||||
sha256 = "1ahx8y8l7hybkq6wy83cpgnc741q7583lp6h7qnin6x73l2wq2i8";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
propagatedBuildInputs = [ sqlite ];
|
||||
propagatedBuildInputs = with pkgs; [
|
||||
mono
|
||||
sqlite
|
||||
];
|
||||
|
||||
# Need to set sourceRoot as unpacker will complain about multiple directory output
|
||||
sourceRoot = ".";
|
||||
|
||||
patchPhase = ''
|
||||
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"
|
||||
buildPhase = ''
|
||||
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
|
||||
substituteInPlace MediaBrowser.Server.Mono/bin/Release\ Mono/MediaBrowser.Server.Mono.exe.config --replace ProgramData-Server "/var/lib/emby/ProgramData-Server"
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -r * $out/bin
|
||||
cp -r MediaBrowser.Server.Mono/bin/Release\ Mono/* $out/bin/
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Reference in a new issue