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: 6221782074b0
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ec161d224024
Choose a head ref
Loading
Showing with 2,309 additions and 675 deletions.
  1. +2 −1 nixos/modules/config/console.nix
  2. +8 −7 nixos/modules/programs/command-not-found/command-not-found.pl
  3. +1 −2 nixos/modules/services/x11/desktop-managers/plasma5.nix
  4. +4 −4 pkgs/applications/networking/seafile-client/default.nix
  5. +2 −2 pkgs/applications/science/robotics/qgroundcontrol/default.nix
  6. +1 −1 pkgs/development/libraries/kde-frameworks/kinit/0004-start_kdeinit-environ-hard-limit.patch
  7. +20 −12 pkgs/development/libraries/properties-cpp/default.nix
  8. +0 −15 pkgs/development/libraries/qt-5/5.14/qtwebkit-darwin-no-readline.patch
  9. +11 −5 pkgs/development/ocaml-modules/sedlex/2.nix
  10. +3 −3 pkgs/development/ocaml-modules/zarith/default.nix
  11. +15 −9 pkgs/development/python-modules/asgiref/default.nix
  12. +2 −2 pkgs/development/python-modules/branca/default.nix
  13. +33 −0 pkgs/development/python-modules/hole/default.nix
  14. +2 −2 pkgs/development/python-modules/mysqlclient/default.nix
  15. +2 −2 pkgs/development/python-modules/sqlite-utils/default.nix
  16. +2 −2 pkgs/development/python-modules/trytond/default.nix
  17. +1 −0 pkgs/development/tools/electron/default.nix
  18. +2 −1 pkgs/development/tools/electron/generic.nix
  19. +7 −8 pkgs/games/spring/default.nix
  20. +3 −3 pkgs/misc/seafile-shared/default.nix
  21. +1 −1 pkgs/servers/home-assistant/component-packages.nix
  22. +2 −2 pkgs/servers/zigbee2mqtt/default.nix
  23. +2,179 −590 pkgs/servers/zigbee2mqtt/node-packages.nix
  24. +1 −1 pkgs/tools/package-management/nix/default.nix
  25. +3 −0 pkgs/top-level/all-packages.nix
  26. +2 −0 pkgs/top-level/python-packages.nix
3 changes: 2 additions & 1 deletion nixos/modules/config/console.nix
Original file line number Diff line number Diff line change
@@ -145,7 +145,8 @@ in
'';

systemd.services.systemd-vconsole-setup =
{ before = [ "display-manager.service" ];
{
before = optional config.services.xserver.enable "display-manager.service";
after = [ "systemd-udev-settle.service" ];
restartTriggers = [ vconsoleConf consoleEnv ];
};
15 changes: 8 additions & 7 deletions nixos/modules/programs/command-not-found/command-not-found.pl
Original file line number Diff line number Diff line change
@@ -27,25 +27,26 @@
my $package = @$res[0]->{package};
if ($ENV{"NIX_AUTO_INSTALL"} // "") {
print STDERR <<EOF;
The program $program is currently not installed. It is provided by
the package $package, which I will now install for you.
The program '$program' is currently not installed. It is provided by
the package '$package', which I will now install for you.
EOF
;
exit 126 if system("nix-env", "-iA", "nixos.$package") == 0;
} elsif ($ENV{"NIX_AUTO_RUN"} // "") {
exec("nix-shell", "-p", $package, "--run", shell_quote("exec", @ARGV));
} else {
print STDERR <<EOF;
The program ‘$program’ is currently not installed. You can install it by typing:
nix-env -iA nixos.$package
The program '$program' is not in your PATH. You can make it available in a
ephemeral shell by typing:
nix-shell -p $package
EOF
}
} else {
print STDERR <<EOF;
The program $program is currently not installed. It is provided by
several packages. You can install it by typing one of the following:
The program '$program' is not in your PATH. It is provided by several packages.
You can make it available in a ephemeral shell by typing one of the following:
EOF
print STDERR " nix-env -iA nixos.$_->{package}\n" foreach @$res;
print STDERR " nix-shell -p $_->{package}\n" foreach @$res;
}

exit 127;
3 changes: 1 addition & 2 deletions nixos/modules/services/x11/desktop-managers/plasma5.nix
Original file line number Diff line number Diff line change
@@ -8,8 +8,7 @@ let
cfg = xcfg.desktopManager.plasma5;

