From a89197a11d852870fb174d2c2975c4b4e4b83c1f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 26 Mar 2022 10:48:54 +0000 Subject: [PATCH 01/35] checkSSLCert: 2.22.0 -> 2.23.0 --- pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix b/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix index 966040428382..b55b47cd7afd 100644 --- a/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix +++ b/pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix @@ -10,13 +10,13 @@ stdenv.mkDerivation rec { pname = "check_ssl_cert"; - version = "2.22.0"; + version = "2.23.0"; src = fetchFromGitHub { owner = "matteocorti"; repo = "check_ssl_cert"; rev = "v${version}"; - sha256 = "sha256-ytnaygAVKppyyUnxfMlwf9GvHzt8SN5I+b2FTcyaM/4="; + sha256 = "sha256-RGl6Fgm9FVaZQMWHl93RwHvrScz69VgbIyDBqMh3PVo="; }; nativeBuildInputs = [ From 87c0118ab1873a48f584566daf05ce6d691e8e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 28 Mar 2022 12:29:40 +0200 Subject: [PATCH 02/35] sshuttle: 1.0.5 -> 1.1.0, add SuperSandro2000 as maintainer --- pkgs/tools/security/sshuttle/default.nix | 10 ++++------ pkgs/tools/security/sshuttle/sudo.patch | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/tools/security/sshuttle/default.nix b/pkgs/tools/security/sshuttle/default.nix index 959712488a20..4b4bbd3788b3 100644 --- a/pkgs/tools/security/sshuttle/default.nix +++ b/pkgs/tools/security/sshuttle/default.nix @@ -11,11 +11,11 @@ python3Packages.buildPythonApplication rec { pname = "sshuttle"; - version = "1.0.5"; + version = "1.1.0"; src = python3Packages.fetchPypi { inherit pname version; - sha256 = "fd8c691aac2cb80933aae7f94d9d9e271a820efc5c48e73408f1a90da426a1bd"; + sha256 = "sha256-IfuRvfOStQ5422uNdelbc6ydr9Nh4mV+eE5nRWEhkxU="; }; patches = [ ./sudo.patch ]; @@ -27,9 +27,7 @@ python3Packages.buildPythonApplication rec { nativeBuildInputs = [ makeWrapper python3Packages.setuptools-scm ]; - propagatedBuildInputs = [ python3Packages.psutil ]; - - checkInputs = with python3Packages; [ mock pytestCheckHook flake8 ]; + checkInputs = with python3Packages; [ pytestCheckHook ]; postInstall = '' wrapProgram $out/bin/sshuttle \ @@ -45,6 +43,6 @@ python3Packages.buildPythonApplication rec { Works with Linux and Mac OS and supports DNS tunneling. ''; license = licenses.lgpl21; - maintainers = with maintainers; [ domenkozar carlosdagos ]; + maintainers = with maintainers; [ domenkozar carlosdagos SuperSandro2000 ]; }; } diff --git a/pkgs/tools/security/sshuttle/sudo.patch b/pkgs/tools/security/sshuttle/sudo.patch index 6e8634bd4a1f..d00aab087948 100644 --- a/pkgs/tools/security/sshuttle/sudo.patch +++ b/pkgs/tools/security/sshuttle/sudo.patch @@ -5,7 +5,7 @@ index cab5b1c..e89f8a6 100644 @@ -192,7 +192,7 @@ class FirewallClient: self.auto_nets = [] - python_path = os.path.dirname(os.path.dirname(__file__)) + - argvbase = ([sys.executable, sys.argv[0]] + + argvbase = ([sys.argv[0]] + ['-v'] * (helpers.verbose or 0) + From e7aa35ccf1d2f864d022da23661c702a1099e050 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 28 Mar 2022 13:45:45 +0000 Subject: [PATCH 03/35] python310Packages.aiowebostv: 0.1.3 -> 0.2.0 --- pkgs/development/python-modules/aiowebostv/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiowebostv/default.nix b/pkgs/development/python-modules/aiowebostv/default.nix index db9fbba25b71..17d6d85c3ce2 100644 --- a/pkgs/development/python-modules/aiowebostv/default.nix +++ b/pkgs/development/python-modules/aiowebostv/default.nix @@ -7,7 +7,7 @@ buildPythonPackage rec { pname = "aiowebostv"; - version = "0.1.3"; + version = "0.2.0"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -16,7 +16,7 @@ buildPythonPackage rec { owner = "home-assistant-libs"; repo = pname; rev = "v${version}"; - hash = "sha256-UKDcIo0jhI84WDcSK3fciRqzKjHwbZXkqHjdo7Xt4iE="; + hash = "sha256-A7GiAQIuEXmCfo2pDJESCdAEaLumi1ACXnBMdGKwSvE="; }; propagatedBuildInputs = [ From af26200234b81d2ed83b3937b73099892bcbdea4 Mon Sep 17 00:00:00 2001 From: Ryan Horiguchi Date: Mon, 28 Mar 2022 16:48:58 +0200 Subject: [PATCH 04/35] gnomeExtensions: add gnome40Extensions to gnomeExtensions --- pkgs/desktops/gnome/extensions/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/desktops/gnome/extensions/default.nix b/pkgs/desktops/gnome/extensions/default.nix index f4077cac5b22..d01c28be92c6 100644 --- a/pkgs/desktops/gnome/extensions/default.nix +++ b/pkgs/desktops/gnome/extensions/default.nix @@ -60,7 +60,7 @@ in rec { gnome41Extensions = mapUuidNames (produceExtensionsList "41"); gnome42Extensions = mapUuidNames (produceExtensionsList "42"); - gnomeExtensions = lib.trivial.pipe (gnome41Extensions // gnome42Extensions) [ + gnomeExtensions = lib.trivial.pipe (gnome40Extensions // gnome41Extensions // gnome42Extensions) [ # Apply some custom patches for automatically packaged extensions (callPackage ./extensionOverrides.nix {}) # Add all manually packaged extensions From 2f2049b1fd78bff3395c823baf91da815ddcc116 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 28 Mar 2022 14:51:53 +0000 Subject: [PATCH 05/35] python310Packages.asyncstdlib: 3.10.3 -> 3.10.4 --- pkgs/development/python-modules/asyncstdlib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/asyncstdlib/default.nix b/pkgs/development/python-modules/asyncstdlib/default.nix index ee261946a1ec..5e65dbc02da2 100644 --- a/pkgs/development/python-modules/asyncstdlib/default.nix +++ b/pkgs/development/python-modules/asyncstdlib/default.nix @@ -8,7 +8,7 @@ buildPythonPackage rec { pname = "asyncstdlib"; - version = "3.10.3"; + version = "3.10.4"; disabled = pythonOlder "3.7"; format = "flit"; @@ -16,7 +16,7 @@ buildPythonPackage rec { owner = "maxfischer2781"; repo = pname; rev = "v${version}"; - sha256 = "sha256-Q547XKsn4/U7XbDhZADF4qPpFxAGPmv9bAXSQZnNUIo="; + sha256 = "sha256-zPWXI5iHMCkSVjyNRcXplTadobYCeMv3Unjt+QVF8D8="; }; propagatedBuildInputs = [ From bda820861213579f27b25eec27e80b7e58d9d463 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 28 Mar 2022 15:26:14 +0000 Subject: [PATCH 06/35] python310Packages.azure-mgmt-cognitiveservices: 13.0.0 -> 13.1.0 --- .../python-modules/azure-mgmt-cognitiveservices/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix b/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix index 08b810f752d1..6ede0e0fc70e 100644 --- a/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix @@ -9,12 +9,12 @@ buildPythonPackage rec { pname = "azure-mgmt-cognitiveservices"; - version = "13.0.0"; + version = "13.1.0"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "dc6116e8394d45312c7ad5a9098ce0dd2370bd92d43afd33d8b3bfab724fa498"; + sha256 = "sha256-FXS834v5uDGiEGcQMIv9iaHxhfcW9uY3VmX7l91Tfj4="; }; propagatedBuildInputs = [ From 5cfb6815f3f83ffb6b5800ff372e69c57533dba4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 28 Mar 2022 15:54:26 +0000 Subject: [PATCH 07/35] python310Packages.azure-mgmt-signalr: 1.0.0 -> 1.1.0 --- .../development/python-modules/azure-mgmt-signalr/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-signalr/default.nix b/pkgs/development/python-modules/azure-mgmt-signalr/default.nix index 7abb6250ac61..87da5623e381 100644 --- a/pkgs/development/python-modules/azure-mgmt-signalr/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-signalr/default.nix @@ -10,12 +10,12 @@ buildPythonPackage rec { pname = "azure-mgmt-signalr"; - version = "1.0.0"; + version = "1.1.0"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "43fe90b5c5eb5aa00afcaf2895f1d4417f89ddb7f76bd61204e1253a6767ef7c"; + sha256 = "sha256-lUNIDyP5W+8aIX7manfMqaO2IJJm/+2O+Buv+Bh4EZE="; }; propagatedBuildInputs = [ From 999f3c2b9d61942e3fd07dfaa1d6c51d080351ce Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Mar 2022 17:48:40 +0200 Subject: [PATCH 08/35] pdns: rename from powerdns https://github.com/PowerDNS/pdns https://repology.org/project/pdns/versions --- nixos/modules/services/networking/powerdns.nix | 4 ++-- pkgs/servers/dns/{powerdns => pdns}/default.nix | 0 pkgs/servers/dns/{powerdns => pdns}/version.patch | 0 pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 2 +- 5 files changed, 4 insertions(+), 3 deletions(-) rename pkgs/servers/dns/{powerdns => pdns}/default.nix (100%) rename pkgs/servers/dns/{powerdns => pdns}/version.patch (100%) diff --git a/nixos/modules/services/networking/powerdns.nix b/nixos/modules/services/networking/powerdns.nix index 8cae61b83543..b035698456c0 100644 --- a/nixos/modules/services/networking/powerdns.nix +++ b/nixos/modules/services/networking/powerdns.nix @@ -24,14 +24,14 @@ in { config = mkIf cfg.enable { - systemd.packages = [ pkgs.powerdns ]; + systemd.packages = [ pkgs.pdns ]; systemd.services.pdns = { wantedBy = [ "multi-user.target" ]; after = [ "network.target" "mysql.service" "postgresql.service" "openldap.service" ]; serviceConfig = { - ExecStart = [ "" "${pkgs.powerdns}/bin/pdns_server --config-dir=${configDir} --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no" ]; + ExecStart = [ "" "${pkgs.pdns}/bin/pdns_server --config-dir=${configDir} --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no" ]; }; }; diff --git a/pkgs/servers/dns/powerdns/default.nix b/pkgs/servers/dns/pdns/default.nix similarity index 100% rename from pkgs/servers/dns/powerdns/default.nix rename to pkgs/servers/dns/pdns/default.nix diff --git a/pkgs/servers/dns/powerdns/version.patch b/pkgs/servers/dns/pdns/version.patch similarity index 100% rename from pkgs/servers/dns/powerdns/version.patch rename to pkgs/servers/dns/pdns/version.patch diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index a793fa063f95..a196d7d053f0 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -922,6 +922,7 @@ mapAliases ({ polarssl = throw "'polarssl' has been renamed to/replaced by 'mbedtls'"; # Converted to throw 2022-02-22 polysh = throw "polysh has been removed from nixpkgs as the upstream has abandoned the project"; # Added 2022-01-01 poppler_qt5 = throw "'poppler_qt5' has been renamed to/replaced by 'libsForQt5.poppler'"; # Converted to throw 2022-02-22 + powerdns = pdns; # Added 2022-03-28 # postgresql postgresql96 = postgresql_9_6; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ad9eae28faa5..d2244bc38014 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23226,7 +23226,7 @@ with pkgs; semodule-utils = callPackage ../os-specific/linux/semodule-utils { }; - powerdns = callPackage ../servers/dns/powerdns { + pdns = callPackage ../servers/dns/pdns { boost = boost172; }; From 2a3247480291c808d227b29d125c7324f11b353f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Mar 2022 15:26:04 +0200 Subject: [PATCH 09/35] firefox: fix drmSupport flag In #109133 @alyssais discovered that the drmSupport flag stopped working. This is because Mozilla decided around Firefox 51 (mozbz#1289634) to swap the default values and our flag was asking for the wrong thing all along. Since this flag has now been enabled for multiple years, disabling it would mean a regression for our users. Leaving it enabled should be unproblematic since it only controls whether Firefox shows the EME nagbar, that allows to enable Widevine CDM, when a site requests it. The choice is therefore completely up to the enduser. Disabling this nagbar is still possible at runtime by setting `browser.eme.ui.enabled` to `false`. If Widevine CDM was inadvertently enabled it can be disabled at `media.gmp-widevinecdm.enabled`. Supersedes: #109133 --- .../networking/browsers/firefox/common.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index 64cba1b52a60..2aba65effbd3 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -98,10 +98,18 @@ , googleAPISupport ? geolocationSupport , webrtcSupport ? !privacySupport +# digital rights managemewnt + +# This flag controls whether Firefox will show the nagbar, that allows +# users at runtime the choice to enable Widevine CDM support when a site +# requests it. +# Controlling the nagbar and widevine CDM at runtime is possible by setting +# `browser.eme.ui.enabled` and `media.gmp-widevinecdm.enabled` accordingly +, drmSupport ? true + ## other , crashreporterSupport ? false -, drmSupport ? false , safeBrowsingSupport ? false # As stated by Sylvestre Ledru (@sylvestre) on Nov 22, 2017 at @@ -277,7 +285,7 @@ buildStdenv.mkDerivation ({ ++ flag gssSupport "negotiateauth" ++ flag webrtcSupport "webrtc" ++ flag crashreporterSupport "crashreporter" - ++ lib.optional drmSupport "--enable-eme=widevine" + ++ lib.optional (!drmSupport) "--disable-eme" ++ (if debugBuild then [ "--enable-debug" "--enable-profiling" ] else [ "--disable-debug" "--enable-optimize" ]) From 0aa98b5a31ed5049e61efd3ce2c905e10f191cdd Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Mar 2022 18:40:23 +0200 Subject: [PATCH 10/35] pdns: remove boost override --- pkgs/top-level/all-packages.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d2244bc38014..7fa2d5eb471a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23226,9 +23226,7 @@ with pkgs; semodule-utils = callPackage ../os-specific/linux/semodule-utils { }; - pdns = callPackage ../servers/dns/pdns { - boost = boost172; - }; + pdns = callPackage ../servers/dns/pdns { }; powerdns-admin = callPackage ../applications/networking/powerdns-admin { }; From ed6ba92fa334b512b0cba4002c6ad0d1dd52c455 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 20:39:21 +0200 Subject: [PATCH 11/35] python3Packages.elastic-apm: 6.8.0 -> 6.8.1 --- pkgs/development/python-modules/elastic-apm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/elastic-apm/default.nix b/pkgs/development/python-modules/elastic-apm/default.nix index f273b1a6428c..ea14989dbb13 100644 --- a/pkgs/development/python-modules/elastic-apm/default.nix +++ b/pkgs/development/python-modules/elastic-apm/default.nix @@ -28,7 +28,7 @@ buildPythonPackage rec { pname = "elastic-apm"; - version = "6.8.0"; + version = "6.8.1"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -37,7 +37,7 @@ buildPythonPackage rec { owner = "elastic"; repo = "apm-agent-python"; rev = "v${version}"; - sha256 = "sha256-5G+ALFDEClItXvSQFGari0QdhW+RGV8FukxUoxqphFg="; + sha256 = "sha256-bH7XCk1jPsGalFQ68rQhSyZv9nCZE+xUJyWX828PQQI="; }; propagatedBuildInputs = [ From ffd4e2fe0913fe05b092bdeee833fc733dd77c83 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 20:43:30 +0200 Subject: [PATCH 12/35] python3Packages.azure-mgmt-signalr: disable on older Python releases --- .../python-modules/azure-mgmt-signalr/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-signalr/default.nix b/pkgs/development/python-modules/azure-mgmt-signalr/default.nix index 87da5623e381..baa318bba461 100644 --- a/pkgs/development/python-modules/azure-mgmt-signalr/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-signalr/default.nix @@ -5,17 +5,20 @@ , msrestazure , azure-common , azure-mgmt-core -, azure-mgmt-nspkg +, pythonOlder }: buildPythonPackage rec { pname = "azure-mgmt-signalr"; version = "1.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-lUNIDyP5W+8aIX7manfMqaO2IJJm/+2O+Buv+Bh4EZE="; + hash = "sha256-lUNIDyP5W+8aIX7manfMqaO2IJJm/+2O+Buv+Bh4EZE="; }; propagatedBuildInputs = [ @@ -23,7 +26,6 @@ buildPythonPackage rec { msrestazure azure-common azure-mgmt-core - azure-mgmt-nspkg ]; # has no tests From 93a7c9e4be173e3b669b3d80ae9f65699f5b8c6d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 20:45:44 +0200 Subject: [PATCH 13/35] python3Packages.azure-mgmt-cognitiveservices: disable on older Python releases --- .../azure-mgmt-cognitiveservices/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix b/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix index 6ede0e0fc70e..ea12d27e56bc 100644 --- a/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-cognitiveservices/default.nix @@ -3,28 +3,30 @@ , fetchPypi , azure-common , azure-mgmt-core -, azure-mgmt-nspkg , msrestazure +, pythonOlder }: buildPythonPackage rec { pname = "azure-mgmt-cognitiveservices"; version = "13.1.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-FXS834v5uDGiEGcQMIv9iaHxhfcW9uY3VmX7l91Tfj4="; + hash = "sha256-FXS834v5uDGiEGcQMIv9iaHxhfcW9uY3VmX7l91Tfj4="; }; propagatedBuildInputs = [ msrestazure azure-common azure-mgmt-core - azure-mgmt-nspkg ]; - # has no tests + # Module has no tests doCheck = false; meta = with lib; { From 6d90a2cbf1c500ada84f03f4c3425a8fbfaf3e3f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 20:46:45 +0200 Subject: [PATCH 14/35] python3Packages.asyncstdlib: update ordering --- pkgs/development/python-modules/asyncstdlib/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/asyncstdlib/default.nix b/pkgs/development/python-modules/asyncstdlib/default.nix index 5e65dbc02da2..47cd54405f86 100644 --- a/pkgs/development/python-modules/asyncstdlib/default.nix +++ b/pkgs/development/python-modules/asyncstdlib/default.nix @@ -9,14 +9,15 @@ buildPythonPackage rec { pname = "asyncstdlib"; version = "3.10.4"; - disabled = pythonOlder "3.7"; format = "flit"; + disabled = pythonOlder "3.7"; + src = fetchFromGitHub { owner = "maxfischer2781"; repo = pname; rev = "v${version}"; - sha256 = "sha256-zPWXI5iHMCkSVjyNRcXplTadobYCeMv3Unjt+QVF8D8="; + hash = "sha256-zPWXI5iHMCkSVjyNRcXplTadobYCeMv3Unjt+QVF8D8="; }; propagatedBuildInputs = [ @@ -27,7 +28,9 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ "asyncstdlib" ]; + pythonImportsCheck = [ + "asyncstdlib" + ]; meta = with lib; { description = "Python library that extends the Python asyncio standard library"; From 23a1f8d4cce101784e402b262637e303f044bf92 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 21:00:50 +0200 Subject: [PATCH 15/35] python3Packages.mcstatus: 9.0.2 -> 9.0.3 --- pkgs/development/python-modules/mcstatus/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/mcstatus/default.nix b/pkgs/development/python-modules/mcstatus/default.nix index 848bb7d76ebe..fcacc7cbf763 100644 --- a/pkgs/development/python-modules/mcstatus/default.nix +++ b/pkgs/development/python-modules/mcstatus/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "mcstatus"; - version = "9.0.2"; + version = "9.0.3"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "py-mine"; repo = pname; rev = "v${version}"; - hash = "sha256-+wSBdsTI+vyCLvf+0R6oeWnUc123uLMyjQcp/zUYDOQ="; + hash = "sha256-ckT3eSjOgIG2/Ci9Ig6QLCrO9iMF9VyZNJy9KfHUg4A="; }; nativeBuildInputs = [ From dd3e2f9587d76cf59c4ad1de640c587131e6e3d6 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Mon, 28 Mar 2022 20:13:48 +0200 Subject: [PATCH 16/35] python3Packages.metar: patch another failing test https://github.com/python-metar/python-metar/issues/165 --- pkgs/development/python-modules/metar/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/python-modules/metar/default.nix b/pkgs/development/python-modules/metar/default.nix index 2c518561b999..9c4b30925783 100644 --- a/pkgs/development/python-modules/metar/default.nix +++ b/pkgs/development/python-modules/metar/default.nix @@ -22,6 +22,11 @@ buildPythonPackage rec { url = "https://github.com/python-metar/python-metar/commit/716fa76682e6c2936643d1cf62e3d302ef29aedd.patch"; hash = "sha256-y82NN+KDryOiH+eG+2ycXCO9lqQLsah4+YpGn6lM2As="; }) + (fetchpatch { + # Fix failing test: https://github.com/python-metar/python-metar/issues/165 + url = "https://github.com/python-metar/python-metar/commit/a4f9a4764b99bb0313876366d30728169db2770b.patch"; + hash = "sha256-sURHUb4gCKVMqEWFklTsxF0kr0SxC02Yr0287rZIvC0="; + }) ]; checkInputs = [ pytestCheckHook ]; From 700c4a7055242915c890aa79bd7f534b77a1d65b Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 28 Mar 2022 18:24:59 +0200 Subject: [PATCH 17/35] ocamlPackages.bolt: remove at 1.4 (broken with OCaml 4.02) --- .../ocaml-modules/bolt/default.nix | 69 ------------------- pkgs/top-level/ocaml-packages.nix | 2 - 2 files changed, 71 deletions(-) delete mode 100644 pkgs/development/ocaml-modules/bolt/default.nix diff --git a/pkgs/development/ocaml-modules/bolt/default.nix b/pkgs/development/ocaml-modules/bolt/default.nix deleted file mode 100644 index 46e3b6f16cce..000000000000 --- a/pkgs/development/ocaml-modules/bolt/default.nix +++ /dev/null @@ -1,69 +0,0 @@ -{ lib, stdenv, fetchurl, fetchpatch, ocaml, findlib, ocamlbuild, which, camlp4 }: - -let inherit (lib) getVersion versionAtLeast; in - -assert versionAtLeast (getVersion ocaml) "4.00.0"; -assert versionAtLeast (getVersion findlib) "1.3.3"; - -if versionAtLeast ocaml.version "4.06" -then throw "bolt is not available for OCaml ${ocaml.version}" -else - -stdenv.mkDerivation rec { - pname = "bolt"; - version = "1.4"; - - src = fetchurl { - url = "https://forge.ocamlcore.org/frs/download.php/1043/bolt-${version}.tar.gz"; - sha256 = "1c807wrpxra9sbb34lajhimwra28ldxv04m570567lh2b04n38zy"; - }; - - nativeBuildInputs = [ ocaml findlib ocamlbuild which camlp4 ]; - - strictDeps = true; - - patches = [ - (fetchpatch { - url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/bolt/bolt.1.4/files/opam.patch"; - sha256 = "08cl39r98w312sw23cskd5wian6zg20isn9ki41hnbcgkazhi7pb"; - }) - ]; - - postPatch = '' - patch myocamlbuild.ml < "camlp4of" in ---- -> let camlp4of = "camlp4of" in -EOF - ''; - - # The custom `configure` script does not expect the --prefix - # option. Installation is handled by ocamlfind. - dontAddPrefix = true; - dontAddStaticConfigureFlags = true; - configurePlatforms = [ ]; - - createFindlibDestdir = true; - - buildFlags = [ "all" ]; - - doCheck = true; - checkTarget = "tests"; - - meta = with lib; { - homepage = "http://bolt.x9c.fr"; - description = "A logging tool for the OCaml language"; - longDescription = '' - Bolt is a logging tool for the OCaml language. It is inspired by and - modeled after the famous log4j logging framework for Java. - ''; - license = licenses.lgpl3; - platforms = ocaml.meta.platforms or [ ]; - maintainers = [ maintainers.jirkamarsik ]; - }; -} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index 880048ebc58e..5a4a03fda066 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -83,8 +83,6 @@ let bls12-381-unix = callPackage ../development/ocaml-modules/bls12-381/unix.nix { }; bls12-381-legacy = callPackage ../development/ocaml-modules/bls12-381/legacy.nix { }; - bolt = callPackage ../development/ocaml-modules/bolt { }; - bos = callPackage ../development/ocaml-modules/bos { }; bz2 = callPackage ../development/ocaml-modules/bz2 { }; From 3d7f865ddbcd01b16fc2dc6081ef84ff25b9bd50 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 28 Mar 2022 18:25:07 +0200 Subject: [PATCH 18/35] =?UTF-8?q?ocamlPackages.uutf:=20disable=20with=20OC?= =?UTF-8?q?aml=20=E2=89=A4=204.02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/uutf/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/uutf/default.nix b/pkgs/development/ocaml-modules/uutf/default.nix index 531f811cc431..c76eac45b35d 100644 --- a/pkgs/development/ocaml-modules/uutf/default.nix +++ b/pkgs/development/ocaml-modules/uutf/default.nix @@ -3,6 +3,9 @@ let pname = "uutf"; in +lib.throwIfNot (lib.versionAtLeast ocaml.version "4.03") + "${pname} is not available with OCaml ${ocaml.version}" + stdenv.mkDerivation rec { name = "ocaml${ocaml.version}-${pname}-${version}"; version = "1.0.3"; @@ -23,7 +26,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Non-blocking streaming Unicode codec for OCaml"; homepage = "https://erratique.ch/software/uutf"; - platforms = ocaml.meta.platforms or []; + inherit (ocaml.meta) platforms; license = licenses.bsd3; maintainers = [ maintainers.vbgl ]; }; From 9211608da78fc354236de1e981577d7ac4a43afe Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 28 Mar 2022 18:25:11 +0200 Subject: [PATCH 19/35] ocamlPackages.wasm: disable with OCaml 4.02 --- pkgs/development/ocaml-modules/wasm/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/wasm/default.nix b/pkgs/development/ocaml-modules/wasm/default.nix index 6b0008912906..ffe8479b67e9 100644 --- a/pkgs/development/ocaml-modules/wasm/default.nix +++ b/pkgs/development/ocaml-modules/wasm/default.nix @@ -1,6 +1,6 @@ { stdenv, lib, fetchFromGitHub, ocaml, findlib, ocamlbuild }: -if !lib.versionAtLeast ocaml.version "4.02" +if !lib.versionAtLeast ocaml.version "4.03" || lib.versionOlder "4.13" ocaml.version then throw "wasm is not available for OCaml ${ocaml.version}" else From 9c16cf9005af3f7dc9c7ad013bf09cb6822e22f5 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 28 Mar 2022 18:25:15 +0200 Subject: [PATCH 20/35] =?UTF-8?q?ocamlPackages.ocplib-endian:=20disable=20?= =?UTF-8?q?for=20OCaml=20=E2=89=A4=204.02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/ocplib-endian/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/ocaml-modules/ocplib-endian/default.nix b/pkgs/development/ocaml-modules/ocplib-endian/default.nix index 5cd42884d5b0..1e657fce8dd1 100644 --- a/pkgs/development/ocaml-modules/ocplib-endian/default.nix +++ b/pkgs/development/ocaml-modules/ocplib-endian/default.nix @@ -11,7 +11,7 @@ buildDunePackage rec { sha256 = "sha256-THTlhOfXAPaqTt1qBkht+D67bw6M175QLvXoUMgjks4="; }; - useDune2 = true; + minimalOCamlVersion = "4.03"; nativeBuildInputs = [ cppo ]; From e1537badd3c56cb0d860a03b4b826f17f3b59536 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 21:03:58 +0200 Subject: [PATCH 21/35] python3Packages.pyoverkiz: 1.3.10 -> 1.3.12 --- pkgs/development/python-modules/pyoverkiz/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyoverkiz/default.nix b/pkgs/development/python-modules/pyoverkiz/default.nix index 60d09f35a464..0c3aeada8e80 100644 --- a/pkgs/development/python-modules/pyoverkiz/default.nix +++ b/pkgs/development/python-modules/pyoverkiz/default.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { pname = "pyoverkiz"; - version = "1.3.10"; + version = "1.3.12"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -24,7 +24,7 @@ buildPythonPackage rec { owner = "iMicknl"; repo = "python-overkiz-api"; rev = "v${version}"; - hash = "sha256-XvQDCCxqqY902cpn7Ee48XOvbjBhs0UsJH/b4skjazE="; + hash = "sha256-guL//OHiwlKN55kyoRPIUXuoHOVrho+vSgeV3SAdfNM="; }; nativeBuildInputs = [ From cee1fe7b6fe30283eaa2e64d07a8fd3b861b7733 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 21:14:39 +0200 Subject: [PATCH 22/35] python3Packages.aioairzone: 0.1.2 -> 0.2.0 --- pkgs/development/python-modules/aioairzone/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aioairzone/default.nix b/pkgs/development/python-modules/aioairzone/default.nix index 860362971b23..f17ff4f71c6f 100644 --- a/pkgs/development/python-modules/aioairzone/default.nix +++ b/pkgs/development/python-modules/aioairzone/default.nix @@ -7,7 +7,7 @@ buildPythonPackage rec { pname = "aioairzone"; - version = "0.1.2"; + version = "0.2.0"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -16,7 +16,7 @@ buildPythonPackage rec { owner = "Noltari"; repo = pname; rev = version; - hash = "sha256-8OpC/w83us85NWpRXXLsWsLNiPG3v+8BHAToADdLaP4="; + hash = "sha256-jMmPACC8eVDYqBI2642R/ChKFObmK+yWRzRBQUmi1C0="; }; propagatedBuildInputs = [ From 20e5f8f6a37d4b409f1f20d7e446fce483b0a095 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 21:20:05 +0200 Subject: [PATCH 23/35] python3Packages.aiogithubapi: 22.2.4 -> 22.3.1 --- .../python-modules/aiogithubapi/default.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/aiogithubapi/default.nix b/pkgs/development/python-modules/aiogithubapi/default.nix index 82c1145f9e3f..03dacdef89ba 100644 --- a/pkgs/development/python-modules/aiogithubapi/default.nix +++ b/pkgs/development/python-modules/aiogithubapi/default.nix @@ -5,6 +5,7 @@ , backoff , buildPythonPackage , fetchFromGitHub +, poetry-core , pytest-asyncio , pytestCheckHook , pythonOlder @@ -12,8 +13,8 @@ buildPythonPackage rec { pname = "aiogithubapi"; - version = "22.2.4"; - format = "setuptools"; + version = "22.3.1"; + format = "pyproject"; disabled = pythonOlder "3.8"; @@ -21,9 +22,13 @@ buildPythonPackage rec { owner = "ludeeus"; repo = pname; rev = version; - sha256 = "sha256-2RYpeyX88+eEilK/wLDJ6Ock1JBgIUPWbm/ZBJSQ2pg="; + hash = "sha256-5gKANZtDhIoyfyLdS15JDWTxHBFkaHDUlbVVhRs7MSE="; }; + nativeBuildInputs = [ + poetry-core + ]; + propagatedBuildInputs = [ aiohttp async-timeout @@ -39,7 +44,7 @@ buildPythonPackage rec { postPatch = '' # Upstream is releasing with the help of a CI to PyPI, GitHub releases # are not in their focus - substituteInPlace setup.py \ + substituteInPlace pyproject.toml \ --replace 'version="main",' 'version="${version}",' ''; From f37810ba4ddb9fe77022bb868429a273f6a1d0e2 Mon Sep 17 00:00:00 2001 From: "Aaron L. Zeng" Date: Mon, 28 Mar 2022 02:40:08 -0400 Subject: [PATCH 24/35] ocamlPackages.core_unix: init at 0.14 This is a compatibility package for a soon-to-come breaking change in Jane Street package layout. --- pkgs/development/ocaml-modules/janestreet/0.14.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/ocaml-modules/janestreet/0.14.nix b/pkgs/development/ocaml-modules/janestreet/0.14.nix index 2f9aeea1d628..800b1c1e531a 100644 --- a/pkgs/development/ocaml-modules/janestreet/0.14.nix +++ b/pkgs/development/ocaml-modules/janestreet/0.14.nix @@ -241,6 +241,13 @@ with self; doCheck = false; # we don't have quickcheck_deprecated }; + core_unix = janePackage { + pname = "core_unix"; + hash = "0irfmpx6iksxk2r8mdizjn75h71qh4p2f1s9x2ggckzqj9y904ck"; + meta.description = "Unix-specific portions of Core"; + propagatedBuildInputs = [ core ]; + }; + csvfields = janePackage { pname = "csvfields"; hash = "09jmz6y6nwd96dcx6g8ydicxssi72v1ks276phbc9n19wwg9hkaz"; From 0d3772f6455c0185c9dee3f8c31130e7ad6edff9 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 22 Mar 2022 03:35:51 +0100 Subject: [PATCH 25/35] firefox: add profile-guided optimization Lo and behold, we're finally catching up with Mozillas very own firefox build in terms of speed. PGO is an optimization technique in which in a first step we create a build that supports instrumentation, meaning we can use it to create a profile of how the browser behaved during usage. Then in a second pass we create the final build that uses the acquired profiling data to optimize the browser for the workload it actually received during profiling. The downside is that with PGO we now need to build Firefox twice, which increases the build time from around 20 minutes to roughly 50 minutes. In the Speedometer 2.0 benchmark multiple tests could see a responsiveness improvemeant around 20-25%, which makes the increased build time well worth it. Sadly this benefit seems limited to x86_64-linux, builds on aarch64-linux get stuck during profiling and I haven't found out why. Finally, after a long time, we can say: Closes: #76484 Supersedes: #129503 --- .../from_md/release-notes/rl-2205.section.xml | 8 +++ .../manual/release-notes/rl-2205.section.md | 4 ++ .../networking/browsers/firefox/common.nix | 60 +++++++++++++++++++ 3 files changed, 72 insertions(+) diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml index 579ef65680d7..86c68fcd0ca2 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml @@ -15,6 +15,14 @@
Highlights + + + The firefox browser on + x86_64-linux is now making use of + profile-guided optimization resulting in a much more + responsive browsing experience. + + security.acme.defaults has been added to diff --git a/nixos/doc/manual/release-notes/rl-2205.section.md b/nixos/doc/manual/release-notes/rl-2205.section.md index ba4d4c78049f..f1bb091b8924 100644 --- a/nixos/doc/manual/release-notes/rl-2205.section.md +++ b/nixos/doc/manual/release-notes/rl-2205.section.md @@ -6,6 +6,10 @@ In addition to numerous new and upgraded packages, this release has the followin ## Highlights {#sec-release-22.05-highlights} +- The `firefox` browser on `x86_64-linux` is now making use of + profile-guided optimization resulting in a much more responsive + browsing experience. + - `security.acme.defaults` has been added to simplify configuring settings for many certificates at once. This also opens up the the option to use DNS-01 validation when using `enableACME` on diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index 64cba1b52a60..8d445ac44eb2 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -83,6 +83,7 @@ , gssSupport ? true, libkrb5 , jemallocSupport ? true, jemalloc , ltoSupport ? (stdenv.isLinux && stdenv.is64bit), overrideCC, buildPackages +, pgoSupport ? (stdenv.isLinux && stdenv.isx86_64 && stdenv.hostPlatform == stdenv.buildPlatform), xvfb-run , pipewireSupport ? waylandSupport && webrtcSupport , pulseaudioSupport ? stdenv.isLinux, libpulseaudio , waylandSupport ? true, libxkbcommon, libdrm @@ -164,6 +165,13 @@ buildStdenv.mkDerivation ({ inherit src unpackPhase meta; + # Add another configure-build-profiling run before the final configure phase if we build with pgo + preConfigurePhases = lib.optionals pgoSupport [ + "configurePhase" + "buildPhase" + "profilingPhase" + ]; + patches = [ ] ++ lib.optional (lib.versionAtLeast version "86") ./env_var_for_system_dir-ff86.patch @@ -199,6 +207,7 @@ buildStdenv.mkDerivation ({ which wrapGAppsHook ] + ++ lib.optionals pgoSupport [ xvfb-run ] ++ extraNativeBuildInputs; setOutputFlags = false; # `./mach configure` doesn't understand `--*dir=` flags. @@ -214,6 +223,9 @@ buildStdenv.mkDerivation ({ export MOZ_OBJDIR=$(pwd)/mozobj export MOZBUILD_STATE_PATH=$(pwd)/mozbuild + # Don't try to send libnotify notifications during build + export MOZ_NOSPAM=1 + # Set consistent remoting name to ensure wmclass matches with desktop file export MOZ_APP_REMOTINGNAME="${binaryName}" @@ -228,6 +240,25 @@ buildStdenv.mkDerivation ({ # RBox WASM Sandboxing export WASM_CC=${pkgsCross.wasi32.stdenv.cc}/bin/${pkgsCross.wasi32.stdenv.cc.targetPrefix}cc export WASM_CXX=${pkgsCross.wasi32.stdenv.cc}/bin/${pkgsCross.wasi32.stdenv.cc.targetPrefix}c++ + '' + lib.optionalString pgoSupport '' + if [ -e "$TMPDIR/merged.profdata" ]; then + echo "Configuring with profiling data" + for i in "''${!configureFlagsArray[@]}"; do + if [[ ''${configureFlagsArray[i]} = "--enable-profile-generate=cross" ]]; then + unset 'configureFlagsArray[i]' + fi + done + configureFlagsArray+=( + "--enable-profile-use=cross" + "--with-pgo-profile-path="$TMPDIR/merged.profdata"" + "--with-pgo-jarlog="$TMPDIR/jarlog"" + ) + else + echo "Configuring to generate profiling data" + configureFlagsArray+=( + "--enable-profile-generate=cross" + ) + fi '' + lib.optionalString googleAPISupport '' # Google API key used by Chromium and Firefox. # Note: These are for NixOS/nixpkgs use ONLY. For your own distribution, @@ -336,10 +367,35 @@ buildStdenv.mkDerivation ({ ++ lib.optional jemallocSupport jemalloc ++ extraBuildInputs; + profilingPhase = lib.optionalString pgoSupport '' + # Package up Firefox for profiling + ./mach package + + # Run profiling + ( + export HOME=$TMPDIR + export LLVM_PROFDATA=llvm-profdata + export JARLOG_FILE="$TMPDIR/jarlog" + + xvfb-run -w 10 -s "-screen 0 1920x1080x24" \ + ./mach python ./build/pgo/profileserver.py + ) + + # Copy profiling data to a place we can easily reference + cp ./merged.profdata $TMPDIR/merged.profdata + + # Clean build dir + ./mach clobber + ''; + preBuild = '' cd mozobj ''; + postBuild = '' + cd .. + ''; + makeFlags = extraMakeFlags; separateDebugInfo = enableDebugSymbols; enableParallelBuilding = true; @@ -347,6 +403,10 @@ buildStdenv.mkDerivation ({ # tests were disabled in configureFlags doCheck = false; + preInstall = '' + cd mozobj + ''; + postInstall = lib.optionalString buildStdenv.isLinux '' # Remove SDK cruft. FIXME: move to a separate output? rm -rf $out/share/idl $out/include $out/lib/${binaryName}-devel-* From 6e24b768b357fe906a6fdf739fbd0f108c56149a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 24 Mar 2022 01:21:30 +0100 Subject: [PATCH 26/35] thunderbird: disable pgo support Tries to connect out to the internet, so sorry, no pgo for thunderbird. > console.warn: feeds: "downloadFeed: network connection unavailable" --- .../networking/mailreaders/thunderbird/packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/mailreaders/thunderbird/packages.nix b/pkgs/applications/networking/mailreaders/thunderbird/packages.nix index d559976d8003..e2d4a76df7d0 100644 --- a/pkgs/applications/networking/mailreaders/thunderbird/packages.nix +++ b/pkgs/applications/networking/mailreaders/thunderbird/packages.nix @@ -8,7 +8,7 @@ let in rec { - thunderbird = common rec { + thunderbird = (common rec { pname = "thunderbird"; version = "91.7.0"; application = "comm/mail"; @@ -35,5 +35,7 @@ rec { updateScript = callPackage ./update.nix { attrPath = "thunderbird-unwrapped"; }; + }).override { + pgoSupport = false; # console.warn: feeds: "downloadFeed: network connection unavailable" }; } From 05a6b3c2b7ef059a1dccb34c8ebc06ffbb4f2d1f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 24 Mar 2022 01:38:12 +0100 Subject: [PATCH 27/35] librewolf: disable pgo support Starts profiling, starts librewolf, but gets stuck and never terminates. --- pkgs/applications/networking/browsers/firefox/packages.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/networking/browsers/firefox/packages.nix b/pkgs/applications/networking/browsers/firefox/packages.nix index 4789d394b73e..94aa4d74feb6 100644 --- a/pkgs/applications/networking/browsers/firefox/packages.nix +++ b/pkgs/applications/networking/browsers/firefox/packages.nix @@ -78,5 +78,6 @@ rec { }).override { crashreporterSupport = false; enableOfficialBranding = false; + pgoSupport = false; # Profiling gets stuck and doesn't terminate. }; } From 4cf4a7b848b45149c07dd69631ac7d65a49947b4 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 27 Mar 2022 15:10:43 +0200 Subject: [PATCH 28/35] firefox: add pname to throw message https://github.com/NixOS/nixpkgs/pull/164646#discussion_r835879348 --- pkgs/applications/networking/browsers/firefox/common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index 8d445ac44eb2..63b2195d96b3 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -127,7 +127,7 @@ }: assert stdenv.cc.libc or null != null; -assert pipewireSupport -> !waylandSupport || !webrtcSupport -> throw "pipewireSupport requires both wayland and webrtc support."; +assert pipewireSupport -> !waylandSupport || !webrtcSupport -> throw "${pname}: pipewireSupport requires both wayland and webrtc support."; let flag = tf: x: [(if tf then "--enable-${x}" else "--disable-${x}")]; From 2cb9593cad3a351d064621def6875eee78feaecb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 27 Mar 2022 17:12:20 +0200 Subject: [PATCH 29/35] firefox: always build with clang Both LTO and PGO require the use of clang so I think its easier to just stick with clang for all builds, so PGO and LTO could in theory be used without each other. --- .../networking/browsers/firefox/common.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index 63b2195d96b3..d5ade4ffd42a 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -141,12 +141,10 @@ let bootBintools = null; }; - buildStdenv = if ltoSupport - # LTO requires LLVM bintools including ld.lld and llvm-ar. - then overrideCC llvmPackages.stdenv (llvmPackages.stdenv.cc.override { - inherit (llvmPackages) bintools; - }) - else stdenv; + # LTO requires LLVM bintools including ld.lld and llvm-ar. + buildStdenv = overrideCC llvmPackages.stdenv (llvmPackages.stdenv.cc.override { + inherit (llvmPackages) bintools; + }); # Compile the wasm32 sysroot to build the RLBox Sandbox # https://hacks.mozilla.org/2021/12/webassembly-and-back-again-fine-grained-sandboxing-in-firefox-95/ @@ -289,7 +287,6 @@ buildStdenv.mkDerivation ({ "--with-system-webp" "--with-system-zlib" ] - ++ lib.optional (!ltoSupport) "--with-clang-path=${llvmPackages.clang}/bin/clang" # LTO is done using clang and lld on Linux. ++ lib.optionals ltoSupport [ "--enable-lto=cross" # Cross-Language LTO From 3657f4033bdb45c5a76591dfdfd1844bc45e533c Mon Sep 17 00:00:00 2001 From: Flakebi Date: Mon, 28 Mar 2022 22:03:28 +0200 Subject: [PATCH 30/35] salt: 3004 -> 3004.1 --- pkgs/tools/admin/salt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/admin/salt/default.nix b/pkgs/tools/admin/salt/default.nix index 6f7b86f04489..d258337e40e7 100644 --- a/pkgs/tools/admin/salt/default.nix +++ b/pkgs/tools/admin/salt/default.nix @@ -22,11 +22,11 @@ let in py.pkgs.buildPythonApplication rec { pname = "salt"; - version = "3004"; + version = "3004.1"; src = py.pkgs.fetchPypi { inherit pname version; - sha256 = "PVNWG8huAU3KLsPcmBB5vgTVXqBHiQyr3iXlsQv6WxM="; + hash = "sha256-fzRKJDJkik8HjapazMaNzf/hCVzqE+wh5QQTVg8Ewpg="; }; propagatedBuildInputs = with py.pkgs; [ From 914545b23faded2c3abfed5babdf58e090fd0fb0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 22:28:33 +0200 Subject: [PATCH 31/35] python3Packages.minidb: 2.0.5 -> 2.0.6 --- .../python-modules/minidb/default.nix | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/minidb/default.nix b/pkgs/development/python-modules/minidb/default.nix index 599b1d70d42e..5723138ecc3e 100644 --- a/pkgs/development/python-modules/minidb/default.nix +++ b/pkgs/development/python-modules/minidb/default.nix @@ -1,32 +1,37 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k -, nose -, pytest +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "minidb"; - version = "2.0.5"; - disabled = !isPy3k; + version = "2.0.6"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "thp"; repo = "minidb"; rev = version; - sha256 = "sha256-aUXsp0E89OxCgTaz7MpKmqTHZfnjDcyHa8Ckzof9rfg="; + hash = "sha256-H7W+GBapT9uJgbPlARp4ZLKTN7hZlF/FbNo7rObqDM4="; }; - # module imports are incompatible with python2 - doCheck = isPy3k; - checkInputs = [ nose pytest ]; - checkPhase = '' - pytest - ''; + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "minidb" + ]; meta = with lib; { - description = "A simple SQLite3-based store for Python objects"; + description = "SQLite3-based store for Python objects"; homepage = "https://thp.io/2010/minidb/"; license = licenses.isc; - maintainers = [ maintainers.tv ]; + maintainers = with maintainers; [ tv ]; }; - } + From 5e92becb9b35c69b522e0453deca8b8113592f3c Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 28 Mar 2022 16:07:00 +0000 Subject: [PATCH 32/35] robin-map: 0.6.3 -> 1.0.0 --- pkgs/development/libraries/robin-map/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/robin-map/default.nix b/pkgs/development/libraries/robin-map/default.nix index a0a068dc1422..4ab48c484426 100644 --- a/pkgs/development/libraries/robin-map/default.nix +++ b/pkgs/development/libraries/robin-map/default.nix @@ -5,13 +5,13 @@ stdenv.mkDerivation rec { pname = "robin-map"; - version = "0.6.3"; + version = "1.0.0"; src = fetchFromGitHub { owner = "Tessil"; repo = pname; rev = "v${version}"; - sha256 = "1li70vwsksva9c4yly90hjafgqfixi1g6d52qq9p6r60vqc4pkjj"; + sha256 = "sha256-h59khOUg7vzw64EAMT/uzTKHzx2M9q+pc2BhfGQiY3Q="; }; nativeBuildInputs = [ cmake ]; From 159d4b45b4da6928c364bb83eeba2ef7cc75b183 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 28 Mar 2022 22:31:22 +0200 Subject: [PATCH 33/35] python3Packages.ormar: 0.10.25 -> 0.11.0 --- pkgs/development/python-modules/ormar/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ormar/default.nix b/pkgs/development/python-modules/ormar/default.nix index bbf95e98cffe..5546f58b2624 100644 --- a/pkgs/development/python-modules/ormar/default.nix +++ b/pkgs/development/python-modules/ormar/default.nix @@ -24,7 +24,7 @@ buildPythonPackage rec { pname = "ormar"; - version = "0.10.25"; + version = "0.11.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -33,7 +33,7 @@ buildPythonPackage rec { owner = "collerek"; repo = pname; rev = version; - hash = "sha256-AggrsXw9fUYfc38AiSDSoh7SIEf4gPf+LlAvrxZiFL4="; + hash = "sha256-I41asBWwOwmi6Yhw/JZ/EcpDWMAoPyxPIGIPiZQV+Yk="; }; nativeBuildInputs = [ From adc4d551fae8d256cb4b77710178bc779847ef07 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 28 Mar 2022 21:40:26 +0000 Subject: [PATCH 34/35] python310Packages.google-cloud-vision: 2.7.1 -> 2.7.2 --- .../python-modules/google-cloud-vision/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google-cloud-vision/default.nix b/pkgs/development/python-modules/google-cloud-vision/default.nix index 61c383dca6ed..b73baab08108 100644 --- a/pkgs/development/python-modules/google-cloud-vision/default.nix +++ b/pkgs/development/python-modules/google-cloud-vision/default.nix @@ -12,14 +12,14 @@ buildPythonPackage rec { pname = "google-cloud-vision"; - version = "2.7.1"; + version = "2.7.2"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-Ty80C73K3/TebsdSHinmp2y8TKgOftqT5PIDafq1GgM="; + hash = "sha256-4NTWyf3rndw1zHINlBMtoEmdfSXGnU/jEhxab807Vg4="; }; propagatedBuildInputs = [ From 03fb5c816d6788529771d84ca0989668812dc80b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 28 Mar 2022 22:15:43 +0000 Subject: [PATCH 35/35] python310Packages.hahomematic: 0.38.5 -> 1.0.0 --- pkgs/development/python-modules/hahomematic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/hahomematic/default.nix b/pkgs/development/python-modules/hahomematic/default.nix index 1df738f80fb7..6b39369eeb03 100644 --- a/pkgs/development/python-modules/hahomematic/default.nix +++ b/pkgs/development/python-modules/hahomematic/default.nix @@ -14,7 +14,7 @@ buildPythonPackage rec { pname = "hahomematic"; - version = "0.38.5"; + version = "1.0.0"; format = "setuptools"; disabled = pythonOlder "3.9"; @@ -23,7 +23,7 @@ buildPythonPackage rec { owner = "danielperna84"; repo = pname; rev = version; - sha256 = "sha256-RzTRRWHmdEjDQM/x4pX1gy7mIJD3K2hjQRAkz53xL50="; + sha256 = "sha256-neYFYzBNx/Rm3PWCsQ5ooisU3Z+kJO+O+KNpbwSsUB4="; }; propagatedBuildInputs = [