mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
tautulli/plexpy: 1.4.25 -> 2.1.26 (renamed)
PlexPy was renamed to Tautulli. This renames the module as well as the application accordingly. Aliases are kept for backwards compatibility. # Conflicts: # nixos/modules/services/misc/tautulli.nix
This commit is contained in:
parent
51c897c37d
commit
8b3ffebcdc
@ -424,7 +424,7 @@
|
|||||||
./services/misc/parsoid.nix
|
./services/misc/parsoid.nix
|
||||||
./services/misc/phd.nix
|
./services/misc/phd.nix
|
||||||
./services/misc/plex.nix
|
./services/misc/plex.nix
|
||||||
./services/misc/plexpy.nix
|
./services/misc/tautulli.nix
|
||||||
./services/misc/pykms.nix
|
./services/misc/pykms.nix
|
||||||
./services/misc/radarr.nix
|
./services/misc/radarr.nix
|
||||||
./services/misc/redmine.nix
|
./services/misc/redmine.nix
|
||||||
|
@ -186,6 +186,9 @@ with lib;
|
|||||||
# parsoid
|
# parsoid
|
||||||
(mkRemovedOptionModule [ "services" "parsoid" "interwikis" ] [ "services" "parsoid" "wikis" ])
|
(mkRemovedOptionModule [ "services" "parsoid" "interwikis" ] [ "services" "parsoid" "wikis" ])
|
||||||
|
|
||||||
|
# plexpy / tautulli
|
||||||
|
(mkRenamedOptionModule [ "services" "plexpy" ] [ "services" "tautulli" ])
|
||||||
|
|
||||||
# piwik was renamed to matomo
|
# piwik was renamed to matomo
|
||||||
(mkRenamedOptionModule [ "services" "piwik" "enable" ] [ "services" "matomo" "enable" ])
|
(mkRenamedOptionModule [ "services" "piwik" "enable" ] [ "services" "matomo" "enable" ])
|
||||||
(mkRenamedOptionModule [ "services" "piwik" "webServerUser" ] [ "services" "matomo" "webServerUser" ])
|
(mkRenamedOptionModule [ "services" "piwik" "webServerUser" ] [ "services" "matomo" "webServerUser" ])
|
||||||
|
@ -3,49 +3,49 @@
|
|||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.plexpy;
|
cfg = config.services.tautulli;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
services.plexpy = {
|
services.tautulli = {
|
||||||
enable = mkEnableOption "PlexPy Plex Monitor";
|
enable = mkEnableOption "Tautulli Plex Monitor";
|
||||||
|
|
||||||
dataDir = mkOption {
|
dataDir = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "/var/lib/plexpy";
|
default = "/var/lib/plexpy";
|
||||||
description = "The directory where PlexPy stores its data files.";
|
description = "The directory where Tautulli stores its data files.";
|
||||||
};
|
};
|
||||||
|
|
||||||
configFile = mkOption {
|
configFile = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "/var/lib/plexpy/config.ini";
|
default = "/var/lib/plexpy/config.ini";
|
||||||
description = "The location of PlexPy's config file.";
|
description = "The location of Tautulli's config file.";
|
||||||
};
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
default = 8181;
|
default = 8181;
|
||||||
description = "TCP port where PlexPy listens.";
|
description = "TCP port where Tautulli listens.";
|
||||||
};
|
};
|
||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "plexpy";
|
default = "plexpy";
|
||||||
description = "User account under which PlexPy runs.";
|
description = "User account under which Tautulli runs.";
|
||||||
};
|
};
|
||||||
|
|
||||||
group = mkOption {
|
group = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "nogroup";
|
default = "nogroup";
|
||||||
description = "Group under which PlexPy runs.";
|
description = "Group under which Tautulli runs.";
|
||||||
};
|
};
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
default = pkgs.plexpy;
|
default = pkgs.tautulli;
|
||||||
defaultText = "pkgs.plexpy";
|
defaultText = "pkgs.tautulli";
|
||||||
description = ''
|
description = ''
|
||||||
The PlexPy package to use.
|
The Tautulli package to use.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -56,8 +56,8 @@ in
|
|||||||
"d '${cfg.dataDir}' - ${cfg.user} ${cfg.group} - -"
|
"d '${cfg.dataDir}' - ${cfg.user} ${cfg.group} - -"
|
||||||
];
|
];
|
||||||
|
|
||||||
systemd.services.plexpy = {
|
systemd.services.tautulli = {
|
||||||
description = "PlexPy Plex Monitor";
|
description = "Tautulli Plex Monitor";
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
@ -65,7 +65,7 @@ in
|
|||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
GuessMainPID = "false";
|
GuessMainPID = "false";
|
||||||
ExecStart = "${cfg.package}/bin/plexpy --datadir ${cfg.dataDir} --config ${cfg.configFile} --port ${toString cfg.port} --pidfile ${cfg.dataDir}/plexpy.pid --nolaunch";
|
ExecStart = "${cfg.package}/bin/tautulli --datadir ${cfg.dataDir} --config ${cfg.configFile} --port ${toString cfg.port} --pidfile ${cfg.dataDir}/tautulli.pid --nolaunch";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
};
|
};
|
@ -1,41 +0,0 @@
|
|||||||
{stdenv, fetchFromGitHub, python}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
|
||||||
version = "1.4.25";
|
|
||||||
pname = "plexpy";
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
|
||||||
owner = "JonnyWong16";
|
|
||||||
repo = pname;
|
|
||||||
rev = "v${version}";
|
|
||||||
sha256 = "0a4ynrfamlwkgqil4n61v47p21czxpjdzg0mias4kdjam2nnwnjx";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildPhase = ":";
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out
|
|
||||||
cp -R * $out/
|
|
||||||
|
|
||||||
# Remove superfluous Python checks from main script;
|
|
||||||
# prepend shebang
|
|
||||||
echo "#!${python.interpreter}" > $out/PlexPy.py
|
|
||||||
tail -n +7 PlexPy.py >> $out/PlexPy.py
|
|
||||||
|
|
||||||
mkdir $out/bin
|
|
||||||
# Can't just symlink to the main script, since it uses __file__ to
|
|
||||||
# import bundled packages and manage the service
|
|
||||||
echo "#!/bin/bash" > $out/bin/plexpy
|
|
||||||
echo "$out/PlexPy.py \$*" >> $out/bin/plexpy
|
|
||||||
chmod +x $out/bin/plexpy
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
|
||||||
description = "A Python based monitoring and tracking tool for Plex Media Server.";
|
|
||||||
homepage = http://jonnywong16.github.io/plexpy/;
|
|
||||||
license = licenses.gpl3;
|
|
||||||
platforms = platforms.linux;
|
|
||||||
maintainers = with stdenv.lib.maintainers; [ csingley ];
|
|
||||||
};
|
|
||||||
}
|
|
55
pkgs/servers/tautulli/default.nix
Normal file
55
pkgs/servers/tautulli/default.nix
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
{stdenv, fetchFromGitHub, python }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "2.1.26";
|
||||||
|
pname = "Tautulli";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
pythonPath = [ python.pkgs.setuptools ];
|
||||||
|
buildInputs = [ python.pkgs.setuptools ];
|
||||||
|
nativeBuildInputs = [ python.pkgs.wrapPython ];
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Tautulli";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1gq13dazbqbzdb0wfw87maprr9nva357zdj8x0lfrbasi3h5522q";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildPhase = ":";
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out
|
||||||
|
cp -R * $out/
|
||||||
|
|
||||||
|
# Remove the PlexPy.py compatibility file as it won't work after wrapping.
|
||||||
|
# We still have the plexpy executable in bin for compatibility.
|
||||||
|
rm $out/PlexPy.py
|
||||||
|
|
||||||
|
# Remove superfluous Python checks from main script;
|
||||||
|
# prepend shebang
|
||||||
|
echo "#!${python.interpreter}" > $out/Tautulli.py
|
||||||
|
tail -n +7 Tautulli.py >> $out/Tautulli.py
|
||||||
|
|
||||||
|
|
||||||
|
mkdir $out/bin
|
||||||
|
# Can't just symlink to the main script, since it uses __file__ to
|
||||||
|
# import bundled packages and manage the service
|
||||||
|
echo "#!/bin/bash" > $out/bin/tautulli
|
||||||
|
echo "$out/Tautulli.py \$*" >> $out/bin/tautulli
|
||||||
|
chmod +x $out/bin/tautulli
|
||||||
|
|
||||||
|
# Creat backwards compatibility symlink to bin/plexpy
|
||||||
|
ln -s $out/bin/tautulli $out/bin/plexpy
|
||||||
|
|
||||||
|
wrapPythonProgramsIn "$out" "$out $pythonPath"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "A Python based monitoring and tracking tool for Plex Media Server.";
|
||||||
|
homepage = https://tautulli.com/;
|
||||||
|
license = licenses.gpl3;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
maintainers = with stdenv.lib.maintainers; [ csingley ];
|
||||||
|
};
|
||||||
|
}
|
@ -234,6 +234,7 @@ mapAliases ({
|
|||||||
pidginwindowmerge = pidgin-window-merge; # added 2018-01-08
|
pidginwindowmerge = pidgin-window-merge; # added 2018-01-08
|
||||||
piwik = matomo; # added 2018-01-16
|
piwik = matomo; # added 2018-01-16
|
||||||
pltScheme = racket; # just to be sure
|
pltScheme = racket; # just to be sure
|
||||||
|
plexpy = tautulli; # plexpy got renamed to tautulli, added 2019-02-22
|
||||||
pmtools = acpica-tools; # added 2018-11-01
|
pmtools = acpica-tools; # added 2018-11-01
|
||||||
poppler_qt5 = libsForQt5.poppler; # added 2015-12-19
|
poppler_qt5 = libsForQt5.poppler; # added 2015-12-19
|
||||||
postgresql94 = postgresql_9_4;
|
postgresql94 = postgresql_9_4;
|
||||||
|
@ -4926,7 +4926,7 @@ in
|
|||||||
|
|
||||||
plex = callPackage ../servers/plex { };
|
plex = callPackage ../servers/plex { };
|
||||||
|
|
||||||
plexpy = callPackage ../servers/plexpy { python = python2; };
|
tautulli = callPackage ../servers/tautulli { python = python2; };
|
||||||
|
|
||||||
ploticus = callPackage ../tools/graphics/ploticus {
|
ploticus = callPackage ../tools/graphics/ploticus {
|
||||||
libpng = libpng12;
|
libpng = libpng12;
|
||||||
|
Loading…
Reference in New Issue
Block a user