nixpkgs/pkgs/servers/emby/default.nix
Ryan Mulligan a37e3f2b0e emby: 3.2.60.0 -> 3.2.70.0
Semi-automatic update. These checks were performed:

- built on NixOS
- found 3.2.70.0 with grep in /nix/store/rrf5cqpbsmq42mwy2zsgab7r7pn44zim-emby-3.2.70.0
2018-02-25 20:45:59 -08:00

45 lines
1.4 KiB
Nix

{ stdenv, fetchurl, pkgs, unzip, sqlite, makeWrapper, mono46, ffmpeg, ... }:
stdenv.mkDerivation rec {
name = "emby-${version}";
version = "3.2.70.0";
src = fetchurl {
url = "https://github.com/MediaBrowser/Emby/releases/download/${version}/Emby.Mono.zip";
sha256 = "051mbzh1igcbda43n14aijbvhhh98rqw8i13f06xqsm67afrjjcv";
};
buildInputs = with pkgs; [
unzip
makeWrapper
];
propagatedBuildInputs = with pkgs; [
mono46
sqlite
];
# Need to set sourceRoot as unpacker will complain about multiple directory output
sourceRoot = ".";
buildPhase = ''
substituteInPlace SQLitePCLRaw.provider.sqlite3.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 = ''
mkdir -p $out/bin
cp -r * $out/bin
makeWrapper "${mono46}/bin/mono" $out/bin/MediaBrowser.Server.Mono \
--add-flags "$out/bin/MediaBrowser.Server.Mono.exe -ffmpeg ${ffmpeg}/bin/ffmpeg -ffprobe ${ffmpeg}/bin/ffprobe"
'';
meta = {
description = "MediaBrowser - Bring together your videos, music, photos, and live television";
homepage = https://emby.media/;
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.fadenb ];
platforms = stdenv.lib.platforms.all;
};
}