Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Oct 30, 2017
2 parents d0d0308 + ff40e1b commit 6d41ae5
Show file tree
Hide file tree
Showing 43 changed files with 801 additions and 528 deletions.
2 changes: 2 additions & 0 deletions lib/maintainers.nix
Expand Up @@ -116,6 +116,7 @@
christopherpoole = "Christopher Mark Poole <mail@christopherpoole.net>";
ciil = "Simon Lackerbauer <simon@lackerbauer.com>";
ckampka = "Christian Kampka <christian@kampka.net>";
ckauhaus = "Christian Kauhaus <christian@kauhaus.de>";
cko = "Christine Koppelt <christine.koppelt@gmail.com>";
cleverca22 = "Michael Bishop <cleverca22@gmail.com>";
cmcdragonkai = "Roger Qiu <roger.qiu@matrix.ai>";
Expand All @@ -135,6 +136,7 @@
cryptix = "Henry Bubert <cryptix@riseup.net>";
CrystalGamma = "Jona Stubbe <nixos@crystalgamma.de>";
cstrahan = "Charles Strahan <charles@cstrahan.com>";
csingley = "Christopher Singley <csingley@gmail.com>";
cwoac = "Oliver Matthews <oliver@codersoffortune.net>";
DamienCassou = "Damien Cassou <damien@cassou.me>";
danbst = "Danylo Hlynskyi <abcz2.uprola@gmail.com>";
Expand Down
5 changes: 5 additions & 0 deletions nixos/doc/manual/installation/installing.xml
Expand Up @@ -140,6 +140,11 @@
the GRUB boot loader is to be installed. Without it, NixOS cannot
boot.</para>

<para>If there are other operating systems running on the machine before
installing NixOS, the
<option>boot.loader.grub.useOSProber</option> option can be set to
<literal>true</literal> to automatically add them to the grub menu.</para>

<para>Another critical option is <option>fileSystems</option>,
specifying the file systems that need to be mounted by NixOS.
However, you typically don’t need to set it yourself, because
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Expand Up @@ -328,6 +328,7 @@
./services/misc/parsoid.nix
./services/misc/phd.nix
./services/misc/plex.nix
./services/misc/plexpy.nix
./services/misc/pykms.nix
./services/misc/radarr.nix
./services/misc/redmine.nix
Expand Down
81 changes: 81 additions & 0 deletions nixos/modules/services/misc/plexpy.nix
@@ -0,0 +1,81 @@
{ config, pkgs, lib, ... }:

with lib;

let
cfg = config.services.plexpy;
in
{
options = {
services.plexpy = {
enable = mkEnableOption "PlexPy Plex Monitor";

dataDir = mkOption {
type = types.str;
default = "/var/lib/plexpy";
description = "The directory where PlexPy stores its data files.";
};

configFile = mkOption {
type = types.str;
default = "/var/lib/plexpy/config.ini";
description = "The location of PlexPy's config file.";
};

port = mkOption {
type = types.int;
default = 8181;
description = "TCP port where PlexPy listens.";
};

user = mkOption {
type = types.str;
default = "plexpy";
description = "User account under which PlexPy runs.";
};

group = mkOption {
type = types.str;
default = "nogroup";
description = "Group under which PlexPy runs.";
};

package = mkOption {
type = types.package;
default = pkgs.plexpy;
defaultText = "pkgs.plexpy";
description = ''
The PlexPy package to use.
'';
};
};
};

config = mkIf cfg.enable {
systemd.services.plexpy = {
description = "PlexPy Plex Monitor";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
preStart = ''
test -d "${cfg.dataDir}" || {
echo "Creating initial PlexPy data directory in \"${cfg.dataDir}\"."
mkdir -p "${cfg.dataDir}"
chown ${cfg.user}:${cfg.group} "${cfg.dataDir}"
}
'';
serviceConfig = {
Type = "simple";
User = cfg.user;
Group = cfg.group;
PermissionsStartOnly = "true";
GuessMainPID = "false";
ExecStart = "${cfg.package}/bin/plexpy --datadir ${cfg.dataDir} --config ${cfg.configFile} --port ${toString cfg.port} --pidfile ${cfg.dataDir}/plexpy.pid --nolaunch";
Restart = "on-failure";
};
};

users.extraUsers = mkIf (cfg.user == "plexpy") {
plexpy = { group = cfg.group; uid = config.ids.uids.plexpy; };
};
};
}
24 changes: 0 additions & 24 deletions pkgs/applications/kde/kde-locale-5.nix

This file was deleted.

