mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
36 lines
1.2 KiB
Nix
36 lines
1.2 KiB
Nix
{ stdenv, fetchurl, pkgs, ... }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "emby-${version}";
|
|
version = "3.0.5972";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/MediaBrowser/Emby/archive/${version}.tar.gz";
|
|
sha256 = "0dxm7m8q9w9cknp24gp30v7v8a9q8qph6gy2s1vfli38rwcnakix";
|
|
};
|
|
|
|
propagatedBuildInputs = with pkgs; [
|
|
mono
|
|
sqlite
|
|
];
|
|
|
|
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 MediaBrowser.Server.Mono/bin/Release\ Mono/* $out/bin/
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|