git.iko.soy/typeable/nixpkgs
on master help sign in
PlexPy: init at 1.4.25
commite697f10fc4e5343c9fc3c253efb910fecb6f84da authorChristopher Singley <csingley@gmail.com> dateSun 29 Oct 2017, 19:28 (9 years ago) parent14291c2
3 files changed+44
lib/maintainers.nix+1 pkgs/servers/plexpy/default.nix+41 pkgs/top-level/all-packages.nix+2
lib/maintainers.nix+1
@@ -136,6 +136,7 @@
136136 cryptix = "Henry Bubert <cryptix@riseup.net>";
137137 CrystalGamma = "Jona Stubbe <nixos@crystalgamma.de>";
138138 cstrahan = "Charles Strahan <charles@cstrahan.com>";
139+ csingley = "Christopher Singley <csingley@gmail.com>";
139140 cwoac = "Oliver Matthews <oliver@codersoffortune.net>";
140141 DamienCassou = "Damien Cassou <damien@cassou.me>";
141142 danbst = "Danylo Hlynskyi <abcz2.uprola@gmail.com>";
pkgs/servers/plexpy/default.nixnew file+41
@@ -0,0 +1,41 @@
1+{stdenv, fetchFromGitHub, python}:
2+
3+stdenv.mkDerivation rec {
4+ version = "1.4.25";
5+ pname = "plexpy";
6+ name = "${pname}-${version}";
7+
8+ src = fetchFromGitHub {
9+ owner = "JonnyWong16";
10+ repo = pname;
11+ rev = "v${version}";
12+ sha256 = "0a4ynrfamlwkgqil4n61v47p21czxpjdzg0mias4kdjam2nnwnjx";
13+ };
14+
15+ buildPhase = ":";
16+
17+ installPhase = ''
18+ mkdir -p $out
19+ cp -R * $out/
20+
21+ # Remove superfluous Python checks from main script;
22+ # prepend shebang
23+ echo "#!${python.interpreter}" > $out/PlexPy.py
24+ tail -n +7 PlexPy.py >> $out/PlexPy.py
25+
26+ mkdir $out/bin
27+ # Can't just symlink to the main script, since it uses __file__ to
28+ # import bundled packages and manage the service
29+ echo "#!/bin/bash" > $out/bin/plexpy
30+ echo "$out/PlexPy.py \$*" >> $out/bin/plexpy
31+ chmod +x $out/bin/plexpy
32+ '';
33+
34+ meta = with stdenv.lib; {
35+ description = "A Python based monitoring and tracking tool for Plex Media Server.";
36+ homepage = http://jonnywong16.github.io/plexpy/;
37+ license = licenses.gpl3;
38+ platforms = platforms.linux;
39+ maintainers = with stdenv.lib.maintainers; [ csingley ];
40+ };
41+}
pkgs/top-level/all-packages.nix+2
@@ -3966,6 +3966,8 @@ with pkgs;
39663966
39673967 plex = callPackage ../servers/plex { enablePlexPass = config.plex.enablePlexPass or false; };
39683968
3969+ plexpy = callPackage ../servers/plexpy { python = python2; };
3970+
39693971 ploticus = callPackage ../tools/graphics/ploticus {
39703972 libpng = libpng12;
39713973 };