Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 272d854642f6
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3b2944dbcbba
Choose a head ref
  • 17 commits
  • 11 files changed
  • 9 contributors

Commits on Oct 9, 2018

  1. kbd: Rename some keymaps.

    From upstream kbd, some keymap names are reused across very different
    keyboard layouts. This is a a problem because loadkeys just picks the
    first keymap it sees. The clashing names lead to e.g.  "loadkeys no"
    defaulting to a norwegian dvorak map instead of the much more common
    qwerty one.
    
    Used Arch Linux's list of keymaps that need renaming, with a small
    deviation: the norwegian dvorak map becomes dvorak-no instead of
    no-dvorak, to match the naming scheme for all the other dvorak maps.
    
    fixes #47878
    
    (cherry picked from commit f1987fb)
    plutotulp authored and Mic92 committed Oct 9, 2018
    Copy the full SHA
    df6d40f View commit details

Commits on Oct 10, 2018

  1. buildRustPackage: fix regex for separating lib and bin

    E.g. exa was wrongly put into /lib, as it matches
    
      .*.a
    
    but not
    
      .*\.a
    
    (cherry picked from commit 64d0676)
    erictapen authored and timokau committed Oct 10, 2018
    Copy the full SHA
    5647e9a View commit details

Commits on Oct 13, 2018

  1. pythonPackages.pytest.setupHook: run in correct phase

    It was reported that the 2nd solution wasn't working as expected because
    it was ran in the wrong phase.
    
    This commit creates a new phase, in between the installCheckPhase and distPhase.
    
    (cherry picked from commit 20a4a4b)
    FRidh committed Oct 13, 2018
    Copy the full SHA
    284a128 View commit details
  2. pythonPackages.autobahn: run hooks

    (cherry picked from commit b75ea62)
    FRidh committed Oct 13, 2018
    Copy the full SHA
    c918e05 View commit details
  3. pythonPackages.autobahn: use checkInputs

    (cherry picked from commit 1c3f730)
    lopsided98 authored and FRidh committed Oct 13, 2018
    Copy the full SHA
    6306db4 View commit details
  4. python.pkgs.bootstrapped-pip: update pip, setuptools and wheel

    (cherry picked from commit b05a596)
    FRidh committed Oct 13, 2018
    Copy the full SHA
    de7a2df View commit details
  5. python.pkgs.pip: 18.0 -> 18.1

    (cherry picked from commit 474c78a)
    FRidh committed Oct 13, 2018
    Copy the full SHA
    1d61c41 View commit details

Commits on Oct 16, 2018

  1. mariadb.connector-c: 2.3.6 -> 2.3.7 (#48078)

    (cherry picked from commit 98e5a0f)
    
    contains security fix for CVE-2018-3081
    florianjacob authored and xeji committed Oct 16, 2018
    Copy the full SHA
    ab27d00 View commit details
  2. Copy the full SHA
    b97e1dc View commit details

Commits on Oct 20, 2018

  1. Merge staging into release

    FRidh committed Oct 20, 2018
    2
    Copy the full SHA
    4a4e11f View commit details
  2. python36: 3.6.6 -> 3.6.7

    (cherry picked from commit 241bab3)
    FRidh committed Oct 20, 2018
    Copy the full SHA
    8a3e8bd View commit details
  3. python37: 3.7.0 -> 3.7.1

    (cherry picked from commit e4d8443)
    FRidh committed Oct 20, 2018
    Copy the full SHA
    50a6f21 View commit details

Commits on Nov 7, 2018

  1. Copy the full SHA
    0d2483f View commit details

Commits on Nov 8, 2018

  1. Merge pull request #49888 from timokau/numpy-high-cpu-fix

    numpy: fix high cpu count bug
    timokau authored Nov 8, 2018
    Copy the full SHA
    56090c4 View commit details

Commits on Nov 10, 2018

  1. Copy the full SHA
    9110d40 View commit details

Commits on Nov 11, 2018

  1. python27: add patch to fix CVE-2018-1000802

    (cherry picked from commit ae3e9b5)
    fpletz authored and FRidh committed Nov 11, 2018
    Copy the full SHA
    496a238 View commit details
  2. Copy the full SHA
    3b2944d View commit details
4 changes: 2 additions & 2 deletions pkgs/build-support/rust/default.nix
Original file line number Diff line number Diff line change
@@ -94,8 +94,8 @@ in stdenv.mkDerivation (args // {
installPhase = args.installPhase or ''
runHook preInstall
mkdir -p $out/bin $out/lib
find target/release -maxdepth 1 -type f -executable ! \( -regex ".*.\(so.[0-9.]+\|so\|a\|dylib\)" \) -print0 | xargs -r -0 cp -t $out/bin
find target/release -maxdepth 1 -regex ".*.\(so.[0-9.]+\|so\|a\|dylib\)" -print0 | xargs -r -0 cp -t $out/lib
find target/release -maxdepth 1 -type f -executable ! \( -regex ".*\.\(so.[0-9.]+\|so\|a\|dylib\)" \) -print0 | xargs -r -0 cp -t $out/bin
find target/release -maxdepth 1 -regex ".*\.\(so.[0-9.]+\|so\|a\|dylib\)" -print0 | xargs -r -0 cp -t $out/lib
rmdir --ignore-fail-on-non-empty $out/lib $out/bin
runHook postInstall
'';
6 changes: 6 additions & 0 deletions pkgs/development/interpreters/python/cpython/2.7/default.nix
Original file line number Diff line number Diff line change
@@ -74,6 +74,12 @@ let
url = "file://${./type_getattro.patch}";
sha256 = "11v9yx20hs3jmw0wggzvmw39qs4mxay4kb8iq2qjydwy9ya61nrd";
})

