Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d4ff6cae34ed
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 11068c62a57d
Choose a head ref
  • 5 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 2, 2018

  1. Verified

    This commit was signed with the committer’s verified signature.
    zimbatm Jonas Chevalier
    Copy the full SHA
    6e8da1d View commit details
  2. Copy the full SHA
    f7a2e20 View commit details

Commits on Oct 3, 2018

  1. emby: move usr/lib to lib

    nyanloutre committed Oct 3, 2018
    Copy the full SHA
    9ec17c6 View commit details

Commits on Oct 4, 2018

  1. emby: move lib to opt

    nyanloutre committed Oct 4, 2018
    Copy the full SHA
    c2e269e View commit details
  2. Merge pull request #47659 from nyanloutre/emby-3.5.3.0

    emby: 3.5.2.0 -> 3.5.3.0, migrate from mono to dotnet
    timokau authored Oct 4, 2018
    Copy the full SHA
    11068c6 View commit details
Showing with 14 additions and 15 deletions.
  1. +14 −15 pkgs/servers/emby/default.nix
29 changes: 14 additions & 15 deletions pkgs/servers/emby/default.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{ stdenv, fetchurl, unzip, sqlite, makeWrapper, mono54, ffmpeg }:
{ stdenv, fetchurl, unzip, sqlite, makeWrapper, dotnet-sdk, ffmpeg }:

stdenv.mkDerivation rec {
name = "emby-${version}";
version = "3.5.2.0";
version = "3.5.3.0";

# We are fetching a binary here, however, a source build is possible.
# See -> https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=emby-server-git#n43
@@ -11,8 +11,8 @@ stdenv.mkDerivation rec {
# This may also need msbuild (instead of xbuild) which isn't in nixpkgs
# See -> https://github.com/NixOS/nixpkgs/issues/29817
src = fetchurl {
url = "https://github.com/MediaBrowser/Emby.Releases/releases/download/${version}/embyserver-mono_${version}.zip";
sha256 = "12f9skvnr9qxnrvr3q014yggfwvkpjk0ynbgf0fwk56h4kal7fx8";
url = "https://github.com/MediaBrowser/Emby.Releases/releases/download/${version}/embyserver-netcore_${version}.zip";
sha256 = "0311af3q813cx0ykbdk9vkmnyqi2l8rx66jnvdkw927q6invnnpj";
};

buildInputs = [
@@ -21,26 +21,25 @@ stdenv.mkDerivation rec {
];

propagatedBuildInputs = [
mono54
dotnet-sdk
sqlite
];

preferLocalBuild = true;

# 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"
rm -rf {electron,runtimes}
'';

installPhase = ''
mkdir -p "$out/bin"
cp -r * "$out/bin"
makeWrapper "${mono54}/bin/mono" $out/bin/MediaBrowser.Server.Mono \
--add-flags "$out/bin/MediaBrowser.Server.Mono.exe -ffmpeg ${ffmpeg}/bin/ffmpeg -ffprobe ${ffmpeg}/bin/ffprobe"
install -dm 755 "$out/opt/emby-server"
cp -r * "$out/opt/emby-server"
makeWrapper "${dotnet-sdk}/bin/dotnet" $out/bin/emby \
--prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [
sqlite
]}" \
--add-flags "$out/opt/emby-server/EmbyServer.dll -programdata /var/lib/emby/ProgramData-Server -ffmpeg ${ffmpeg}/bin/ffmpeg -ffprobe ${ffmpeg}/bin/ffprobe"
'';

meta = with stdenv.lib; {