git.iko.soy/typeable/nixpkgs
on master help sign in
Merge master into staging
commit8cfa9cc66c37fbb8a95cf6dbf2a4279bf9e32e08 authorFrederik Rietdijk <fridh@fridh.nl> dateSat 23 Jun 2018, 18:14 (8 years ago) parent20e814e904114f
19 files changed+410−83
nixos/doc/manual/release-notes/rl-1809.xml+8 nixos/modules/programs/screen.nix+3−1 pkgs/applications/editors/atom/default.nix+4−4 pkgs/applications/graphics/freecad/default.nix+13−4 pkgs/applications/misc/octoprint/default.nix+23−15 pkgs/development/python-modules/aiohttp/default.nix+7−1 pkgs/development/python-modules/git-annex-adapter/default.nix+11−7 pkgs/development/python-modules/git-annex-adapter/not-a-git-repo-testcase.patch+13 pkgs/development/python-modules/jupyterlab_launcher/default.nix+2−2 pkgs/development/python-modules/monty/default.nix+38 pkgs/development/python-modules/pandas/default.nix+21−8 pkgs/development/python-modules/python-periphery/default.nix+21 pkgs/development/python-modules/seekpath/default.nix+25 pkgs/misc/emulators/dolphin-emu/master.nix+61−35 pkgs/tools/package-management/appimage-run/default.nix+146 pkgs/tools/package-management/home-manager/default.nix+3−3 pkgs/top-level/all-packages.nix+2 pkgs/top-level/php-packages.nix+2−2 pkgs/top-level/python-packages.nix+7−1
nixos/doc/manual/release-notes/rl-1809.xml+8
@@ -322,6 +322,14 @@ inherit (pkgs.nixos {
322322 <literal>kubectl delete clusterrolebinding kubernetes-dashboard</literal>
323323 </para>
324324 </listitem>
325+ <listitem>
326+ <para>
327+ The <varname>programs.screen</varname> module provides allows to configure
328+ <literal>/etc/screenrc</literal>, however the module behaved fairly counterintuitive as
329+ the config exists, but the package wasn't available. Since 18.09 <literal>pkgs.screen</literal>
330+ will be added to <literal>environment.systemPackages</literal>.
331+ </para>
332+ </listitem>
325333 </itemizedlist>
326334 </section>
327335</section>
nixos/modules/programs/screen.nix+3−1
@@ -1,4 +1,4 @@
1−{ config, lib, ... }:
1+{ config, lib, pkgs, ... }:
22
33let
44 inherit (lib) mkOption mkIf types;
@@ -25,6 +25,8 @@ in
2525
2626 config = mkIf (cfg.screenrc != "") {
2727 environment.etc."screenrc".text = cfg.screenrc;
28+
29+ environment.systemPackages = [ pkgs.screen ];
2830 };
2931
3032}
pkgs/applications/editors/atom/default.nix+4−4
@@ -60,12 +60,12 @@ let
6060 };
6161in stdenv.lib.mapAttrs common {
6262 atom = {
63− version = "1.27.2";
64− sha256 = "0xriv142asc82mjxzkqsafaqalxa3icz4781z2fsgyfkkw6zbz2v";
63+ version = "1.28.0";
64+ sha256 = "0k09316897qb9ypkqm6w78nz7sj5385xfdm9bm97m8pka7v61g7h";
6565 };
6666
6767 atom-beta = {
68− version = "1.28.0-beta3";
69− sha256 = "07mmzkbc7xzcwh6ylrs2w1g3l5gmyfk0gdmr2kzr6jdr00cq73y0";
68+ version = "1.29.0-beta0";
69+ sha256 = "05xk63wsjfssf8ckph2bgrxaf99fhz3gs8n8pira8cc9yjk7diz7";
7070 };
7171}
pkgs/applications/graphics/freecad/default.nix+13−4
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, cmake, coin3d, xercesc, ode, eigen, qt4, opencascade, gts
2−, hdf5, vtk, medfile, boost, zlib, python27Packages, swig, gfortran
2+, hdf5, vtk, medfile, boost, zlib, python27Packages, swig, gfortran, fetchpatch
33, soqt, libf2c, makeWrapper, makeDesktopItem
44, mpi ? null }:
55
@@ -16,9 +16,18 @@ in stdenv.mkDerivation rec {
1616 sha256 = "1yv6abdzlpn4wxy315943xwrnbywxqfgkjib37qwfvbb8y9p60df";
1717 };
1818
19− buildInputs = with pythonPackages; [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost
20− zlib python swig gfortran soqt libf2c makeWrapper matplotlib mpi vtk hdf5 medfile
21− pycollada pyside pysideShiboken pysideTools pivy
19+ buildInputs = with pythonPackages; [ cmake coin3d xercesc ode eigen qt4 opencascade gts
20+ zlib swig gfortran soqt libf2c makeWrapper mpi vtk hdf5 medfile
21+ ] ++ (with pythonPackages; [
22+ matplotlib pycollada pyside pysideShiboken pysideTools pivy python boost
23+ ]);
24+
25+ patches = [
26+ # Fix for finding boost_python. Boost >= 1.67.0 appends the Python version.
27+ (fetchpatch {
28+ url = https://github.com/FreeCAD/FreeCAD/commit/3c9e6b038ed544e446c61695dab62f83e781a28a.patch;
29+ sha256 = "0f09qywzn0y41hylizb5g8jy74fi53iqmvqr5zznaz16wpw4hqbp";
30+ })
2231 ];
2332
2433 enableParallelBuilding = true;
pkgs/applications/misc/octoprint/default.nix+23−15
@@ -6,29 +6,37 @@ let
66 overrides = self: super: with self; {
77 backports_ssl_match_hostname = self.backports_ssl_match_hostname_3_4_0_2;
88
9+ flask = super.flask.overridePythonAttrs (oldAttrs: rec {
10+ version = "0.12.4";
11+ src = oldAttrs.src.override {
12+ inherit version;
13+ sha256 = "2ea22336f6d388b4b242bc3abf8a01244a8aa3e236e7407469ef78c16ba355dd";
14+ };
15+ });
16+
917 tornado = buildPythonPackage rec {
10− name = "tornado-${version}";
18+ pname = "tornado";
1119 version = "4.0.2";
1220
1321 propagatedBuildInputs = [ backports_ssl_match_hostname certifi ];
1422
15− src = fetchurl {
16− url = "mirror://pypi/t/tornado/${name}.tar.gz";
23+ src = fetchPypi {
24+ inherit pname version;
1725 sha256 = "1yhvn8i05lp3b1953majg48i8pqsyj45h34aiv59hrfvxcj5234h";
1826 };
1927 };
2028
2129 flask_login = buildPythonPackage rec {
22− name = "Flask-Login-${version}";
30+ pname = "Flask-Login";
2331 version = "0.2.2";
2432
25− src = fetchurl {
26− url = "mirror://pypi/F/Flask-Login/${name}.tar.gz";
33+ src = fetchPypi {
34+ inherit pname version;
2735 sha256 = "09ygn0r3i3jz065a5psng6bhlsqm78msnly4z6x39bs48r5ww17p";
2836 };
2937
3038 propagatedBuildInputs = [ flask ];
31− buildInputs = [ nose ];
39+ checkInputs = [ nose ];
3240
3341 # No tests included
3442 doCheck = false;
@@ -37,10 +45,9 @@ let
3745 jinja2 = buildPythonPackage rec {
3846 pname = "Jinja2";
3947 version = "2.8.1";
40− name = "${pname}-${version}";
4148
42− src = fetchurl {
43− url = "mirror://pypi/J/Jinja2/${name}.tar.gz";
49+ src = fetchPypi {
50+ inherit pname version;
4451 sha256 = "14aqmhkc9rw5w0v311jhixdm6ym8vsm29dhyxyrjfqxljwx1yd1m";
4552 };
4653
@@ -53,14 +60,14 @@ let
5360 };
5461
5562in pythonPackages.buildPythonApplication rec {
56− name = "OctoPrint-${version}";
57− version = "1.3.6";
63+ pname = "OctoPrint";
64+ version = "1.3.8";
5865
5966 src = fetchFromGitHub {
6067 owner = "foosel";
6168 repo = "OctoPrint";
6269 rev = version;
63− sha256 = "0pgpkjw5zjnks5bky51gjaksq8mhrzkl52kpgf799hl35pd08xr3";
70+ sha256 = "00zd5yrlihwfd3ly0mxibr77ffa8r8vkm6jhml2ml43dqb99caa3";
6471 };
6572
6673 # We need old Tornado
@@ -70,9 +77,10 @@ in pythonPackages.buildPythonApplication rec {
7077 psutil pyserial flask_login netaddr markdown sockjs-tornado
7178 pylru pyyaml sarge feedparser netifaces click websocket_client
7279 scandir chainmap future dateutil futures wrapt monotonic emoji
80+ frozendict
7381 ];
7482
75− buildInputs = with pythonPackages; [ nose mock ddt ];
83+ checkInputs = with pythonPackages; [ nose mock ddt ];
7684
7785 # Jailbreak dependencies.
7886 postPatch = ''
@@ -88,7 +96,7 @@ in pythonPackages.buildPythonApplication rec {
8896 -e 's,PyYAML>=[^"]*,PyYAML,g' \
8997 -e 's,scandir>=[^"]*,scandir,g' \
9098 -e 's,werkzeug>=[^"]*,werkzeug,g' \
91− -e 's,psutil>=[^"]*,psutil,g' \
99+ -e 's,psutil==[^"]*,psutil,g' \
92100 -e 's,requests>=[^"]*,requests,g' \
93101 -e 's,future>=[^"]*,future,g' \
94102 -e 's,pyserial>=[^"]*,pyserial,g' \
pkgs/development/python-modules/aiohttp/default.nix+7−1
@@ -12,6 +12,8 @@
1212, gunicorn
1313, pytest-mock
1414, async_generator
15+, pytestrunner
16+, pytest-timeout
1517}:
1618
1719buildPythonPackage rec {
@@ -25,11 +27,15 @@ buildPythonPackage rec {
2527
2628 disabled = pythonOlder "3.5";
2729
28− checkInputs = [ pytest gunicorn pytest-mock async_generator ];
30+ checkInputs = [ pytest gunicorn pytest-mock async_generator pytestrunner pytest-timeout ];
2931
3032 propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
3133 ++ lib.optional (pythonOlder "3.7") idna-ssl;
3234
35+
36+ # Several test failures. Need to be looked into.
37+ doCheck = false;
38+
3339 meta = with lib; {
3440 description = "Asynchronous HTTP Client/Server for Python and asyncio";
3541 license = licenses.asl20;
pkgs/development/python-modules/git-annex-adapter/default.nix+11−7
@@ -1,5 +1,6 @@
1−{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, fetchurl
2−, utillinux, pygit2, gitMinimal, git-annex }:
1+{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, fetchpatch
2+, utillinux, pygit2, gitMinimal, git-annex
3+}:
34
45buildPythonPackage rec {
56 pname = "git-annex-adapter";
@@ -22,10 +23,13 @@ buildPythonPackage rec {
2223 '';
2324
2425 # TODO: Remove for next version
25− patches = fetchurl {
26− url = "https://github.com/alpernebbi/git-annex-adapter/commit/9f64c4b99cae7b681820c6c7382e1e40489f4d1e.patch";
27− sha256 = "1hbw8651amjskakvs1wv2msd1wryrq0vpryvbispg5267rs8q7hp";
28− };
26+ patches = [
27+ ./not-a-git-repo-testcase.patch
28+ (fetchpatch {
29+ url = "https://github.com/alpernebbi/git-annex-adapter/commit/9f64c4b99cae7b681820c6c7382e1e40489f4d1e.patch";
30+ sha256 = "0yh66gial6bx7kbl7s7lkzljnkpgvgr8yahqqcq9z76d0w752dir";
31+ })
32+ ];
2933
3034 checkInputs = [
3135 utillinux # `rev` is needed in tests/test_process.py
@@ -43,6 +47,6 @@ buildPythonPackage rec {
4347 homepage = https://github.com/alpernebbi/git-annex-adapter;
4448 description = "Call git-annex commands from Python";
4549 license = licenses.gpl3Plus;
46− maintainers = with maintainers; [ dotlambda ];
50+ maintainers = with maintainers; [ dotlambda ma27 ];
4751 };
4852}
pkgs/development/python-modules/git-annex-adapter/not-a-git-repo-testcase.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/tests/test_process.py b/tests/test_process.py
2+index 493fc8f..feb1833 100644
3+--- a/tests/test_process.py
4++++ b/tests/test_process.py
5+@@ -126,7 +126,7 @@ class TestProcessOnEmptyDir(TempDirTestCase):
6+ with self.assertRaises(subprocess.CalledProcessError) as cm:
7+ runner('status', '-sb')
8+ self.assertIn(
9+- "fatal: Not a git repository",
10++ "fatal: not a git repository",
11+ cm.exception.stderr,
12+ )
13+
pkgs/development/python-modules/jupyterlab_launcher/default.nix+2−2
@@ -1,11 +1,11 @@
11{ lib, buildPythonPackage, fetchPypi, jsonschema, notebook }:
22buildPythonPackage rec {
33 pname = "jupyterlab_launcher";
4− version = "0.11.0";
4+ version = "0.10.5";
55
66 src = fetchPypi {
77 inherit pname version;
8− sha256 = "2eea0cc95b312e136e6e5abc64e2e62baaeca493cd32f553c2205f79e01c0423";
8+ sha256 = "1v1ir182zm2dl14lqvqjhx2x40wnp0i32n6rldxnm1allfpld1n7";
99 };
1010
1111 propagatedBuildInputs = [
pkgs/development/python-modules/monty/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, buildPythonPackage, fetchFromGitHub, nose, numpy, six, ruamel_yaml, msgpack-python, coverage, coveralls, pymongo, lsof }:
2+
3+buildPythonPackage rec {
4+ pname = "monty";
5+ version = "1.0.2";
6+
7+ # No tests in Pypi
8+ src = fetchFromGitHub {
9+ owner = "materialsvirtuallab";
10+ repo = pname;
11+ rev = "v${version}";
12+ sha256 = "0ss70fanavqdpj56yymj06lacgnknb4ap39m2q28v9lz32cs6xdg";
13+ };
14+
15+ propagatedBuildInputs = [ nose numpy six ruamel_yaml msgpack-python coverage coveralls pymongo lsof ];
16+
17+ preCheck = ''
18+ substituteInPlace tests/test_os.py \
19+ --replace 'def test_which(self):' '#' \
20+ --replace 'py = which("python")' '#' \
21+ --replace 'self.assertEqual(os.path.basename(py), "python")' '#' \
22+ --replace 'self.assertEqual("/usr/bin/find", which("/usr/bin/find"))' '#' \
23+ --replace 'self.assertIs(which("non_existent_exe"), None)' '#' \
24+ '';
25+
26+ meta = with stdenv.lib; {
27+ description = "Serves as a complement to the Python standard library by providing a suite of tools to solve many common problems";
28+ longDescription = "
29+ Monty implements supplementary useful functions for Python that are not part of the
30+ standard library. Examples include useful utilities like transparent support for zipped files, useful design
31+ patterns such as singleton and cached_class, and many more.
32+ ";
33+ homepage = https://github.com/materialsvirtuallab/monty;
34+ license = licenses.mit;
35+ maintainers = with maintainers; [ psyanticy ];
36+ };
37+}
38+
pkgs/development/python-modules/pandas/default.nix+21−8
@@ -24,8 +24,9 @@
2424}:
2525
2626let
27− inherit (stdenv.lib) optional optionalString concatStringsSep;
27+ inherit (stdenv.lib) optional optionals optionalString concatStringsSep;
2828 inherit (stdenv) isDarwin;
29+
2930in buildPythonPackage rec {
3031 pname = "pandas";
3132 version = "0.23.1";
@@ -67,6 +68,24 @@ in buildPythonPackage rec {
6768 "['pandas/src/klib', 'pandas/src', '$cpp_sdk']"
6869 '';
6970
71+
72+ disabledTests = stdenv.lib.concatMapStringsSep " and " (s: "not " + s) ([
73+ # since dateutil 0.6.0 the following fails: test_fallback_plural, test_ambiguous_flags, test_ambiguous_compat
74+ # was supposed to be solved by https://github.com/dateutil/dateutil/issues/321, but is not the case
75+ "test_fallback_plural"
76+ "test_ambiguous_flags"
77+ "test_ambiguous_compat"
78+ # Locale-related
79+ "test_names"
80+ "test_dt_accessor_datetime_name_accessors"
81+ "test_datetime_name_accessors"
82+ # Can't import from test folder
83+ "test_oo_optimizable"
84+ ] ++ optionals isDarwin [
85+ "test_locale"
86+ "test_clipboard"
87+ ]);
88+
7089 checkPhase = ''
7190 runHook preCheck
7291 ''
@@ -79,13 +98,7 @@ in buildPythonPackage rec {
7998 chmod a+x pbcopy pbpaste
8099 export PATH=$(pwd):$PATH
81100 '' + ''
82− # since dateutil 0.6.0 the following fails: test_fallback_plural, test_ambiguous_flags, test_ambiguous_compat
83− # was supposed to be solved by https://github.com/dateutil/dateutil/issues/321, but is not the case
84− py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network \
85− -k "not test_fallback_plural and \
86− not test_ambiguous_flags and \
87− not test_ambiguous_compat \
88− ${optionalString isDarwin "and not test_locale and not test_clipboard"}"
101+ py.test $out/${python.sitePackages}/pandas --skip-slow --skip-network -k "$disabledTests"
89102 runHook postCheck
90103 '';
91104
pkgs/development/python-modules/python-periphery/default.nixnew file+21
@@ -0,0 +1,21 @@
1+{ lib, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "python-periphery";
5+ version = "1.1.1";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "fe8f351934edce72cd919b4eb070878ebff551db5e21aea61e0f446101f0a79f";
10+ };
11+
12+ # Some tests require physical probing and additional physical setup
13+ doCheck = false;
14+
15+ meta = {
16+ homepage = https://github.com/vsergeev/python-periphery;
17+ description = "Linux Peripheral I/O (GPIO, LED, PWM, SPI, I2C, MMIO, Serial) with Python 2 & 3";
18+ license = lib.licenses.mit;
19+ maintainers = with lib.maintainers; [ bandresen ];
20+ };
21+}
pkgs/development/python-modules/seekpath/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, buildPythonPackage, fetchPypi, numpy, future, spglib, glibcLocales }:
2+
3+buildPythonPackage rec {
4+ pname = "seekpath";
5+ version = "1.8.1";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "0bdc0400c96952525b1165894807e4bec90aaedb11cfeb27a57414e6091eb026";
10+ };
11+
12+ LC_ALL = "en_US.utf-8";
13+
14+ propagatedBuildInputs = [ numpy spglib future ];
15+
16+ nativeBuildInputs = [ glibcLocales ];
17+
18+ meta = with stdenv.lib; {
19+ description = "A module to obtain and visualize band paths in the Brillouin zone of crystal structures.";
20+ homepage = https://github.com/giovannipizzi/seekpath;
21+ license = licenses.mit;
22+ maintainers = with maintainers; [ psyanticy ];
23+ };
24+}
25+
pkgs/misc/emulators/dolphin-emu/master.nix+61−35
@@ -1,56 +1,74 @@
1−{ stdenv, fetchFromGitHub, pkgconfig, cmake, makeWrapper, bluez, ffmpeg, libao, libGLU_combined, gtk2, glib
2−, pcre, gettext, libpthreadstubs, libXrandr, libXext, libXxf86vm, libXinerama, libSM, readline
3−, openal, libXdmcp, portaudio, libusb, libevdev, curl, qt5
1+{ stdenv, fetchFromGitHub, makeWrapper, makeDesktopItem, pkgconfig, cmake, qt5
2+, bluez, ffmpeg, libao, libGLU_combined, gtk2, glib, pcre, gettext, libXrandr
3+, libpthreadstubs, libusb, libXext, libXxf86vm, libXinerama, libSM, libXdmcp
4+, readline, openal, libevdev, portaudio, curl
45, vulkan-loader ? null
56, libpulseaudio ? null
7+
68# - Inputs used for Darwin
7−, CoreBluetooth, cf-private, ForceFeedback, IOKit, OpenGL
8−, wxGTK
9−, libpng
10−, hidapi
9+, CoreBluetooth, cf-private, ForceFeedback, IOKit, OpenGL, wxGTK, libpng, hidapi
1110
1211# options
1312, dolphin-wxgui ? true
14−, dolphin-qtgui ? false
15−}:
13+, dolphin-qtgui ? false }:
14+
1615# XOR: ensure only wx XOR qt are enabled
1716assert dolphin-wxgui || dolphin-qtgui;
1817assert !(dolphin-wxgui && dolphin-qtgui);
1918
20−stdenv.mkDerivation rec {
21− name = "dolphin-emu-20180609";
19+let
20+ desktopItem = makeDesktopItem {
21+ name = "dolphin-emu-master";
22+ exec = stdenv.lib.optionalString dolphin-wxgui "dolphin-emu-wx"
23+ + stdenv.lib.optionalString dolphin-qtgui "dolphin-emu-qt";
24+ icon = "dolphin-emu";
25+ comment = "A Wii/GameCube Emulator";
26+ desktopName = "Dolphin Emulator (master)";
27+ genericName = "Wii/GameCube Emulator";
28+ categories = "Game;Emulator;";
29+ startupNotify = "false";
30+ };
31+in stdenv.mkDerivation rec {
32+ name = "dolphin-emu-${version}";
33+ version = "2018-06-22";
34+
2235 src = fetchFromGitHub {
2336 owner = "dolphin-emu";
2437 repo = "dolphin";
25− rev = "1d87584d69e3fdd730502127274fcbd85cebd591";
26− sha256 = "0sxzmmv8gvfsy96p1x1aya1cpq0237gip3zkl4bks4grgxf8958b";
38+ rev = "971972069cc2813ee7fa5b630c67baab2b35d12d";
39+ sha256 = "0kf6dzvwmvhqb1iy15ldap0mmfbyyzl5f14jc65a110vwv5sww7n";
2740 };
2841
42+ enableParallelBuilding = true;
43+ nativeBuildInputs = [ cmake pkgconfig ]
44+ ++ stdenv.lib.optionals stdenv.isLinux [ makeWrapper ];
45+
46+ buildInputs = [
47+ curl ffmpeg libao libGLU_combined gtk2 glib pcre gettext libpthreadstubs
48+ libXrandr libXext libXxf86vm libXinerama libSM readline openal libXdmcp
49+ portaudio libusb libpulseaudio libpng hidapi
50+ ] ++ stdenv.lib.optionals dolphin-qtgui [ qt5.qtbase ]
51+ ++ stdenv.lib.optionals stdenv.isLinux [ bluez libevdev vulkan-loader ]
52+ ++ stdenv.lib.optionals stdenv.isDarwin [ wxGTK CoreBluetooth cf-private
53+ ForceFeedback IOKit OpenGL ];
54+
2955 cmakeFlags = [
3056 "-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include"
3157 "-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include"
3258 "-DGTK2_INCLUDE_DIRS=${gtk2.dev}/include/gtk-2.0"
3359 "-DENABLE_LTO=True"
3460 ] ++ stdenv.lib.optionals (!dolphin-qtgui) [ "-DENABLE_QT2=False" ]
35− ++ stdenv.lib.optionals stdenv.isDarwin [ "-DOSX_USE_DEFAULT_SEARCH_PATH=True" ];
36−
37− enableParallelBuilding = true;
38−
39− nativeBuildInputs = [ cmake pkgconfig ]
40− ++ stdenv.lib.optionals stdenv.isLinux [ makeWrapper ];
41−
42− buildInputs = [ curl ffmpeg libao libGLU_combined gtk2 glib pcre
43− gettext libpthreadstubs libXrandr libXext libXxf86vm libXinerama libSM readline openal
44− libXdmcp portaudio libusb libpulseaudio libpng hidapi
45− ] ++ stdenv.lib.optionals stdenv.isDarwin [ wxGTK CoreBluetooth cf-private ForceFeedback IOKit OpenGL ]
46− ++ stdenv.lib.optionals stdenv.isLinux [ bluez libevdev vulkan-loader ]
47− ++ stdenv.lib.optionals dolphin-qtgui [ qt5.qtbase ];
61+ ++ stdenv.lib.optionals stdenv.isDarwin [
62+ "-DOSX_USE_DEFAULT_SEARCH_PATH=True"
63+ ];
4864
4965 # - Change install path to Applications relative to $out
5066 # - Allow Dolphin to use nix-provided libraries instead of building them
5167 preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
52− sed -i -e 's,/Applications,Applications,g' Source/Core/DolphinWX/CMakeLists.txt
53− sed -i -e 's,if(LIBUSB_FOUND AND NOT APPLE),if(LIBUSB_FOUND),g' CMakeLists.txt
68+ sed -i -e 's,/Applications,Applications,g' \
69+ Source/Core/DolphinWX/CMakeLists.txt
70+ sed -i -e 's,if(LIBUSB_FOUND AND NOT APPLE),if(LIBUSB_FOUND),g' \
71+ CMakeLists.txt
5472 sed -i -e 's,if(NOT APPLE),if(true),g' CMakeLists.txt
5573 '';
5674
@@ -58,16 +76,24 @@ stdenv.mkDerivation rec {
5876 mkdir -p "$out/Applications"
5977 '';
6078
61− postInstall = stdenv.lib.optionalString stdenv.isLinux ''
62− wrapProgram $out/bin/dolphin-emu-nogui --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
63− wrapProgram $out/bin/dolphin-emu-wx --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
79+ postInstall = ''
80+ cp -r ${desktopItem}/share/applications $out/share
81+ '' + stdenv.lib.optionalString stdenv.isLinux ''
82+ wrapProgram $out/bin/dolphin-emu-nogui \
83+ --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
84+ wrapProgram $out/bin/dolphin-emu-wx \
85+ --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
86+ '' + stdenv.lib.optionalString (dolphin-qtgui && stdenv.isLinux) ''
87+ wrapProgram $out/bin/dolphin-emu \
88+ --prefix LD_LIBRARY_PATH : ${vulkan-loader}/lib
89+ ln -sf $out/bin/dolphin-emu $out/bin/dolphin-emu-qt
6490 '';
6591
66− meta = {
67− homepage = http://dolphin-emu.org/;
92+ meta = with stdenv.lib; {
93+ homepage = "http://dolphin-emu.org";
6894 description = "Gamecube/Wii/Triforce emulator for x86_64 and ARM";
69− license = stdenv.lib.licenses.gpl2;
70− maintainers = with stdenv.lib.maintainers; [ MP2E ];
95+ license = licenses.gpl2;
96+ maintainers = with maintainers; [ MP2E ];
7197 branch = "master";
7298 # x86_32 is an unsupported platform.
7399 # Enable generic build if you really want a JIT-less binary.
pkgs/tools/package-management/appimage-run/default.nixnew file+146
@@ -0,0 +1,146 @@
1+{ stdenv, writeScript, buildFHSUserEnv, coreutils
2+, extraPkgs ? pkgs: [] }:
3+
4+buildFHSUserEnv {
5+ name = "appimage-run";
6+
7+ # Most of the packages were taken from the Steam chroot
8+ targetPkgs = pkgs: with pkgs; [
9+ gtk3
10+ bashInteractive
11+ gnome3.zenity
12+ python2
13+ xorg.xrandr
14+ which
15+ perl
16+ xdg_utils
17+ iana-etc
18+ ] ++ extraPkgs pkgs;
19+
20+ multiPkgs = pkgs: with pkgs; [
21+ desktop-file-utils
22+ xorg.libXcomposite
23+ xorg.libXtst
24+ xorg.libXrandr
25+ xorg.libXext
26+ xorg.libX11
27+ xorg.libXfixes
28+ libGL
29+
30+ gst_all_1.gstreamer
31+ gst_all_1.gst-plugins-ugly
32+ libdrm
33+ xorg.xkeyboardconfig
34+ xorg.libpciaccess
35+
36+ glib
37+ gtk2
38+ bzip2
39+ zlib
40+ gdk_pixbuf
41+
42+ xorg.libXinerama
43+ xorg.libXdamage
44+ xorg.libXcursor
45+ xorg.libXrender
46+ xorg.libXScrnSaver
47+ xorg.libXxf86vm
48+ xorg.libXi
49+ xorg.libSM
50+ xorg.libICE
51+ gnome2.GConf
52+ freetype
53+ (curl.override { gnutlsSupport = true; sslSupport = false; })
54+ nspr
55+ nss
56+ fontconfig
57+ cairo
58+ pango
59+ expat
60+ dbus
61+ cups
62+ libcap
63+ SDL2
64+ libusb1
65+ dbus-glib
66+ libav
67+ atk
68+ libudev0-shim
69+ networkmanager098
70+
71+ xorg.libXt
72+ xorg.libXmu
73+ xorg.libxcb
74+ libGLU
75+ libuuid
76+ libogg
77+ libvorbis
78+ SDL
79+ SDL2_image
80+ glew110
81+ openssl
82+ libidn
83+ tbb
84+ wayland
85+ mesa_noglu
86+ libxkbcommon
87+
88+ flac
89+ freeglut
90+ libjpeg
91+ libpng12
92+ libsamplerate
93+ libmikmod
94+ libtheora
95+ libtiff
96+ pixman
97+ speex
98+ SDL_image
99+ SDL_ttf
100+ SDL_mixer
101+ SDL2_ttf
102+ SDL2_mixer
103+ gstreamer
104+ gst-plugins-base
105+ libappindicator-gtk2
106+ libcaca
107+ libcanberra
108+ libgcrypt
109+ libvpx
110+ librsvg
111+ xorg.libXft
112+ libvdpau
113+ alsaLib
114+ strace
115+ ];
116+
117+ runScript = writeScript "appimage-exec" ''
118+ #!${stdenv.shell}
119+ APPIMAGE="$(realpath "$1")"
120+
121+ if [ ! -x "$APPIMAGE" ]; then
122+ echo "fatal: $APPIMAGE is not executable"
123+ exit 1
124+ fi
125+
126+ SHA256="$(${coreutils}/bin/sha256sum "$APPIMAGE" | cut -d ' ' -f 1)"
127+ SQUASHFS_ROOT="''${XDG_CACHE_HOME:-$HOME/.cache}/appimage-run/$SHA256/"
128+ mkdir -p "$SQUASHFS_ROOT"
129+
130+ export APPDIR="$SQUASHFS_ROOT/squashfs-root"
131+ if [ ! -x "$APPDIR" ]; then
132+ cd "$SQUASHFS_ROOT"
133+ "$APPIMAGE" --appimage-extract 2>/dev/null
134+ fi
135+
136+ cd "$APPDIR"
137+ export PATH="$PATH:$PWD/usr/bin"
138+ export APPIMAGE_SILENT_INSTALL=1
139+
140+ if [ -n "$APPIMAGE_DEBUG_EXEC" ]; then
141+ exec "$APPIMAGE_DEBUG_EXEC"
142+ fi
143+
144+ exec ./AppRun
145+ '';
146+}
pkgs/tools/package-management/home-manager/default.nix+3−3
@@ -6,13 +6,13 @@
66stdenv.mkDerivation rec {
77
88 name = "home-manager-${version}";
9− version = "2017-12-7";
9+ version = "2018-06-14";
1010
1111 src = fetchFromGitHub{
1212 owner = "rycee";
1313 repo = "home-manager";
14− rev = "0be32c9d42e3a8739263ae7886dc2448c833c19c";
15− sha256 = "06lmnzlf5fmiicbgai27ad9m3bj980xf8ifdpc5lzbsy77pfcfap";
14+ rev = "5641ee3f942e700de35b28fc879b0d8a10a7a1fe";
15+ sha256 = "0bqzwczbr5c2y3ms7m7ly0as9zsnqwljq61ci2y2gbqzw3md1x2j";
1616 };
1717
1818 nativeBuildInputs = [ makeWrapper ];
pkgs/top-level/all-packages.nix+2
@@ -502,6 +502,8 @@ with pkgs;
502502 buildTools = androidenv.buildTools;
503503 };
504504
505+ appimage-run = callPackage ../tools/package-management/appimage-run {};
506+
505507 apt-cacher-ng = callPackage ../servers/http/apt-cacher-ng { };
506508
507509 apt-offline = callPackage ../tools/misc/apt-offline { };
pkgs/top-level/php-packages.nix+2−2
@@ -328,11 +328,11 @@ let
328328
329329 composer = pkgs.stdenv.mkDerivation rec {
330330 name = "composer-${version}";
331− version = "1.6.3";
331+ version = "1.6.5";
332332
333333 src = pkgs.fetchurl {
334334 url = "https://getcomposer.org/download/${version}/composer.phar";
335− sha256 = "1dna9ng77nw002l7hq60b6vz0f1snmnsxj1l7cg4f877msxppjsj";
335+ sha256 = "0d1lpvq8wylh5qgxhbqb5r7j3c6qk0bz4b5vg187jsl6z6fvxgk7";
336336 };
337337
338338 unpackPhase = ":";
pkgs/top-level/python-packages.nix+7−1
@@ -291,7 +291,9 @@ in {
291291
292292 logster = callPackage ../development/python-modules/logster { };
293293
294− mail-parser = callPackage ../development/python-modules/mail-parser { };
294+ mail-parser = callPackage ../development/python-modules/mail-parser { };
295+
296+ monty = callPackage ../development/python-modules/monty { };
295297
296298 mpi4py = callPackage ../development/python-modules/mpi4py {
297299 mpi = pkgs.openmpi;
@@ -434,6 +436,8 @@ in {
434436 then ../development/python-modules/python3-openid
435437 else ../development/python-modules/python-openid) { };
436438
439+ python-periphery = callPackage ../development/python-modules/python-periphery { };
440+
437441 python-sql = callPackage ../development/python-modules/python-sql { };
438442
439443 python-stdnum = callPackage ../development/python-modules/python-stdnum { };
@@ -458,6 +462,8 @@ in {
458462
459463 salmon-mail = callPackage ../development/python-modules/salmon-mail { };
460464
465+ seekpath = callPackage ../development/python-modules/seekpath { };
466+
461467 serversyncstorage = callPackage ../development/python-modules/serversyncstorage {};
462468
463469 simpleeval = callPackage ../development/python-modules/simpleeval { };