(fetchpatch {
name = "CVE-2018-1000802.patch";
url = "https://github.com/python/cpython/pull/8985.patch";
sha256 = "1c8nq2c9sjqa8ipl62hiandg6a7lzrwwfhi3ky6jd3pxgyalrh97";
})
] ++ optionals (x11Support && stdenv.isDarwin) [
./use-correct-tcl-tk-on-darwin.patch
] ++ optionals stdenv.isLinux [
4 changes: 2 additions & 2 deletions pkgs/development/interpreters/python/cpython/3.6/default.nix
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ with stdenv.lib;

let
majorVersion = "3.6";
minorVersion = "6";
minorVersion = "7";
minorVersionSuffix = "";
version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
libPrefix = "python${majorVersion}";
@@ -51,7 +51,7 @@ in stdenv.mkDerivation {

src = fetchurl {
url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz";
sha256 = "0vz1wqg50zq6g15givdx1s2rq5752y5g2f1978bs6wvf8mfw36yp";
sha256 = "0zgp8nvz3rkiz5cxd42vgpah4rvw3kmg9qz9lfq36rfnm40i9zc1";
};

NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
4 changes: 2 additions & 2 deletions pkgs/development/interpreters/python/cpython/3.7/default.nix
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ with stdenv.lib;

let
majorVersion = "3.7";
minorVersion = "0";
minorVersion = "1";
minorVersionSuffix = "";
version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
libPrefix = "python${majorVersion}";
@@ -48,7 +48,7 @@ in stdenv.mkDerivation {

src = fetchurl {
url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz";
sha256 = "0j9mic5c9lbd2b20wka7hily7szz740wy9ilfrczxap63rnrk0h3";
sha256 = "0v9x4h22rh5cwpsq1mwpdi3c9lc9820lzp2nmn9g20llij72nzps";
};

NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
22 changes: 10 additions & 12 deletions pkgs/development/python-modules/autobahn/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, isPy33,
unittest2, mock, pytest, trollius, asyncio,
pytest-asyncio, futures, cffi,
six, twisted, txaio, zope_interface
{ lib, buildPythonPackage, fetchPypi, isPy3k, isPy33,
six, txaio, twisted, zope_interface, cffi, asyncio, trollius, futures,
mock, pytest
}:
buildPythonPackage rec {
pname = "autobahn";
@@ -12,19 +11,18 @@ buildPythonPackage rec {
sha256 = "b69858e0be4bff8437b0bd82a0db1cbef7405e16bd9354ba587c043d6d5e1ad9";
};

# Upstream claim python2 support, but tests require pytest-asyncio which
# is pythn3 only. Therefore, tests are skipped for python2.
doCheck = isPy3k;
checkInputs = stdenv.lib.optionals isPy3k [ unittest2 mock pytest pytest-asyncio ];
propagatedBuildInputs = [ cffi six twisted zope_interface txaio ] ++
(stdenv.lib.optional isPy33 asyncio) ++
(stdenv.lib.optionals (!isPy3k) [ trollius futures ]);
propagatedBuildInputs = [ six txaio twisted zope_interface cffi ] ++
(lib.optional isPy33 asyncio) ++
(lib.optionals (!isPy3k) [ trollius futures ]);

checkInputs = [ mock pytest ];
checkPhase = ''
runHook preCheck
USE_TWISTED=true py.test $out
runHook postCheck
'';

meta = with stdenv.lib; {
meta = with lib; {
description = "WebSocket and WAMP in Python for Twisted and asyncio.";
homepage = "https://crossbar.io/autobahn";
license = licenses.mit;
12 changes: 6 additions & 6 deletions pkgs/development/python-modules/bootstrapped-pip/default.nix
Original file line number Diff line number Diff line change
@@ -3,26 +3,26 @@
let
wheel_source = fetchPypi {
pname = "wheel";
version = "0.31.1";
version = "0.32.1";
format = "wheel";
sha256 = "80044e51ec5bbf6c894ba0bc48d26a8c20a9ba629f4ca19ea26ecfcf87685f5f";
sha256 = "15hizylh761jcaz8zfdc3wg30jf33izaakyv1p82ppx2y5rgg8cz";
};
setuptools_source = fetchPypi {
pname = "setuptools";
version = "40.2.0";
version = "40.4.3";
format = "wheel";
sha256 = "ea3796a48a207b46ea36a9d26de4d0cc87c953a683a7b314ea65d666930ea8e6";
sha256 = "1zzryv1fqx4nk7hzv4afxpl8k7f60lc0qkhxlc8sqjs4igakfhff";
};

in stdenv.mkDerivation rec {
pname = "pip";
version = "18.0";
version = "18.1";
name = "${python.libPrefix}-bootstrapped-${pname}-${version}";

src = fetchPypi {
inherit pname version;
format = "wheel";
sha256 = "070e4bf493c7c2c9f6a08dd797dd3c066d64074c38e9e8a0fb4e6541f266d96c";
sha256 = "7909d0a0932e88ea53a7014dfd14522ffef91a464daaaf5c573343852ef98550";
};

unpackPhase = ''
11 changes: 9 additions & 2 deletions pkgs/development/python-modules/numpy/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, lib, fetchPypi, python, buildPythonPackage, isPyPy, gfortran, pytest, blas }:
{ stdenv, lib, fetchPypi, fetchpatch, python, buildPythonPackage, isPyPy, gfortran, pytest, blas }:

buildPythonPackage rec {
pname = "numpy";
@@ -14,7 +14,14 @@ buildPythonPackage rec {
nativeBuildInputs = [ gfortran pytest ];
buildInputs = [ blas ];

patches = lib.optionals (python.hasDistutilsCxxPatch or false) [
patches = [
# fix a bug with high cpu count (https://github.com/numpy/numpy/issues/12087)
(fetchpatch {
name = "limit-default-for-get_num_build_jobs-to-8.patch";
url = "https://github.com/numpy/numpy/commit/4c05fed01c68a305abf62135695bc61606746683.patch";
sha256 = "1j2jlaibbx1fjszxzkgxrz7k8id34kg3gbc2fh4ib6y7hfnbqqz5";
})
] ++ lib.optionals (python.hasDistutilsCxxPatch or false) [
# We patch cpython/distutils to fix https://bugs.python.org/issue1222585
# Patching of numpy.distutils is needed to prevent it from undoing the
# patch to distutils.
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/pip/default.nix
Original file line number Diff line number Diff line change
@@ -10,11 +10,11 @@

buildPythonPackage rec {
pname = "pip";
version = "18.0";
version = "18.1";

src = fetchPypi {
inherit pname version;
sha256 = "a0e11645ee37c90b40c46d607070c4fd583e2cd46231b1c06e389c5e814eed76";
sha256 = "c0a292bd977ef590379a3f05d7b7f65135487b67470f6281289a94e015650ea1";
};

# pip detects that we already have bootstrapped_pip "installed", so we need
8 changes: 5 additions & 3 deletions pkgs/development/python-modules/pytest/default.nix
Original file line number Diff line number Diff line change
@@ -30,9 +30,11 @@ buildPythonPackage rec {

# Remove .pytest_cache when using py.test in a Nix build
setupHook = writeText "pytest-hook" ''
postFixupHooks+=(
'find $out -name .pytest_cache -type d -exec rm -rf {} +'
)
pytestcachePhase() {
find $out -name .pytest_cache -type d -exec rm -rf {} +
}
preDistPhases+=" pytestcachePhase"
'';

meta = with stdenv.lib; {
13 changes: 13 additions & 0 deletions pkgs/os-specific/linux/kbd/default.nix
Original file line number Diff line number Diff line change
@@ -25,6 +25,19 @@ stdenv.mkDerivation rec {
# Add Neo keymap subdirectory
sed -i -e 's,^KEYMAPSUBDIRS *= *,&i386/neo ,' data/Makefile.am
# Renaming keymaps with name clashes, because loadkeys just picks
# the first keymap it sees. The clashing names lead to e.g.
# "loadkeys no" defaulting to a norwegian dvorak map instead of
# the much more common qwerty one.
pushd data/keymaps/i386
mv qwertz/cz{,-qwertz}.map
mv olpc/es{,-olpc}.map
mv olpc/pt{,-olpc}.map
mv dvorak/{no.map,dvorak-no.map}
mv fgGIod/trf{,-fgGIod}.map
mv colemak/{en-latin9,colemak}.map
popd
# Fix the path to gzip/bzip2.
substituteInPlace src/libkeymap/findfile.c \
--replace gzip ${gzip}/bin/gzip \
4 changes: 2 additions & 2 deletions pkgs/servers/sql/mariadb/default.nix
Original file line number Diff line number Diff line change
@@ -180,11 +180,11 @@ everything = stdenv.mkDerivation (common // {

connector-c = stdenv.mkDerivation rec {
name = "mariadb-connector-c-${version}";
version = "2.3.6";
version = "2.3.7";

src = fetchurl {
url = "https://downloads.mariadb.org/interstitial/connector-c-${version}/mariadb-connector-c-${version}-src.tar.gz/from/http%3A//nyc2.mirrors.digitalocean.com/mariadb/";
sha256 = "15iy5iqp0njbwbn086x2dq8qnbkaci7ydvi84cf5z8fxvljis9vb";
sha256 = "13izi35vvxhiwl2dsnqrz75ciisy2s2k30giv7hrm01qlwnmiycl";
name = "mariadb-connector-c-${version}-src.tar.gz";
};