1 change: 0 additions & 1 deletion pkgs/applications/kde/l10n.nix
Expand Up @@ -3,7 +3,6 @@
let

kdeLocale4 = import ./kde-locale-4.nix;
kdeLocale5 = import ./kde-locale-5.nix;

in

Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/misc/mupdf/default.nix
Expand Up @@ -103,7 +103,7 @@ stdenv.mkDerivation rec {
homepage = http://mupdf.com;
repositories.git = git://git.ghostscript.com/mupdf.git;
description = "Lightweight PDF, XPS, and E-book viewer and toolkit written in portable C";
license = licenses.gpl3Plus;
license = licenses.agpl3Plus;
maintainers = with maintainers; [ viric vrthra fpletz ];
platforms = platforms.linux;
};
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/corebird/default.nix
Expand Up @@ -3,14 +3,14 @@
, glib_networking }:

stdenv.mkDerivation rec {
version = "1.6";
version = "1.7.1";
name = "corebird-${version}";

src = fetchFromGitHub {
owner = "baedert";
repo = "corebird";
rev = version;
sha256 = "1bxjlamdy5d2j3xdahmxf6lwc7f6xdfxbzi712ppvh1dwggw654v";
sha256 = "1g6wkzrl6j0mmgafpv0jpqa906s1x7p5hmiqdgs9qwm7q2wlwrqd";
};

preConfigure = ''
Expand Down
10 changes: 5 additions & 5 deletions pkgs/development/compilers/chez/default.nix
Expand Up @@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
name = "chez-scheme-${version}";
version = "9.4-${dver}";
dver = "20160507";
version = "9.5-${dver}";
dver = "20171012";

src = fetchgit {
url = "https://github.com/cisco/chezscheme.git";
rev = "65df1d1f7c37f5b5a93cd7e5b475dda9dbafe03c";
sha256 = "1b273il3njnn04z55w1hnygvcqllc6p5qg9mcwh10w39fwsd8fbs";
rev = "adb3b7bb22ddaa1ba91b98b6f4a647427c3a4d9b";
sha256 = "0hiynf7g0q77ipqxjsqdm2zb0m15bl1hhp615fn3i2hv0qz5a4xr";
fetchSubmodules = true;
};

Expand All @@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
*/
patchPhase = ''
substituteInPlace ./configure \
--replace "git submodule init && git submodule update || exit 1" ""
--replace "git submodule init && git submodule update || exit 1" "true"
substituteInPlace ./workarea \
--replace "/bin/ln" "${coreutils}/bin/ln" \
Expand Down
5 changes: 0 additions & 5 deletions pkgs/development/coq-modules/dpdgraph/default.nix
@@ -1,11 +1,6 @@
{ stdenv, fetchFromGitHub, autoreconfHook, coq, ocamlPackages }:

let param = {
"8.7" = {
version = "0.6.1";
rev = "c3b87af6bfa338e18b83f014ebd0e56e1f611663";
sha256 = "1jaafkwsb5450378nprjsds1illgdaq60gryi8kspw0i25ykz2c9";
};
"8.6" = {
version = "0.6.1";
rev = "c3b87af6bfa338e18b83f014ebd0e56e1f611663";
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/interpreters/lua-5/5.3.nix
Expand Up @@ -5,11 +5,11 @@
stdenv.mkDerivation rec {
name = "lua-${version}";
luaversion = "5.3";
version = "${luaversion}.0";
version = "${luaversion}.4";

src = fetchurl {
url = "http://www.lua.org/ftp/${name}.tar.gz";
sha256 = "00fv1p6dv4701pyjrlvkrr6ykzxqy9hy1qxzj6qmwlb0ssr5wjmf";
url = "https://www.lua.org/ftp/${name}.tar.gz";
sha256 = "0320a8dg3aci4hxla380dx1ifkw8gj4gbw5c4dz41g1kh98sm0gn";
};

nativeBuildInputs = [ readline ];
Expand Down
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/autopep8/default.nix
@@ -0,0 +1,26 @@
{ stdenv, fetchPypi, buildPythonPackage, pycodestyle }:

buildPythonPackage rec {
pname = "autopep8";
version = "1.3.3";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "0c1gl648g2xnz3j0rsp71ld4i32zlglmqjvqf4q8r08jp3zpny7z";
};

propagatedBuildInputs = [ pycodestyle ];

# One test fails:
# FAIL: test_recursive_should_not_crash_on_unicode_filename (test.test_autopep8.CommandLineTests)
doCheck = false;

meta = with stdenv.lib; {
description = "A tool that automatically formats Python code to conform to the PEP 8 style guide";
homepage = https://pypi.python.org/pypi/autopep8/;
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ bjornfor ];
};
}
30 changes: 30 additions & 0 deletions pkgs/development/python-modules/blockdiag/default.nix
@@ -0,0 +1,30 @@
{ stdenv, fetchurl, buildPythonPackage, pep8, nose, unittest2, docutils
, pillow, webcolors, funcparserlib
}:

buildPythonPackage rec {
name = "blockdiag-${version}";
version = "1.5.3";

src = fetchurl {
url = "https://bitbucket.org/blockdiag/blockdiag/get/${version}.tar.bz2";
sha256 = "0r0qbmv0ijnqidsgm2rqs162y9aixmnkmzgnzgk52hiy7ydm4k8f";
};

buildInputs = [ pep8 nose unittest2 docutils ];

propagatedBuildInputs = [ pillow webcolors funcparserlib ];

# One test fails:
# ...
# FAIL: test_auto_font_detection (blockdiag.tests.test_boot_params.TestBootParams)
doCheck = false;

meta = with stdenv.lib; {
description = "Generate block-diagram image from spec-text file (similar to Graphviz)";
homepage = http://blockdiag.com/;
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ bjornfor ];
};
}
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/bpython/default.nix
@@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchurl, pygments, greenlet, curtsies, urwid, requests, mock }:

