plex: 1.0.0 -> 1.2.7; fix some more binaries (#20137)

This bumps the version of Plex to the new 1.2.x branch, available to the
public. During the 1.1.x branch, there were several more critical
binaries that were added to the distribution; we also have to patch
these new executables as well with the version bump, to ensure things
keep working.

Part of this patch was authored by Michael Francis - I simply bumped the
version.

Closes #20137.

Authored-by: Austin Seipp <aseipp@pobox.com>
Authored-by: Michael Francis <edude03@gmail.com>
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2016-11-17 18:13:58 -06:00
parent 6dfd4f5b08
commit 8458d6b720

View File

@ -6,9 +6,9 @@
let let
plexPass = throw "Plex pass has been removed at upstream's request; please unset nixpkgs.config.plex.pass"; plexPass = throw "Plex pass has been removed at upstream's request; please unset nixpkgs.config.plex.pass";
plexpkg = if enablePlexPass then plexPass else { plexpkg = if enablePlexPass then plexPass else {
version = "1.0.0.2261"; version = "1.2.7.2987";
vsnHash = "a17e99e"; vsnHash = "1bef33a";
sha256 = "14li33ni6aaa1qwvc02a066k52s1qwhpv55prvlmq3m5jm3iv0lr"; sha256 = "17d1yisbikcp25mgn71rf8w76zhy015f33hxjj93swfm1qrq55hq";
}; };
in stdenv.mkDerivation rec { in stdenv.mkDerivation rec {
@ -36,7 +36,7 @@ in stdenv.mkDerivation rec {
# Now we need to patch up the executables and libraries to work on Nix. # Now we need to patch up the executables and libraries to work on Nix.
# Side note: PLEASE don't put spaces in your binary names. This is stupid. # Side note: PLEASE don't put spaces in your binary names. This is stupid.
for bin in "Plex Media Server" "Plex DLNA Server" "Plex Media Scanner"; do for bin in "Plex Media Server" "Plex DLNA Server" "Plex Media Scanner" "Plex Script Host" "Plex Transcoder" "Plex Relay"; do
patchelf --set-interpreter "${glibc.out}/lib/ld-linux-x86-64.so.2" "$out/usr/lib/plexmediaserver/$bin" patchelf --set-interpreter "${glibc.out}/lib/ld-linux-x86-64.so.2" "$out/usr/lib/plexmediaserver/$bin"
patchelf --set-rpath "$out/usr/lib/plexmediaserver" "$out/usr/lib/plexmediaserver/$bin" patchelf --set-rpath "$out/usr/lib/plexmediaserver" "$out/usr/lib/plexmediaserver/$bin"
done done