Commit 8458d6b7 authored by Austin Seipp's avatar Austin Seipp
Browse files

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: default avatarAustin Seipp <aseipp@pobox.com>
Authored-by: default avatarMichael Francis <edude03@gmail.com>
Signed-off-by: default avatarAustin Seipp <aseipp@pobox.com>
parent 6dfd4f5b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -6,9 +6,9 @@
let
  plexPass = throw "Plex pass has been removed at upstream's request; please unset nixpkgs.config.plex.pass";
  plexpkg = if enablePlexPass then plexPass else {
    version = "1.0.0.2261";
    vsnHash = "a17e99e";
    sha256 = "14li33ni6aaa1qwvc02a066k52s1qwhpv55prvlmq3m5jm3iv0lr";
    version = "1.2.7.2987";
    vsnHash = "1bef33a";
    sha256 = "17d1yisbikcp25mgn71rf8w76zhy015f33hxjj93swfm1qrq55hq";
  };

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.
    # 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-rpath "$out/usr/lib/plexmediaserver" "$out/usr/lib/plexmediaserver/$bin"
    done