buildPythonPackage rec {
pname = "bpython";
version = "0.17";
name = "${pname}-${version}";

# 0.17 is still missing on PyPI, https://github.com/bpython/bpython/issues/706
src = fetchurl {
url = "https://bpython-interpreter.org/releases/${pname}-${version}.tar.gz";
sha256 = "13fyyx06645ikvmj9zmkixr12kzk1c3a3f9s9i2rvaczjycn82lz";
};

propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];

checkInputs = [ mock ];

# tests fail: https://github.com/bpython/bpython/issues/712
doCheck = false;

meta = with stdenv.lib; {
description = "A fancy curses interface to the Python interactive interpreter";
homepage = "https://bpython-interpreter.org/";
license = licenses.mit;
maintainers = with maintainers; [ flokli ];
};
}
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/construct/default.nix
@@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, six, pythonOlder }:

buildPythonPackage rec {
name = "construct-${version}";
version = "2.8.16";

src = fetchFromGitHub {
owner = "construct";
repo = "construct";
rev = "v${version}";
sha256 = "0lzz1dy419n254qccch7yx4nkpwd0fsyjhnsnaf6ysgwzqxxv63j";
};

propagatedBuildInputs = [ six ];

# Tests fail with the following error on Python 3.5+
# TypeError: not all arguments converted during string formatting
doCheck = pythonOlder "3.5";

meta = with stdenv.lib; {
description = "Powerful declarative parser (and builder) for binary data";
homepage = http://construct.readthedocs.org/;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ bjornfor ];
};
}
27 changes: 27 additions & 0 deletions pkgs/development/python-modules/curtsies/default.nix
@@ -0,0 +1,27 @@
{ stdenv, buildPythonPackage, fetchPypi, blessings, mock, nose, pyte, pytest, wcwidth }:

buildPythonPackage rec {
pname = "curtsies";
version = "0.2.11";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "1vljmw3sy6lrqahhpyg4gk13mzcx3mwhvg8s41698ms3cpgkjipc";
};

propagatedBuildInputs = [ blessings wcwidth pyte ];

checkInputs = [ nose mock pytest ];

checkPhase = ''
py.test
'';

meta = with stdenv.lib; {
description = "Curses-like terminal wrapper, with colored strings!";
homepage = https://pypi.python.org/pypi/curtsies;
license = licenses.mit;
maintainers = with maintainers; [ flokli ];
};
}
20 changes: 20 additions & 0 deletions pkgs/development/python-modules/dpkt/default.nix
@@ -0,0 +1,20 @@
{ stdenv, fetchPypi, buildPythonPackage }:

buildPythonPackage rec {
pname = "dpkt";
version = "1.9.1";
name = "${pname}-${version}";

src = fetchPypi {
inherit pname version;
sha256 = "0rr9ygczhxkfb61778jx0cxs0sq46zwlcj5l3wn6xmd3iy3yx9y6";
};

meta = with stdenv.lib; {
description = "Fast, simple packet creation / parsing, with definitions for the basic TCP/IP protocols";
homepage = https://code.google.com/p/dpkt/;
license = licenses.bsd3;
maintainers = with maintainers; [ bjornfor ];
platforms = platforms.all;
};
}

0 comments on commit 6d41ae5

Please sign in to comment.