plex: add enablePlexPass (init at 0.9.15.3.1674)
enables plex pass subscribers to opt-in to the pre-release downloads
This commit is contained in:
parent
d58ae071fd
commit
5e2fd638cc
@ -1,15 +1,28 @@
|
|||||||
{ stdenv, fetchurl, rpmextract, glibc
|
{ stdenv, fetchurl, rpmextract, glibc
|
||||||
, dataDir ? "/var/lib/plex" # Plex's data directory must be baked into the package due to symlinks.
|
, dataDir ? "/var/lib/plex" # Plex's data directory must be baked into the package due to symlinks.
|
||||||
|
, enablePlexPass ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
plexpkg = if enablePlexPass then {
|
||||||
|
version = "0.9.15.3.1674";
|
||||||
|
vsnHash = "f46e7e6";
|
||||||
|
sha256 = "086njnjcmknmbn90mmvf60ls7q73g2m955yk621jjdngs4ybvm19";
|
||||||
|
} else {
|
||||||
|
version = "0.9.15.2.1663";
|
||||||
|
vsnHash = "7efd046";
|
||||||
|
sha256 = "1kzr826khn0n69mr2kbr5hxcb56mj12fryhwr95r3132gj02aqph";
|
||||||
|
};
|
||||||
|
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
name = "plex-${version}";
|
name = "plex-${version}";
|
||||||
version = "0.9.15.2.1663";
|
version = plexpkg.version;
|
||||||
vsnHash = "7efd046";
|
vsnHash = plexpkg.vsnHash;
|
||||||
|
sha256 = plexpkg.sha256;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://downloads.plex.tv/plex-media-server/${version}-${vsnHash}/plexmediaserver-${version}-${vsnHash}.x86_64.rpm";
|
url = "https://downloads.plex.tv/plex-media-server/${version}-${vsnHash}/plexmediaserver-${version}-${vsnHash}.x86_64.rpm";
|
||||||
sha256 = "f06225807c6284914bca1cfaec4490d594c53a2c794d916b321658388d40f9cf";
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ rpmextract glibc ];
|
buildInputs = [ rpmextract glibc ];
|
||||||
@ -57,7 +70,7 @@ stdenv.mkDerivation rec {
|
|||||||
homepage = http://plex.tv/;
|
homepage = http://plex.tv/;
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainers = with stdenv.lib.maintainers; [ forkk thoughtpolice ];
|
maintainers = with stdenv.lib.maintainers; [ colemickens forkk thoughtpolice ];
|
||||||
description = "Media / DLNA server";
|
description = "Media / DLNA server";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Plex is a media server which allows you to store your media and play it
|
Plex is a media server which allows you to store your media and play it
|
||||||
|
@ -2824,7 +2824,7 @@ let
|
|||||||
platformioPackages = callPackage ../development/arduino/platformio { };
|
platformioPackages = callPackage ../development/arduino/platformio { };
|
||||||
platformio = platformioPackages.platformio-chrootenv.override {};
|
platformio = platformioPackages.platformio-chrootenv.override {};
|
||||||
|
|
||||||
plex = callPackage ../servers/plex { };
|
plex = callPackage ../servers/plex { enablePlexPass = config.plex.enablePlexPass or false; };
|
||||||
|
|
||||||
ploticus = callPackage ../tools/graphics/ploticus {
|
ploticus = callPackage ../tools/graphics/ploticus {
|
||||||
libpng = libpng12;
|
libpng = libpng12;
|
||||||
|
Loading…
Reference in New Issue
Block a user