inherit (pkgs) kdeApplications kdeFrameworks plasma5;
libsForQt5 = pkgs.libsForQt514;
qt5 = pkgs.qt514;
inherit (pkgs) qt5 libsForQt5;
inherit (pkgs) writeText;

pulseaudio = config.hardware.pulseaudio;
8 changes: 4 additions & 4 deletions pkgs/applications/networking/seafile-client/default.nix
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{ mkDerivation, lib, fetchFromGitHub, pkgconfig, cmake, qtbase, qttools
, seafile-shared, ccnet, jansson, libsearpc
, seafile-shared, jansson, libsearpc
, withShibboleth ? true, qtwebengine }:

mkDerivation rec {
pname = "seafile-client";
version = "7.0.9";
version = "7.0.10";

src = fetchFromGitHub {
owner = "haiwen";
repo = "seafile-client";
rev = "v${version}";
sha256 = "0pcn6lfzma2hvpwsp9q0002wvym7zabpp8fvq29l101gzirn79m9";
sha256 = "082v1qbysrqb7m0lk56fpx8n403fjxbvbj0svm4mkjl6mzs2cv22";
};

nativeBuildInputs = [ pkgconfig cmake ];
@@ -21,7 +21,7 @@ mkDerivation rec {
++ lib.optional withShibboleth "-DBUILD_SHIBBOLETH_SUPPORT=ON";

qtWrapperArgs = [
"--suffix PATH : ${lib.makeBinPath [ ccnet seafile-shared ]}"
"--suffix PATH : ${lib.makeBinPath [ seafile-shared ]}"
];

meta = with lib; {
4 changes: 2 additions & 2 deletions pkgs/applications/science/robotics/qgroundcontrol/default.nix
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@

mkDerivation rec {
pname = "qgroundcontrol";
version = "4.0.10";
version = "4.0.11";

qtInputs = [
qtbase qtcharts qtlocation qtserialport qtsvg qtquickcontrols2
@@ -62,7 +62,7 @@ mkDerivation rec {
owner = "mavlink";
repo = pname;
rev = "v${version}";
sha256 = "1jmhhd2nwxq3m9rzzmrjls8f6hhj52ia71b1sv4vvcjh802cha8g";
sha256 = "14pk1vmcpg2cc5p100chbhnynclcwyqmyb2n2w11vvk0l2c9z1gz";
fetchSubmodules = true;
};

Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ index f2db3e9..4ff2602 100644
if (read(0, &len, sizeof(unsigned)) == sizeof(unsigned)
- && len && len < (1 << 12)) {
+ && len) {
+ if (len >= (1 << 14)) {
+ if (len >= (1 << 20)) {
+ fprintf(stderr, "%s: exceeded environment length limit", argv[0]);
+ return 1;
+ }
32 changes: 20 additions & 12 deletions pkgs/development/libraries/properties-cpp/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,35 @@
{ stdenv, fetchurl, cmake, pkgconfig, gtest, doxygen
, graphviz, lcov }:
{ stdenv
, fetchurl
, cmake
, pkg-config
, gtest
, doxygen
, graphviz
, lcov
}:

stdenv.mkDerivation rec {
pname = "properties-cpp";
version = "0.0.1";

src = let srcver = version+"+14.10.20140730"; in
fetchurl {
url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${srcver}.orig.tar.gz";
sha256 = "08vjyv7ibn6jh2ikj5v48kjpr3n6hlkp9qlvdn8r0vpiwzah0m2w";
};

buildInputs = [ cmake gtest doxygen pkgconfig graphviz lcov ];
src = let srcver = "${version}+14.10.20140730"; in
fetchurl {
url = "https://launchpad.net/ubuntu/+archive/primary/+files/${pname}_${srcver}.orig.tar.gz";
sha256 = "08vjyv7ibn6jh2ikj5v48kjpr3n6hlkp9qlvdn8r0vpiwzah0m2w";
};

patchPhase = ''
postPatch = ''
sed -i "/add_subdirectory(tests)/d" CMakeLists.txt
'';

nativeBuildInputs = [ cmake pkg-config ];

buildInputs = [ gtest doxygen graphviz lcov ];

meta = with stdenv.lib; {
homepage = "https://launchpad.net/properties-cpp";
description = "A very simple convenience library for handling properties and signals in C++11";
license = licenses.lgpl3;
license = licenses.lgpl3Only;
maintainers = with maintainers; [ edwtjo ];
};

}
Original file line number Diff line number Diff line change
@@ -28,18 +28,3 @@ diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h
#define HAVE_SYS_TIMEB_H 1

#if !PLATFORM(GTK) && !PLATFORM(QT)
diff --git a/Source/WTF/wtf/PlatformMac.cmake b/Source/WTF/wtf/PlatformMac.cmake
--- a/Source/WTF/wtf/PlatformMac.cmake
+++ b/Source/WTF/wtf/PlatformMac.cmake
@@ -2,11 +2,9 @@ set(WTF_LIBRARY_TYPE SHARED)

find_library(COCOA_LIBRARY Cocoa)
find_library(COREFOUNDATION_LIBRARY CoreFoundation)
-find_library(READLINE_LIBRARY Readline)
list(APPEND WTF_LIBRARIES
${COREFOUNDATION_LIBRARY}
${COCOA_LIBRARY}
- ${READLINE_LIBRARY}
libicucore.dylib
)

16 changes: 11 additions & 5 deletions pkgs/development/ocaml-modules/sedlex/2.nix
Original file line number Diff line number Diff line change
@@ -14,35 +14,41 @@ then throw "sedlex is not available for OCaml ${ocaml.version}"
else

let
unicodeVersion = "12.1.0";
baseUrl = "https://www.unicode.org/Public/${unicodeVersion}";

DerivedCoreProperties = fetchurl {
url = "https://www.unicode.org/Public/12.1.0/ucd/DerivedCoreProperties.txt";
url = "${baseUrl}/ucd/DerivedCoreProperties.txt";
sha256 = "0s6sn1yr9qmb2i6gf8dir2zpsbjv1frdfzy3i2yjylzvf637msx6";
};
DerivedGeneralCategory = fetchurl {
url = "https://www.unicode.org/Public/12.1.0/ucd/extracted/DerivedGeneralCategory.txt";
url = "${baseUrl}/ucd/extracted/DerivedGeneralCategory.txt";
sha256 = "1rifzq9ba6c58dn0lrmcb5l5k4ksx3zsdkira3m5p6h4i2wriy3q";
};
PropList = fetchurl {
url = "https://www.unicode.org/Public/12.1.0/ucd/PropList.txt";
url = "${baseUrl}/ucd/PropList.txt";
sha256 = "0gsb1jpj3mnqbjgbavi4l95gl6g4agq58j82km22fdfg63j3w3fk";
};
in
buildDunePackage rec {
pname = "sedlex";
version = "2.1";
version = "2.2";

useDune2 = true;

src = fetchFromGitHub {
owner = "ocaml-community";
repo = "sedlex";
rev = "v${version}";
sha256 = "05f6qa8x3vhpdz1fcnpqk37fpnyyq13icqsk2gww5idjnh6kng26";
sha256 = "18dwl2is5j26z6b1c47b81wvcpxw44fasppdadsrs9vsw63rwcm3";
};

propagatedBuildInputs = [
gen uchar ocaml-migrate-parsetree ppx_tools_versioned
];

preBuild = ''
rm src/generator/data/dune
ln -s ${DerivedCoreProperties} src/generator/data/DerivedCoreProperties.txt
ln -s ${DerivedGeneralCategory} src/generator/data/DerivedGeneralCategory.txt
ln -s ${PropList} src/generator/data/PropList.txt
6 changes: 3 additions & 3 deletions pkgs/development/ocaml-modules/zarith/default.nix
Original file line number Diff line number Diff line change
@@ -6,9 +6,9 @@
let source =
if stdenv.lib.versionAtLeast ocaml.version "4.02"
then {
version = "1.10";
url = "https://github.com/ocaml/Zarith/archive/release-1.10.tar.gz";
sha256 = "1qxrl0v2mk9wghc1iix3n0vfz2jbg6k5wpn1z7p02m2sqskb0zhb";
version = "1.11";
url = "https://github.com/ocaml/Zarith/archive/release-1.11.tar.gz";
sha256 = "111n33flg4aq5xp5jfksqm4yyz6mzxx9ps9a4yl0dz8h189az5pr";
} else {
version = "1.3";
url = "http://forge.ocamlcore.org/frs/download.php/1471/zarith-1.3.tgz";
24 changes: 15 additions & 9 deletions pkgs/development/python-modules/asgiref/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,31 @@
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
{ stdenv
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
version = "3.2.10";
version = "3.3.1";
pname = "asgiref";

disabled = pythonOlder "3.5";

# PyPI tarball doesn't include tests directory
src = fetchFromGitHub {
owner = "django";
repo = pname;
rev = version;
sha256 = "1sj4yy2injaskwfi5pkb542jl8s6ljijnyra81gpw0pgd3d0bgxv";
sha256 = "00r4l9x425wkbac6b6c2ksm2yjinrvvdf0ajizrzq32h0jg82016";
};

propagatedBuildInputs = [ async-timeout ];

checkInputs = [ pytest pytest-asyncio ];

checkPhase = ''
py.test
'';
checkInputs = [
pytestCheckHook
pytest-asyncio
];

meta = with stdenv.lib; {
description = "Reference ASGI adapters and channel layers";
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/branca/default.nix
Original file line number Diff line number Diff line change
@@ -10,11 +10,11 @@

buildPythonPackage rec {
pname = "branca";
version = "0.4.1";
version = "0.4.2";

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

checkInputs = [ pytest selenium ];
33 changes: 33 additions & 0 deletions pkgs/development/python-modules/hole/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchPypi
, aiohttp
, async-timeout
}:

buildPythonPackage rec {
pname = "hole";
version = "0.5.1";

src = fetchPypi {
inherit pname version;
sha256 = "065fxc0l16j8xkjd0y0qar9cmqmjyp8jcshakbakldkfscpx3s5m";
};

propagatedBuildInputs = [
aiohttp
async-timeout
];

# no tests are present
doCheck = false;

pythonImportsCheck = [ "hole" ];

meta = with lib; {
description = "Python API for interacting with a Pihole instance.";
homepage = "https://github.com/home-assistant-ecosystem/python-hole";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/mysqlclient/default.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

buildPythonPackage rec {
pname = "mysqlclient";
version = "2.0.2";
version = "2.0.3";

nativeBuildInputs = [
libmysqlclient
@@ -17,7 +17,7 @@ buildPythonPackage rec {

src = fetchPypi {
inherit pname version;
sha256 = "8df057b08fc27d8f7106bfa997d0a21e2acef017f905f06d6fb0aa6a20d4d2b2";
sha256 = "f6ebea7c008f155baeefe16c56cd3ee6239f7a5a9ae42396c2f1860f08a7c432";
};

meta = with stdenv.lib; {
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/sqlite-utils/default.nix
Original file line number Diff line number Diff line change
@@ -15,12 +15,12 @@

buildPythonPackage rec {
pname = "sqlite-utils";
version = "3.1";
version = "3.1.1";
disabled = pythonOlder "3.6";

src = fetchPypi {
inherit pname version;
sha256 = "53950eb89f77066d6caf553c52ec01701a8bebbaffa9e0a627df3f229ca8720f";
sha256 = "54df73364662ff3c763da3b42b9d27b1771ebfb3361caa255e44e1bf1544015b";
};

propagatedBuildInputs = [
4 changes: 2 additions & 2 deletions pkgs/development/python-modules/trytond/default.nix
Original file line number Diff line number Diff line change
@@ -25,12 +25,12 @@ with stdenv.lib;

buildPythonApplication rec {
pname = "trytond";
version = "5.8.1";
version = "5.8.2";
disabled = pythonOlder "3.5";

src = fetchPypi {
inherit pname version;
sha256 = "9c1afca73b13ede07680015d69f611c7dec33b8c22565de70f0cbbf0464b8db7";
sha256 = "dea7d11ec0b4584a438fab7a1acb56864b32cc9e7d6ffa166572f75a2b033dc0";
};

# Tells the tests which database to use
1 change: 1 addition & 0 deletions pkgs/development/tools/electron/default.nix
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@
, libdrm
, mesa
, libxkbcommon
, libappindicator-gtk3
}@args:

let
3 changes: 2 additions & 1 deletion pkgs/development/tools/electron/generic.nix
Original file line number Diff line number Diff line change
@@ -13,6 +13,7 @@
, libdrm
, mesa
, libxkbcommon
, libappindicator-gtk3
}:

version: hashes:
@@ -56,7 +57,7 @@ let
};

electronLibPath = with stdenv.lib; makeLibraryPath (
[ libuuid at-spi2-atk at-spi2-core ]
[ libuuid at-spi2-atk at-spi2-core libappindicator-gtk3 ]
++ optionals (! versionOlder version "9.0.0") [ libdrm mesa ]
++ optionals (! versionOlder version "11.0.0") [ libxkbcommon ]
);
Loading