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: f1f38c91c913
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e6e85c4a95ea
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 26, 2020

  1. plex: Add aarch64 platform

    SamirHafez committed Nov 26, 2020
    Copy the full SHA
    d92396d View commit details
  2. Merge pull request #105000 from SamirHafez/plex-enable-aarch64

    plex: Add aarch64 platform
    prusnak authored Nov 26, 2020
    Copy the full SHA
    e6e85c4 View commit details
Showing with 10 additions and 7 deletions.
  1. +10 −7 pkgs/servers/plex/raw.nix
17 changes: 10 additions & 7 deletions pkgs/servers/plex/raw.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv
, fetchurl
, rpmextract
, dpkg
}:

# The raw package that fetches and extracts the Plex RPM. Override the source
@@ -12,19 +12,22 @@ stdenv.mkDerivation rec {
pname = "plexmediaserver";

# Fetch the source
src = fetchurl {
url = "https://downloads.plex.tv/plex-media-server-new/${version}/redhat/plexmediaserver-${version}.x86_64.rpm";
sha256 = "0vqsmmgqcvvhxiqaw87qz9fdisyf9smp6ab069dz3nq39x7n9na0";
src = if stdenv.hostPlatform.system == "aarch64-linux" then fetchurl {
url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_arm64.deb";
sha256 = "18zj4baa085gbgc0y5gx7gnwzl131xyk34m5xcipfvfb434y98cp";
} else fetchurl {
url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb";
sha256 = "01rq2q6avjsvnns7jsd2a9vnmd4584fwdkp833gjgrrrqkf6h45y";
};

outputs = [ "out" "basedb" ];

nativeBuildInputs = [ rpmextract ];
nativeBuildInputs = [ dpkg ];

phases = [ "unpackPhase" "installPhase" "fixupPhase" "distPhase" ];

unpackPhase = ''
rpmextract $src
dpkg-deb -R $src .
'';

installPhase = ''
@@ -52,7 +55,7 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; {
homepage = "https://plex.tv/";
license = licenses.unfree;
platforms = platforms.linux;
platforms = [ "x86_64-linux" "aarch64-linux" ];
maintainers = with maintainers; [
badmutex
colemickens