From 9de9f6062c9495284609ab648db599c93ec76226 Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Wed, 3 Feb 2021 03:40:12 +0200 Subject: [PATCH 01/21] xow: fix service Enable service when services.xow.enable is set to true. Load xow's modprobe blacklist to make sure the dongle isn't captured by the wrong driver. --- nixos/modules/services/hardware/xow.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/hardware/xow.nix b/nixos/modules/services/hardware/xow.nix index a18d60ad83be..311181176bd8 100644 --- a/nixos/modules/services/hardware/xow.nix +++ b/nixos/modules/services/hardware/xow.nix @@ -10,7 +10,10 @@ in { config = lib.mkIf cfg.enable { hardware.uinput.enable = true; + boot.extraModprobeConfig = lib.readFile "${pkgs.xow}/lib/modprobe.d/xow-blacklist.conf"; + systemd.packages = [ pkgs.xow ]; + systemd.services.xow.wantedBy = [ "multi-user.target" ]; services.udev.packages = [ pkgs.xow ]; }; From 73a5be34ee0383383d2eb73ee502d6c640f97179 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 5 Feb 2021 09:18:10 +0100 Subject: [PATCH 02/21] python3Packages.slackclient: 2.5.0 -> 2.9.3 --- .../python-modules/slackclient/default.nix | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/slackclient/default.nix b/pkgs/development/python-modules/slackclient/default.nix index d990295bff61..4a3c29272186 100644 --- a/pkgs/development/python-modules/slackclient/default.nix +++ b/pkgs/development/python-modules/slackclient/default.nix @@ -1,15 +1,15 @@ { lib -, buildPythonPackage -, fetchFromGitHub , aiohttp -, black +, buildPythonPackage , codecov +, fetchFromGitHub , flake8 , isPy3k , mock +, psutil +, pytest-cov , pytest-mock , pytestCheckHook -, pytestcov , pytestrunner , requests , responses @@ -19,15 +19,15 @@ buildPythonPackage rec { pname = "python-slackclient"; - version = "2.5.0"; + version = "2.9.3"; disabled = !isPy3k; src = fetchFromGitHub { - owner = "slackapi"; - repo = pname; - rev = version; - sha256 = "1ngj1mivbln19546195k400w9yaw69g0w6is7c75rqwyxr8wgzsk"; + owner = "slackapi"; + repo = "python-slack-sdk"; + rev = "v${version}"; + sha256 = "1rfb7izgddv28ag37gdnv3sd8z2zysrxs7ad8x20x690zshpaq16"; }; propagatedBuildInputs = [ @@ -38,17 +38,21 @@ buildPythonPackage rec { ]; checkInputs = [ - black codecov flake8 mock + psutil + pytest-cov pytest-mock pytestCheckHook - pytestcov pytestrunner responses ]; + # Exclude tests that requires network features + pytestFlagsArray = [ "--ignore=integration_tests" ]; + disabledTests = [ "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" ]; + pythonImportsCheck = [ "slack" ]; meta = with lib; { From b41db12efcff7e0703dd293f8a77ba80fbb6058a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 5 Feb 2021 09:19:01 +0100 Subject: [PATCH 03/21] python3Packages.slack-sdk: init at 3.3.0 --- .../python-modules/slack-sdk/default.nix | 74 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 76 insertions(+) create mode 100644 pkgs/development/python-modules/slack-sdk/default.nix diff --git a/pkgs/development/python-modules/slack-sdk/default.nix b/pkgs/development/python-modules/slack-sdk/default.nix new file mode 100644 index 000000000000..2a2f3bf42fb0 --- /dev/null +++ b/pkgs/development/python-modules/slack-sdk/default.nix @@ -0,0 +1,74 @@ +{ lib +, aiodns +, aiohttp +, boto3 +, buildPythonPackage +, codecov +, databases +, fetchFromGitHub +, flake8 +, flask-sockets +, isPy3k +, psutil +, pytest-asyncio +, pytest-cov +, pytestCheckHook +, pytestrunner +, sqlalchemy +, websocket_client +, websockets +}: + +buildPythonPackage rec { + pname = "slack-sdk"; + version = "3.3.0"; + disabled = !isPy3k; + + src = fetchFromGitHub { + owner = "slackapi"; + repo = "python-slack-sdk"; + rev = "v${version}"; + sha256 = "0nr1avxycvjnvg1n8r09xi4sc5h6i4b64pzfgq14l55dgi5sv1rx"; + }; + + propagatedBuildInputs = [ + aiodns + aiohttp + boto3 + sqlalchemy + websocket_client + websockets + ]; + + checkInputs = [ + codecov + databases + flake8 + flask-sockets + psutil + pytest-asyncio + pytest-cov + pytestCheckHook + pytestrunner + ]; + + preCheck = '' + export HOME=$(mktemp -d) + ''; + + # Exclude tests that requires network features + pytestFlagsArray = [ "--ignore=integration_tests" ]; + disabledTests = [ + "test_start_raises_an_error_if_rtm_ws_url_is_not_returned" + "test_org_installation" + ]; + + pythonImportsCheck = [ "slack_sdk" ]; + + meta = with lib; { + description = "Slack Developer Kit for Python"; + homepage = "https://slack.dev/python-slack-sdk/"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e019628d1e2b..7fe755f48f77 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7220,6 +7220,8 @@ in { skorch = callPackage ../development/python-modules/skorch { }; + slack-sdk = callPackage ../development/python-modules/slack-sdk { }; + slackclient = callPackage ../development/python-modules/slackclient { }; sleekxmpp = callPackage ../development/python-modules/sleekxmpp { }; From 364bb10c1db8924794636010deff77ccf583bcb5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 5 Feb 2021 10:27:13 +0100 Subject: [PATCH 04/21] errbot: 6.1.1 -> 6.1.7 --- .../networking/errbot/default.nix | 121 ++++++++++-------- pkgs/top-level/all-packages.nix | 4 +- 2 files changed, 69 insertions(+), 56 deletions(-) diff --git a/pkgs/applications/networking/errbot/default.nix b/pkgs/applications/networking/errbot/default.nix index 642677a9addc..f4a44275b693 100644 --- a/pkgs/applications/networking/errbot/default.nix +++ b/pkgs/applications/networking/errbot/default.nix @@ -1,75 +1,90 @@ -{ lib, fetchFromGitHub, python, glibcLocales }: +{ lib +, ansi +, buildPythonApplication +, colorlog +, daemonize +, deepmerge +, dulwich +, fetchFromGitHub +, flask +, glibcLocales +, hypchat +, irc +, jinja2 +, markdown +, mock +, pyasn1 +, pyasn1-modules +, pygments +, pygments-markdown-lexer +, pyopenssl +, pytestCheckHook +, requests +, slackclient +, sleekxmpp +, telegram +, webtest +}: -let - py = python.override { - packageOverrides = self: super: { - # errbot requires markdown<3, and is not compatible with it either. - markdown = super.markdown.overridePythonAttrs (oldAttrs: rec { - version = "2.6.11"; - src = super.fetchPypi { - pname = "Markdown"; - inherit version; - sha256 = "108g80ryzykh8bj0i7jfp71510wrcixdi771lf2asyghgyf8cmm8"; - }; - }); - - # errbot requires slackclient 1.x, see https://github.com/errbotio/errbot/pull/1367 - # latest 1.x release would be 1.3.2, but it requires an older websocket_client than the one in nixpkgs - # so let's just vendor the known-working version until they've migrated to 2.x. - slackclient = super.slackclient.overridePythonAttrs (oldAttrs: rec { - version = "1.2.1"; - pname = "slackclient"; - src = fetchFromGitHub { - owner = "slackapi"; - repo = "python-slackclient"; - rev = version; - sha256 = "073fwf6fm2sqdp5ms3vm1v3ljh0pldi69k048404rp6iy3cfwkp0"; - }; - - propagatedBuildInputs = with self; [ websocket_client requests six ]; - - checkInputs = with self; [ pytest codecov coverage mock pytestcov pytest-mock responses flake8 ]; - # test_server.py fails because it needs connection (I think); - checkPhase = '' - py.test --cov-report= --cov=slackclient tests --ignore=tests/test_server.py - ''; - }); - }; - }; - -in -py.pkgs.buildPythonApplication rec { +buildPythonApplication rec { pname = "errbot"; - version = "6.1.1"; + version = "6.1.7"; src = fetchFromGitHub { owner = "errbotio"; repo = "errbot"; rev = version; - sha256 = "1s4dl1za5imwsv6j3y7m47dy91hmqd5n221kkqm9ni4mpzgpffz0"; + sha256 = "02h44qd3d91zy657hyqsw3gskgxg31848pw6zpb8dhd1x84z5y77"; }; LC_ALL = "en_US.utf8"; buildInputs = [ glibcLocales ]; - propagatedBuildInputs = with py.pkgs; [ - webtest requests jinja2 flask dulwich - pyopenssl colorlog markdown ansi pygments - daemonize pygments-markdown-lexer telegram irc slackclient - sleekxmpp pyasn1 pyasn1-modules hypchat + + propagatedBuildInputs = [ + ansi + colorlog + daemonize + deepmerge + dulwich + flask + hypchat + irc + jinja2 + markdown + pyasn1 + pyasn1-modules + pygments + pygments-markdown-lexer + pyopenssl + requests + slackclient + sleekxmpp + telegram + webtest ]; - checkInputs = with py.pkgs; [ mock pytest ]; - # avoid tests that do network calls - checkPhase = '' - pytest tests -k 'not backup and not broken_plugin and not plugin_cycle' - ''; + checkInputs = [ + mock + pytestCheckHook + ]; + + # Slack backend test has an import issue + pytestFlagsArray = [ "--ignore=tests/backend_tests/slack_test.py" ]; + + disabledTests = [ + "backup" + "broken_plugin" + "plugin_cycle" + ]; + + pythonImportsCheck = [ "errbot" ]; meta = with lib; { description = "Chatbot designed to be simple to extend with plugins written in Python"; homepage = "http://errbot.io/"; maintainers = with maintainers; [ fpletz globin ]; - license = licenses.gpl3; + license = licenses.gpl3Plus; platforms = platforms.linux; # flaky on darwin, "RuntimeError: can't start new thread" }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5fb8b0cd463b..37e4bc6d6a11 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21834,9 +21834,7 @@ in eq10q = callPackage ../applications/audio/eq10q { }; - errbot = callPackage ../applications/networking/errbot { - python = python3; - }; + errbot = python3Packages.callPackage ../applications/networking/errbot { }; espeak-classic = callPackage ../applications/audio/espeak { }; From 4e10c05d1f58d61d999135489521c6e909e74572 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Sun, 3 Jan 2021 18:25:14 +0100 Subject: [PATCH 05/21] laminar: 0.8 -> 1.0 Bumped version and updated javascript dependencies. Had to modify the no-network patch as well because of the changed javascript libs. Upstream changed the handling CMAKE_INSTALL_PREFIX in https://github.com/ohwgiles/laminar/commit/1bb545e3f95178aa024f791f6e01510c9d421440 so I decided to patch around that as well. Removing systemd units and config file because they should be defined declaratively --- .../laminar/default.nix | 41 ++++++------------- .../laminar/patches/no-network.patch | 31 ++++++++++---- 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/pkgs/development/tools/continuous-integration/laminar/default.nix b/pkgs/development/tools/continuous-integration/laminar/default.nix index f64cbd5e85fd..9d78f57425a0 100644 --- a/pkgs/development/tools/continuous-integration/laminar/default.nix +++ b/pkgs/development/tools/continuous-integration/laminar/default.nix @@ -8,18 +8,16 @@ , zlib , rapidjson , pandoc -, enableSystemd ? false -, customConfig ? null }: let js.vue = fetchurl { - url = "https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.min.js"; - sha256 = "01zklp5cyik65dfn64m8h2y2dxzgbyzgmbf99y7fwgnf0155r7pq"; + url = "https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.12/vue.min.js"; + sha256 = "1hm5kci2g6n5ikrvp1kpkkdzimjgylv1xicg2vnkbvd9rb56qa99"; }; js.vue-router = fetchurl { url = - "https://cdnjs.cloudflare.com/ajax/libs/vue-router/2.7.0/vue-router.min.js"; - sha256 = "07gx7znb30rk1z7w6ca7dlfjp44q12bbq6jghwfm27mf6psa80as"; + "https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.4.8/vue-router.min.js"; + sha256 = "0418waib896ywwxkxliip75zp94k3s9wld51afrqrcq70axld0c9"; }; js.ansi_up = fetchurl { url = "https://raw.githubusercontent.com/drudru/ansi_up/v1.3.0/ansi_up.js"; @@ -29,17 +27,12 @@ let url = "https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"; sha256 = "1jh4h12qchsba03dx03mrvs4r8g9qfjn56xm56jqzgqf7r209xq9"; }; - css.bootstrap = fetchurl { - url = - "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"; - sha256 = "11vx860prsx7wsy8b0yrrk04ih8kvrxkk8l16snsc4n286bdkyri"; - }; in stdenv.mkDerivation rec { name = "laminar"; - version = "0.8"; + version = "1.0"; src = fetchurl { url = "https://github.com/ohwgiles/laminar/archive/${version}.tar.gz"; - sha256 = "05g73j3vpib47kr7mackcazf7s6bc3xwz4h6k7sp7yb5ng7gj20g"; + sha256 = "11m6h3rdmj2rsmsryy7r40gqccj4gg1cnqwy6blscs87gx4s423g"; }; patches = [ ./patches/no-network.patch ]; nativeBuildInputs = [ cmake pandoc ]; @@ -50,31 +43,23 @@ in stdenv.mkDerivation rec { cp ${js.vue-router} js/vue-router.min.js cp ${js.ansi_up} js/ansi_up.js cp ${js.Chart} js/Chart.min.js - cp ${css.bootstrap} css/bootstrap.min.css ''; + postInstall = '' - mv $out/usr/share $out - mkdir $out/bin - mv $out/usr/{bin,sbin}/* $out/bin - rmdir $out/usr/{bin,sbin} - rmdir $out/usr + mv $out/usr/share/* $out/share/ + rmdir $out/usr/share $out/usr mkdir -p $out/share/doc/laminar pandoc -s ../UserManual.md -o $out/share/doc/laminar/UserManual.html - '' + lib.optionalString (customConfig != null) '' - cp ${customConfig} /etc/etc/laminar.conf - '' + (if enableSystemd then '' - sed -i "s,/etc/,$out/etc/," $out/lib/systemd/system/laminar.service - sed -i "s,/usr/sbin/,$out/bin/," $out/lib/systemd/system/laminar.service - '' else '' - rm -r $out/lib # it contains only systemd unit file - ''); + rm -rf $out/lib # remove upstream systemd units + rm -rf $out/etc # remove upstream config file + ''; meta = with lib; { description = "Lightweight and modular continuous integration service"; homepage = "https://laminar.ohwg.net"; license = licenses.gpl3; platforms = platforms.linux; - maintainers = with maintainers; [ kaction ]; + maintainers = with maintainers; [ kaction maralorn ]; }; } diff --git a/pkgs/development/tools/continuous-integration/laminar/patches/no-network.patch b/pkgs/development/tools/continuous-integration/laminar/patches/no-network.patch index 80e74de95aa2..355baeb837a5 100644 --- a/pkgs/development/tools/continuous-integration/laminar/patches/no-network.patch +++ b/pkgs/development/tools/continuous-integration/laminar/patches/no-network.patch @@ -6,21 +6,36 @@ put into correct location before build phase starts. --- laminar-0.8/CMakeLists.txt +++ laminar-0.8-new/CMakeLists.txt -@@ -69,17 +69,6 @@ +@@ -82,15 +82,6 @@ COMMAND sh -c '( echo -n "\\#define INDEX_HTML_UNCOMPRESSED_SIZE " && wc -c < "${CMAKE_SOURCE_DIR}/src/resources/index.html" ) > index_html_size.h' DEPENDS src/resources/index.html) -# Download 3rd-party frontend JS libs... --file(DOWNLOAD https://cdnjs.cloudflare.com/ajax/libs/vue/2.3.4/vue.min.js -- js/vue.min.js EXPECTED_MD5 ae2fca1cfa0e31377819b1b0ffef704c) --file(DOWNLOAD https://cdnjs.cloudflare.com/ajax/libs/vue-router/2.7.0/vue-router.min.js -- js/vue-router.min.js EXPECTED_MD5 5d3e35710dbe02de78c39e3e439b8d4e) +-file(DOWNLOAD https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.12/vue.min.js +- js/vue.min.js EXPECTED_MD5 fb192338844efe86ec759a40152fcb8e) +-file(DOWNLOAD https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.4.8/vue-router.min.js +- js/vue-router.min.js EXPECTED_MD5 5f51d4dbbf68fd6725956a5a2b865f3b) -file(DOWNLOAD https://raw.githubusercontent.com/drudru/ansi_up/v1.3.0/ansi_up.js - js/ansi_up.js EXPECTED_MD5 158566dc1ff8f2804de972f7e841e2f6) -file(DOWNLOAD https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js - js/Chart.min.js EXPECTED_MD5 f6c8efa65711e0cbbc99ba72997ecd0e) --file(DOWNLOAD https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css -- css/bootstrap.min.css EXPECTED_MD5 5d5357cb3704e1f43a1f5bfed2aebf42) # ...and compile them generate_compressed_bins(${CMAKE_BINARY_DIR} js/vue-router.min.js js/vue.min.js - js/ansi_up.js js/Chart.min.js css/bootstrap.min.css) + js/ansi_up.js js/Chart.min.js) +@@ -141,12 +132,12 @@ + target_link_libraries(laminar-tests ${GTEST_LIBRARY} capnp-rpc capnp kj-http kj-async kj pthread sqlite3 z) + endif() + +-set(SYSTEMD_UNITDIR /lib/systemd/system CACHE PATH "Path to systemd unit files") +-set(BASH_COMPLETIONS_DIR /usr/share/bash-completion/completions CACHE PATH "Path to bash completions directory") +-set(ZSH_COMPLETIONS_DIR /usr/share/zsh/site-functions CACHE PATH "Path to zsh completions directory") ++set(SYSTEMD_UNITDIR lib/systemd/system CACHE PATH "Path to systemd unit files") ++set(BASH_COMPLETIONS_DIR usr/share/bash-completion/completions CACHE PATH "Path to bash completions directory") ++set(ZSH_COMPLETIONS_DIR usr/share/zsh/site-functions CACHE PATH "Path to zsh completions directory") + install(TARGETS laminard RUNTIME DESTINATION sbin) + install(TARGETS laminarc RUNTIME DESTINATION bin) +-install(FILES etc/laminar.conf DESTINATION /etc) ++install(FILES etc/laminar.conf DESTINATION etc) + install(FILES etc/laminarc-completion.bash DESTINATION ${BASH_COMPLETIONS_DIR} RENAME laminarc) + install(FILES etc/laminarc-completion.zsh DESTINATION ${ZSH_COMPLETIONS_DIR} RENAME _laminarc) + From b0350cbf3638589c262bbc9fd8246170fb3a0f08 Mon Sep 17 00:00:00 2001 From: Badi Abdul-Wahid Date: Sat, 13 Feb 2021 10:51:27 -0600 Subject: [PATCH 06/21] vivaldi: 3.5.2115.87-1 -> 3.6.2165.36-1 --- pkgs/applications/networking/browsers/vivaldi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/browsers/vivaldi/default.nix b/pkgs/applications/networking/browsers/vivaldi/default.nix index 2fe27c16720d..57a4155e179e 100644 --- a/pkgs/applications/networking/browsers/vivaldi/default.nix +++ b/pkgs/applications/networking/browsers/vivaldi/default.nix @@ -18,11 +18,11 @@ let vivaldiName = if isSnapshot then "vivaldi-snapshot" else "vivaldi"; in stdenv.mkDerivation rec { pname = "vivaldi"; - version = "3.5.2115.87-1"; + version = "3.6.2165.36-1"; src = fetchurl { url = "https://downloads.vivaldi.com/${branch}/vivaldi-${branch}_${version}_amd64.deb"; - sha256 = "0m0w2sj6kdd2b67f3kfcf4qyyxhqnmi2qzjwmqpmns9a485s6bn0"; + sha256 = "1wgxzggy5sg98k4lzd34k4hyw2jgc14db41z7s7j3c5whlnifh08"; }; unpackPhase = '' From 8ace1f29cb4be013e0b74ae877435635332ae367 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 14 Feb 2021 04:20:00 +0000 Subject: [PATCH 07/21] python38Packages.tubeup: 0.0.21 -> 0.0.23 https://github.com/bibanon/tubeup/releases/tag/0.0.23 --- pkgs/development/python-modules/tubeup/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/tubeup/default.nix b/pkgs/development/python-modules/tubeup/default.nix index 7a4b4454b3b6..b065f3d34648 100644 --- a/pkgs/development/python-modules/tubeup/default.nix +++ b/pkgs/development/python-modules/tubeup/default.nix @@ -9,13 +9,13 @@ buildPythonPackage rec { pname = "tubeup"; - version = "0.0.21"; + version = "0.0.23"; disabled = isPy27; src = fetchPypi { inherit pname version; - sha256 = "326a499be032bee7f7ed921d85abff4b3b4dcd2c3d6ad694f08ef98dbcef19b6"; + sha256 = "d504327e055889edfe56512a829f76b24b40c5965b93120f8b9300f5390014b4"; }; postPatch = '' From 4cd2bd60d942eca4401e46a7fc78b5c20fa06daf Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 14 Feb 2021 04:20:00 +0000 Subject: [PATCH 08/21] python38Packages.tubeup: fix license --- pkgs/development/python-modules/tubeup/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/tubeup/default.nix b/pkgs/development/python-modules/tubeup/default.nix index b065f3d34648..927fe1e56293 100644 --- a/pkgs/development/python-modules/tubeup/default.nix +++ b/pkgs/development/python-modules/tubeup/default.nix @@ -32,7 +32,7 @@ buildPythonPackage rec { meta = with lib; { description = "Youtube (and other video site) to Internet Archive Uploader"; homepage = "https://github.com/bibanon/tubeup"; - license = licenses.gpl3; + license = licenses.gpl3Only; maintainers = [ maintainers.marsam ]; }; } From 632dad39dbc40f6424be70d493c6202dda17e685 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 14 Feb 2021 04:20:00 +0000 Subject: [PATCH 09/21] cascadia-code: 2009.22 -> 2102.03 https://github.com/microsoft/cascadia-code/releases/tag/v2102.03 --- pkgs/data/fonts/cascadia-code/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/cascadia-code/default.nix b/pkgs/data/fonts/cascadia-code/default.nix index 7f934658479a..a2b67a22e2d5 100644 --- a/pkgs/data/fonts/cascadia-code/default.nix +++ b/pkgs/data/fonts/cascadia-code/default.nix @@ -1,13 +1,13 @@ { lib, fetchzip }: let - version = "2009.22"; + version = "2102.03"; in fetchzip { name = "cascadia-code-${version}"; url = "https://github.com/microsoft/cascadia-code/releases/download/v${version}/CascadiaCode-${version}.zip"; - sha256 = "0wdkjzaf5a14yfiqqqn6wvi6db6r7g1m5r07cg9730b0mkzhfyhl"; + sha256 = "076l44cyyp3cf15qyn2hzx34kzqm73d218fgwf8n69m8a1v34hs2"; postFetch = '' mkdir -p $out/share/fonts/ From c71513353cfa4463297d5c3f7feae5b3fd022eed Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 14 Feb 2021 05:56:17 +0000 Subject: [PATCH 10/21] pdfcpu: 0.3.8 -> 0.3.9 --- pkgs/applications/graphics/pdfcpu/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/graphics/pdfcpu/default.nix b/pkgs/applications/graphics/pdfcpu/default.nix index 857a68df0923..96df57d71981 100644 --- a/pkgs/applications/graphics/pdfcpu/default.nix +++ b/pkgs/applications/graphics/pdfcpu/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "pdfcpu"; - version = "0.3.8"; + version = "0.3.9"; src = fetchFromGitHub { owner = "pdfcpu"; repo = pname; rev = "v${version}"; - sha256 = "sha256-Rx/LUp5s2DhEKuLUklYXjtTXjqBju+5YzK1hNfBCnIE="; + sha256 = "sha256-btkGn/67KVFB272j7u5MKZCeby2fyRthLLeXj8VgX7s="; }; vendorSha256 = "sha256-/SsDDFveovJfuEdnOkxHAWccS8PJW5k9IHSxSJAgHMQ="; From 6fafbb4f27aaee2b402efe7e9849a38b2a76d40a Mon Sep 17 00:00:00 2001 From: dkabot <1316469+dkabot@users.noreply.github.com> Date: Sun, 14 Feb 2021 07:25:00 -0500 Subject: [PATCH 11/21] gnomeExtensions.arc-menu: 47 -> 5 --- .../gnome-3/extensions/arc-menu/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/desktops/gnome-3/extensions/arc-menu/default.nix b/pkgs/desktops/gnome-3/extensions/arc-menu/default.nix index 58f1836a132a..ed55bb3d058f 100644 --- a/pkgs/desktops/gnome-3/extensions/arc-menu/default.nix +++ b/pkgs/desktops/gnome-3/extensions/arc-menu/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "gnome-shell-arc-menu"; - version = "47"; + version = "5"; src = fetchFromGitLab { - owner = "arcmenu-team"; - repo = "Arc-Menu"; - rev = "v${version}-Stable"; - sha256 = "1hhjxdm1sm9pddhkkxx532hqqiv9ghvqgn9xszg1jwhj29380fv6"; + owner = "arcmenu"; + repo = "ArcMenu"; + rev = "v${version}"; + sha256 = "1w4avvnp08l7lkf76vc7wvfn1cd81l4r4dhz8qnai49rvrjgqcg3"; }; patches = [ @@ -24,12 +24,12 @@ stdenv.mkDerivation rec { makeFlags = [ "INSTALLBASE=${placeholder "out"}/share/gnome-shell/extensions" ]; - uuid = "arc-menu@linxgem33.com"; + uuid = "arcmenu@arcmenu.com"; meta = with lib; { - description = "Gnome shell extension designed to replace the standard menu found in Gnome 3"; + description = "Application menu for GNOME Shell, designed to provide a more traditional user experience and workflow."; license = licenses.gpl2Plus; maintainers = with maintainers; [ dkabot ]; - homepage = "https://gitlab.com/LinxGem33/Arc-Menu"; + homepage = "https://gitlab.com/arcmenu/ArcMenu"; }; } From e1fc0f5e384a6da9e42a4ba701959def22a170ff Mon Sep 17 00:00:00 2001 From: dkabot <1316469+dkabot@users.noreply.github.com> Date: Sun, 14 Feb 2021 07:54:17 -0500 Subject: [PATCH 12/21] gnomeExtensions.arc-menu: rename to gnomeExtensions.arcmenu The upstream has been changed to a different repository with this name. --- .../gnome-3/extensions/{arc-menu => arcmenu}/default.nix | 4 ++-- .../gnome-3/extensions/{arc-menu => arcmenu}/fix_gmenu.patch | 0 pkgs/top-level/all-packages.nix | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) rename pkgs/desktops/gnome-3/extensions/{arc-menu => arcmenu}/default.nix (89%) rename pkgs/desktops/gnome-3/extensions/{arc-menu => arcmenu}/fix_gmenu.patch (100%) diff --git a/pkgs/desktops/gnome-3/extensions/arc-menu/default.nix b/pkgs/desktops/gnome-3/extensions/arcmenu/default.nix similarity index 89% rename from pkgs/desktops/gnome-3/extensions/arc-menu/default.nix rename to pkgs/desktops/gnome-3/extensions/arcmenu/default.nix index ed55bb3d058f..851a816c61c7 100644 --- a/pkgs/desktops/gnome-3/extensions/arc-menu/default.nix +++ b/pkgs/desktops/gnome-3/extensions/arcmenu/default.nix @@ -1,7 +1,7 @@ { lib, stdenv, fetchFromGitLab, glib, gettext, substituteAll, gnome-menus }: stdenv.mkDerivation rec { - pname = "gnome-shell-arc-menu"; + pname = "gnome-shell-arcmenu"; version = "5"; src = fetchFromGitLab { @@ -27,7 +27,7 @@ stdenv.mkDerivation rec { uuid = "arcmenu@arcmenu.com"; meta = with lib; { - description = "Application menu for GNOME Shell, designed to provide a more traditional user experience and workflow."; + description = "Application menu for GNOME Shell, designed to provide a more traditional user experience and workflow"; license = licenses.gpl2Plus; maintainers = with maintainers; [ dkabot ]; homepage = "https://gitlab.com/arcmenu/ArcMenu"; diff --git a/pkgs/desktops/gnome-3/extensions/arc-menu/fix_gmenu.patch b/pkgs/desktops/gnome-3/extensions/arcmenu/fix_gmenu.patch similarity index 100% rename from pkgs/desktops/gnome-3/extensions/arc-menu/fix_gmenu.patch rename to pkgs/desktops/gnome-3/extensions/arcmenu/fix_gmenu.patch diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bef22c21e98c..ab6e3410eb6a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27393,7 +27393,7 @@ in gnomeExtensions = recurseIntoAttrs { appindicator = callPackage ../desktops/gnome-3/extensions/appindicator { }; - arc-menu = callPackage ../desktops/gnome-3/extensions/arc-menu { }; + arcmenu = callPackage ../desktops/gnome-3/extensions/arcmenu { }; caffeine = callPackage ../desktops/gnome-3/extensions/caffeine { }; clipboard-indicator = callPackage ../desktops/gnome-3/extensions/clipboard-indicator { }; clock-override = callPackage ../desktops/gnome-3/extensions/clock-override { }; @@ -27431,6 +27431,7 @@ in mediaplayer = throw "gnomeExtensions.mediaplayer deprecated since 2019-09-23: retired upstream https://github.com/JasonLG1979/gnome-shell-extensions-mediaplayer/blob/master/README.md"; } // lib.optionalAttrs (config.allowAliases or false) { unite-shell = gnomeExtensions.unite; # added 2021-01-19 + arc-menu = gnomeExtensions.arcmenu; # added 2021-02-14 }; gnome-connections = callPackage ../desktops/gnome-3/apps/gnome-connections { }; From b84835ebde69c3e68684e6e345897aabb7521d75 Mon Sep 17 00:00:00 2001 From: Matej Urbas Date: Fri, 22 Jan 2021 22:13:13 +0000 Subject: [PATCH 13/21] python3Packages.capstone: aarch64 platform name --- pkgs/development/python-modules/capstone/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/capstone/default.nix b/pkgs/development/python-modules/capstone/default.nix index 7d5e416a9c5d..af6b9031e66e 100644 --- a/pkgs/development/python-modules/capstone/default.nix +++ b/pkgs/development/python-modules/capstone/default.nix @@ -1,14 +1,15 @@ -{ lib, stdenv +{ stdenv +, lib , buildPythonPackage -, fetchPypi -, fetchpatch -, setuptools , capstone +, fetchpatch +, fetchPypi +, setuptools }: buildPythonPackage rec { pname = "capstone"; - version = stdenv.lib.getVersion capstone; + version = lib.getVersion capstone; src = capstone.src; sourceRoot = "${capstone.name}/bindings/python"; @@ -16,6 +17,7 @@ buildPythonPackage rec { postPatch = '' ln -s ${capstone}/lib/libcapstone${stdenv.targetPlatform.extensions.sharedLibrary} prebuilt/ ln -s ${capstone}/lib/libcapstone.a prebuilt/ + substituteInPlace setup.py --replace manylinux1 manylinux2014 ''; propagatedBuildInputs = [ setuptools ]; From 5d9735c26243d4052d15b76805ff65c767ba7acc Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sun, 14 Feb 2021 17:49:58 +0100 Subject: [PATCH 14/21] wine{Unstable,Staging}: 6.1 -> 6.2 --- pkgs/misc/emulators/wine/sources.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/misc/emulators/wine/sources.nix b/pkgs/misc/emulators/wine/sources.nix index 15e2f80aa4ea..d69f38dececc 100644 --- a/pkgs/misc/emulators/wine/sources.nix +++ b/pkgs/misc/emulators/wine/sources.nix @@ -44,9 +44,9 @@ in rec { unstable = fetchurl rec { # NOTE: Don't forget to change the SHA256 for staging as well. - version = "6.1"; + version = "6.2"; url = "https://dl.winehq.org/wine/source/6.x/wine-${version}.tar.xz"; - sha256 = "sha256-qSwkMIxIuFG13CKh01aWpXMRxEezHsn6VD7FsKpzoUk="; + sha256 = "sha256-tmCWCaOrzGrZJ83WXHQL4BFiuAFSPg97qf1mkYALvxk="; inherit (stable) mono gecko32 gecko64; patches = [ @@ -58,7 +58,7 @@ in rec { staging = fetchFromGitHub rec { # https://github.com/wine-staging/wine-staging/releases inherit (unstable) version; - sha256 = "sha256-uu6wvWT54Zvp86KfUcKepGxjQ6JHRQ7Yuu4yeROdHeo="; + sha256 = "sha256-swhd5gTIWTz8eEk6f78iXG8bmA3y4ynO0/wBm0/Kimk="; owner = "wine-staging"; repo = "wine-staging"; rev = "v${version}"; From 6eb945d6087394e94b216055cd39119b7f584127 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 14 Feb 2021 18:38:22 +0000 Subject: [PATCH 15/21] gnome3.gnome-terminal: 3.38.2 -> 3.38.3 --- pkgs/desktops/gnome-3/core/gnome-terminal/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome-3/core/gnome-terminal/default.nix b/pkgs/desktops/gnome-3/core/gnome-terminal/default.nix index 087aa7f5ce0c..ba505586ca38 100644 --- a/pkgs/desktops/gnome-3/core/gnome-terminal/default.nix +++ b/pkgs/desktops/gnome-3/core/gnome-terminal/default.nix @@ -5,11 +5,11 @@ stdenv.mkDerivation rec { pname = "gnome-terminal"; - version = "3.38.2"; + version = "3.38.3"; src = fetchurl { url = "mirror://gnome/sources/gnome-terminal/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "J73cnQumFMhuXstPVMdevDQV4oh6zZFEIFdUj9MgZhg="; + sha256 = "EaWw1jXxX9znUINRpRD79OkqpTMVKlD/DHhF4xAuR2Q="; }; buildInputs = [ From c27538ee3f3f75bb353ac32f21ffe74bd913ed34 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Sun, 14 Feb 2021 15:27:21 +0000 Subject: [PATCH 16/21] evolution-data-server: 3.38.3 -> 3.38.4 --- pkgs/desktops/gnome-3/core/evolution-data-server/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome-3/core/evolution-data-server/default.nix b/pkgs/desktops/gnome-3/core/evolution-data-server/default.nix index 900040a76111..cfe8197a90bf 100644 --- a/pkgs/desktops/gnome-3/core/evolution-data-server/default.nix +++ b/pkgs/desktops/gnome-3/core/evolution-data-server/default.nix @@ -6,13 +6,13 @@ stdenv.mkDerivation rec { pname = "evolution-data-server"; - version = "3.38.3"; + version = "3.38.4"; outputs = [ "out" "dev" ]; src = fetchurl { url = "mirror://gnome/sources/evolution-data-server/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "19rwgvjicfmd5zgabr5ns42rg8cqa05p8qf7684prajjna8gcclp"; + sha256 = "rFPxay1R8+f/gCX5yhn0otTOOEHXKun+K7iX3ICZ1wU="; }; patches = [ From 4d7b43a328ec89d4bec5c5fe33335339b534cc52 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Sun, 14 Feb 2021 17:02:54 -0300 Subject: [PATCH 17/21] calibre: cosmetical modifications To make @r-rmcgibbo happy! --- pkgs/applications/misc/calibre/default.nix | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/pkgs/applications/misc/calibre/default.nix b/pkgs/applications/misc/calibre/default.nix index 9ae93d3a2dd2..1471af254f14 100644 --- a/pkgs/applications/misc/calibre/default.nix +++ b/pkgs/applications/misc/calibre/default.nix @@ -21,7 +21,6 @@ , libusb1 , libmtp , xdg-utils -, makeDesktopItem , removeReferencesTo }: @@ -35,13 +34,12 @@ mkDerivation rec { }; patches = [ - # Patches from Debian that: - # - disable plugin installation (very insecure) + # Plugin installation (very insecure) disabled (from Debian) ./disable_plugins.patch - # - switches the version update from enabled to disabled by default + # Automatic version update disabled by default (from Debian) ./no_updates_dialog.patch - # the unrar patch is not from debian - ] ++ lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch; + ] + ++ lib.optional (!unrarSupport) ./dont_build_unrar_plugin.patch; escaped_pyqt5_dir = builtins.replaceStrings ["/"] ["\\/"] (toString python3Packages.pyqt5); platform_tag = @@ -59,8 +57,7 @@ mkDerivation rec { setup/build.py # Remove unneeded files and libs - rm -rf resources/calibre-portable.* \ - src/odf + rm -rf src/odf resources/calibre-portable.* ''; dontUseQmakeConfigure = true; @@ -173,11 +170,16 @@ mkDerivation rec { disallowedReferences = [ podofo.dev ]; meta = with lib; { - description = "Comprehensive e-book software"; homepage = "https://calibre-ebook.com"; - license = with licenses; if unrarSupport then unfreeRedistributable else gpl3; + description = "Comprehensive e-book software"; + longDescription = '' + calibre is a powerful and easy to use e-book manager. Users say it’s + outstanding and a must-have. It’ll allow you to do nearly everything and + it takes things a step beyond normal e-book software. It’s also completely + free and open source and great for both casual users and computer experts. + ''; + license = with licenses; if unrarSupport then unfreeRedistributable else gpl3Plus; maintainers = with maintainers; [ domenkozar pSub AndersonTorres ]; platforms = platforms.linux; - inherit version; }; } From 910e396d825de894f9db9c72138d62e55460b178 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Sun, 14 Feb 2021 14:09:43 -0800 Subject: [PATCH 18/21] git-hub: 1.1.0 -> 2.1.0 Package is python3-only as of v2.0.0 --- .../version-management/git-and-tools/git-hub/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/git-hub/default.nix b/pkgs/applications/version-management/git-and-tools/git-hub/default.nix index ac3de7cbc9ec..8c7ecee04768 100644 --- a/pkgs/applications/version-management/git-and-tools/git-hub/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git-hub/default.nix @@ -1,20 +1,19 @@ -{ lib, stdenv, fetchFromGitHub, gitMinimal, python2Packages }: +{ lib, stdenv, fetchFromGitHub, gitMinimal, docutils }: stdenv.mkDerivation rec { pname = "git-hub"; - version = "1.1.0"; + version = "2.1.0"; src = fetchFromGitHub { owner = "sociomantic-tsunami"; repo = "git-hub"; rev = "v${version}"; - sha256 = "0jkzg7vjvgb952qncndhki7n70714w61flbzf4mdcjc286lqjvwb"; + sha256 = "1df9l8fpbxjgcgi72fwaqxiay5kpfihyc63f0gj67mns9n9ic1i7"; }; - buildInputs = [ python2Packages.python ]; nativeBuildInputs = [ gitMinimal # Used during build to generate Bash completion. - python2Packages.docutils + docutils ]; postPatch = '' From 93981c0e463aef92d27e87a89cc5c09e988a11ea Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Sun, 14 Feb 2021 18:21:49 -0300 Subject: [PATCH 19/21] py65: eliminate unneeded meta.platforms buildPythonApplication already sets meta.platforms to the same set of platforms supported by Python. --- pkgs/misc/emulators/py65/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/misc/emulators/py65/default.nix b/pkgs/misc/emulators/py65/default.nix index 87439f7dcf91..66ba3cdf4b41 100644 --- a/pkgs/misc/emulators/py65/default.nix +++ b/pkgs/misc/emulators/py65/default.nix @@ -21,6 +21,5 @@ buildPythonApplication rec { ''; license = licenses.bsd3; maintainers = with maintainers; [ AndersonTorres ]; - platforms = with platforms; all; }; } From 368c1d9d7d62b48c96373a2ceb05f27e6634e4c6 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Sun, 14 Feb 2021 15:01:54 -0800 Subject: [PATCH 20/21] lollypop: add lovesegfault to maintainers --- pkgs/applications/audio/lollypop/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/audio/lollypop/default.nix b/pkgs/applications/audio/lollypop/default.nix index c85645565ee4..e3976910d00b 100644 --- a/pkgs/applications/audio/lollypop/default.nix +++ b/pkgs/applications/audio/lollypop/default.nix @@ -106,7 +106,7 @@ python3.pkgs.buildPythonApplication rec { description = "A modern music player for GNOME"; homepage = "https://wiki.gnome.org/Apps/Lollypop"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ worldofpeace ]; + maintainers = with maintainers; [ worldofpeace lovesegfault ]; platforms = platforms.linux; }; } From 5a059852433de00a4e6f3d8bb5dae6138cc1f03a Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Sun, 14 Feb 2021 15:11:16 -0800 Subject: [PATCH 21/21] lollypop: 1.4.5 -> 1.4.16 --- pkgs/applications/audio/lollypop/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/lollypop/default.nix b/pkgs/applications/audio/lollypop/default.nix index e3976910d00b..6c218738f0e2 100644 --- a/pkgs/applications/audio/lollypop/default.nix +++ b/pkgs/applications/audio/lollypop/default.nix @@ -25,7 +25,7 @@ python3.pkgs.buildPythonApplication rec { pname = "lollypop"; - version = "1.4.5"; + version = "1.4.16"; format = "other"; doCheck = false; @@ -34,7 +34,7 @@ python3.pkgs.buildPythonApplication rec { url = "https://gitlab.gnome.org/World/lollypop"; rev = "refs/tags/${version}"; fetchSubmodules = true; - sha256 = "1i5qcpp3fpkda08g6nkiiff8lsjmv5xsvpa0512kigq5z0lsagrx"; + sha256 = "sha256-4txJ+lYx2BROjZznFwWMc+tTVpYQpPtPySfCl+Hfy+0="; }; nativeBuildInputs = [