diff options
author | Cole Mickens <cole.mickens@gmail.com> | 2016-01-17 04:11:27 -0800 |
---|---|---|
committer | Cole Mickens <cole.mickens@gmail.com> | 2016-02-15 17:05:11 -0800 |
commit | 5e2fd638ccd9e321eb2c8a7033b9efb6c88e0a4c (patch) | |
tree | 67577533e04a477f0499c9d8cc864232a2f4d060 /pkgs/servers/plex | |
parent | d58ae071fd81a623f6a7c028db3940755faec1e2 (diff) |
plex: add enablePlexPass (init at 0.9.15.3.1674)
enables plex pass subscribers to opt-in to the pre-release downloads
Diffstat (limited to 'pkgs/servers/plex')
-rw-r--r-- | pkgs/servers/plex/default.nix | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/pkgs/servers/plex/default.nix b/pkgs/servers/plex/default.nix index 29cd45714d7f9..03f6fb63c7291 100644 --- a/pkgs/servers/plex/default.nix +++ b/pkgs/servers/plex/default.nix @@ -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 |