1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #12984 from colemickens/plexpass

plex: add enablePlexPass
This commit is contained in:
Arseniy Seroka 2016-02-16 17:13:54 +03:00
commit d13adb4f8d
2 changed files with 20 additions and 7 deletions

View file

@ -1,15 +1,28 @@
{ stdenv, fetchurl, rpmextract, glibc
, 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}";
version = "0.9.15.2.1663";
vsnHash = "7efd046";
version = plexpkg.version;
vsnHash = plexpkg.vsnHash;
sha256 = plexpkg.sha256;
src = fetchurl {
url = "https://downloads.plex.tv/plex-media-server/${version}-${vsnHash}/plexmediaserver-${version}-${vsnHash}.x86_64.rpm";
sha256 = "f06225807c6284914bca1cfaec4490d594c53a2c794d916b321658388d40f9cf";
url = "https://downloads.plex.tv/plex-media-server/${version}-${vsnHash}/plexmediaserver-${version}-${vsnHash}.x86_64.rpm";
inherit sha256;
};
buildInputs = [ rpmextract glibc ];
@ -57,7 +70,7 @@ stdenv.mkDerivation rec {
homepage = http://plex.tv/;
license = licenses.unfree;
platforms = platforms.linux;
maintainers = with stdenv.lib.maintainers; [ forkk thoughtpolice ];
maintainers = with stdenv.lib.maintainers; [ colemickens forkk thoughtpolice ];
description = "Media / DLNA server";
longDescription = ''
Plex is a media server which allows you to store your media and play it

View file

@ -2826,7 +2826,7 @@ let
platformioPackages = callPackage ../development/arduino/platformio { };
platformio = platformioPackages.platformio-chrootenv.override {};
plex = callPackage ../servers/plex { };
plex = callPackage ../servers/plex { enablePlexPass = config.plex.enablePlexPass or false; };
ploticus = callPackage ../tools/graphics/ploticus {
libpng = libpng12;