2016-10-03 13:14:46 +03:00
|
|
|
{ stdenv, fetchurl, pkgs, makeWrapper, mono, ffmpeg, ... }:
|
2016-04-23 16:08:45 +03:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "emby-${version}";
|
2016-11-03 22:53:28 +03:00
|
|
|
version = "3.0.8500";
|
2016-04-23 16:08:45 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-05-25 22:23:42 +03:00
|
|
|
url = "https://github.com/MediaBrowser/Emby/archive/${version}.tar.gz";
|
2016-11-03 22:53:28 +03:00
|
|
|
sha256 = "0vm2yvwyhswsp31g48qdzm17c4p7c25vyiy1029hgy8nd5qy4shc";
|
2016-04-23 16:08:45 +03:00
|
|
|
};
|
|
|
|
|
2016-10-03 13:14:46 +03:00
|
|
|
buildInputs = with pkgs; [
|
|
|
|
makeWrapper
|
|
|
|
];
|
2016-05-25 22:23:42 +03:00
|
|
|
propagatedBuildInputs = with pkgs; [
|
|
|
|
mono
|
|
|
|
sqlite
|
|
|
|
];
|
2016-04-23 16:08:45 +03:00
|
|
|
|
2016-05-25 22:23:42 +03:00
|
|
|
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"
|
2016-04-23 16:08:45 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2016-05-25 22:23:42 +03:00
|
|
|
cp -r MediaBrowser.Server.Mono/bin/Release\ Mono/* $out/bin/
|
2016-10-03 13:14:46 +03:00
|
|
|
|
|
|
|
makeWrapper "${mono}/bin/mono" $out/bin/MediaBrowser.Server.Mono \
|
|
|
|
--add-flags "$out/bin/MediaBrowser.Server.Mono.exe -ffmpeg ${ffmpeg}/bin/ffmpeg -ffprobe ${ffmpeg}/bin/ffprobe"
|
2016-04-23 16:08:45 +03:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "MediaBrowser - Bring together your videos, music, photos, and live television";
|
|
|
|
homepage = http://emby.media/;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.fadenb ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|