nixpkgs/pkgs/servers/emby/default.nix
R. RyanTM 0b57c3ef21 emby: 3.3.0.0 -> 3.3.1.0
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/emby/versions.

These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 3.3.1.0 with grep in /nix/store/b5qx498y0lan20ran7ci7wdhlisvy1jd-emby-3.3.1.0
- directory tree listing: https://gist.github.com/eb93cdffbfae9ffe18d439df893237d8
2018-04-13 05:46:32 -07:00

45 lines
1.4 KiB
Nix

{ stdenv, fetchurl, pkgs, unzip, sqlite, makeWrapper, mono46, ffmpeg, ... }:
stdenv.mkDerivation rec {
name = "emby-${version}";
version = "3.3.1.0";
src = fetchurl {
url = "https://github.com/MediaBrowser/Emby/releases/download/${version}/Emby.Mono.zip";
sha256 = "04qq3rl3pwxnsr8z6x3dwplh6brn1nd0jpmmnvizln4ffx9wspb8";
};
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;
};
}