2016-05-25 21:23:42 +02:00
|
|
|
{ stdenv, fetchurl, pkgs, ... }:
|
2016-04-23 15:08:45 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "emby-${version}";
|
2016-08-13 12:11:17 +02:00
|
|
|
version = "3.0.6060";
|
2016-04-23 15:08:45 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-05-25 21:23:42 +02:00
|
|
|
url = "https://github.com/MediaBrowser/Emby/archive/${version}.tar.gz";
|
2016-08-13 12:11:17 +02:00
|
|
|
sha256 = "1s895198x3kiqfznhp56vj67wld9fgh2wd7k8hw69mrasby0kmp3";
|
2016-04-23 15:08:45 +02:00
|
|
|
};
|
|
|
|
|
2016-05-25 21:23:42 +02:00
|
|
|
propagatedBuildInputs = with pkgs; [
|
|
|
|
mono
|
|
|
|
sqlite
|
|
|
|
];
|
2016-04-23 15:08:45 +02:00
|
|
|
|
2016-05-25 21:23:42 +02: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 15:08:45 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
2016-05-25 21:23:42 +02:00
|
|
|
cp -r MediaBrowser.Server.Mono/bin/Release\ Mono/* $out/bin/
|
2016-04-23 15:08:45 +02: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;
|
|
|
|
};
|
|
|
|
}
|