PlexPy: init at 1.4.25
This commit is contained in:
parent
14291c2723
commit
e697f10fc4
|
@ -136,6 +136,7 @@
|
||||||
cryptix = "Henry Bubert <cryptix@riseup.net>";
|
cryptix = "Henry Bubert <cryptix@riseup.net>";
|
||||||
CrystalGamma = "Jona Stubbe <nixos@crystalgamma.de>";
|
CrystalGamma = "Jona Stubbe <nixos@crystalgamma.de>";
|
||||||
cstrahan = "Charles Strahan <charles@cstrahan.com>";
|
cstrahan = "Charles Strahan <charles@cstrahan.com>";
|
||||||
|
csingley = "Christopher Singley <csingley@gmail.com>";
|
||||||
cwoac = "Oliver Matthews <oliver@codersoffortune.net>";
|
cwoac = "Oliver Matthews <oliver@codersoffortune.net>";
|
||||||
DamienCassou = "Damien Cassou <damien@cassou.me>";
|
DamienCassou = "Damien Cassou <damien@cassou.me>";
|
||||||
danbst = "Danylo Hlynskyi <abcz2.uprola@gmail.com>";
|
danbst = "Danylo Hlynskyi <abcz2.uprola@gmail.com>";
|
||||||
|
|
41
pkgs/servers/plexpy/default.nix
Normal file
41
pkgs/servers/plexpy/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
{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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3966,6 +3966,8 @@ with pkgs;
|
||||||
|
|
||||||
plex = callPackage ../servers/plex { enablePlexPass = config.plex.enablePlexPass or false; };
|
plex = callPackage ../servers/plex { enablePlexPass = config.plex.enablePlexPass or false; };
|
||||||
|
|
||||||
|
plexpy = callPackage ../servers/plexpy { python = python2; };
|
||||||
|
|
||||||
ploticus = callPackage ../tools/graphics/ploticus {
|
ploticus = callPackage ../tools/graphics/ploticus {
|
||||||
libpng = libpng12;
|
libpng = libpng12;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user