From 743c9b579ed529c03546356cc26e0672d40f28e3 Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Sun, 19 Mar 2023 07:30:17 +1000 Subject: [PATCH 01/53] natron: 2.3.15 -> 2.5.0 And unmark as broken. This removes the OpenFX plugins which are needed for most built-in nodes. Ideally there should be a "natron-with-plugins" function anyway, so let's create that later and have the OpenFX plugins packaged separately. Fixes #103029 --- pkgs/applications/video/natron/config.pri | 20 --- pkgs/applications/video/natron/default.nix | 152 +++++++-------------- pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 48 insertions(+), 126 deletions(-) delete mode 100644 pkgs/applications/video/natron/config.pri diff --git a/pkgs/applications/video/natron/config.pri b/pkgs/applications/video/natron/config.pri deleted file mode 100644 index c0d236c6b975..000000000000 --- a/pkgs/applications/video/natron/config.pri +++ /dev/null @@ -1,20 +0,0 @@ -boost: LIBS += -lboost_serialization -expat: LIBS += -lexpat -expat: PKGCONFIG -= expat -cairo { - PKGCONFIG += cairo - LIBS -= $$system(pkg-config --variable=libdir cairo)/libcairo.a -} -pyside { - PKGCONFIG -= pyside - INCLUDEPATH += $$system(pkg-config --variable=includedir pyside) - INCLUDEPATH += $$system(pkg-config --variable=includedir pyside)/QtCore - INCLUDEPATH += $$system(pkg-config --variable=includedir pyside)/QtGui - INCLUDEPATH += $$system(pkg-config --variable=includedir QtGui) - LIBS += -lpyside-python2.7 -} -shiboken { - PKGCONFIG -= shiboken - INCLUDEPATH += $$system(pkg-config --variable=includedir shiboken) - LIBS += -lshiboken-python2.7 -} diff --git a/pkgs/applications/video/natron/default.nix b/pkgs/applications/video/natron/default.nix index b41503b73597..66f7ca3da2f0 100644 --- a/pkgs/applications/video/natron/default.nix +++ b/pkgs/applications/video/natron/default.nix @@ -1,98 +1,31 @@ -{ lib, stdenv, fetchurl, qt4, pkg-config, boost, expat, cairo, python2Packages, - cmake, flex, bison, pango, librsvg, librevenge, libxml2, libcdr, libzip, - poppler, imagemagick, openexr, ffmpeg, opencolorio_1, openimageio_1, - qmake4Hook, libpng, libGL, lndir, libraw, openjpeg, libwebp, fetchFromGitHub }: +{ lib +, stdenv +, fetchFromGitHub +, qt5 +, cmake +, pkg-config +, boost +, expat +, cairo +, python3 +, python3Packages +, extra-cmake-modules +, wayland +, glog +, ceres-solver +}: let - minorVersion = "2.3"; - version = "${minorVersion}.15"; - OpenColorIO-Configs = fetchurl { - url = "https://github.com/NatronGitHub/OpenColorIO-Configs/archive/Natron-v${minorVersion}.tar.gz"; - sha256 = "AZK9J+RnMyxOYcAQOAQZj5QciPQ999m6jrtBt5rdpkA="; + minorVersion = "2.5"; + version = "${minorVersion}.0"; + OpenColorIO-Configs = fetchFromGitHub { + owner = "NatronGitHub"; + repo = "OpenColorIO-Configs"; + rev = "Natron-v${minorVersion}"; + sha256 = "sha256-TD7Uge9kKbFxOmOCn+TSQovnKTmFS3uERTu5lmZFHbc="; }; - seexpr = stdenv.mkDerivation rec { - version = "1.0.1"; - pname = "seexpr"; - src = fetchurl { - url = "https://github.com/wdas/SeExpr/archive/rel-${version}.tar.gz"; - sha256 = "1ackh0xs4ip7mk34bam8zd4qdymkdk0dgv8x0f2mf6gbyzzyh7lp"; - }; - nativeBuildInputs = [ cmake ]; - buildInputs = [ libpng flex bison ]; - }; - buildPlugin = { pluginName, sha256, nativeBuildInputs ? [], buildInputs ? [], preConfigure ? "", postPatch ? "" }: - stdenv.mkDerivation { - pname = "openfx-${pluginName}"; - version = version; - src = fetchurl { - url = "https://github.com/NatronGitHub/openfx-${pluginName}/releases/download/Natron-${version}/openfx-${pluginName}-Natron-${version}.tar.xz"; - inherit sha256; - }; - inherit nativeBuildInputs buildInputs postPatch; - preConfigure = '' - makeFlagsArray+=("CONFIG=release") - makeFlagsArray+=("PLUGINPATH=$out/Plugins/OFX/Natron") - ${preConfigure} - ''; - }; - lodepngcpp = fetchurl { - url = "https://raw.githubusercontent.com/lvandeve/lodepng/a70c086077c0eaecbae3845e4da4424de5f43361/lodepng.cpp"; - sha256 = "1dxkkr4jbmvlwfr7m16i1mgcj1pqxg9s1a7y3aavs9rrk0ki8ys2"; - }; - lodepngh = fetchurl { - url = "https://raw.githubusercontent.com/lvandeve/lodepng/a70c086077c0eaecbae3845e4da4424de5f43361/lodepng.h"; - sha256 = "14drdikd0vws3wwpyqq7zzm5z3kg98svv4q4w0hr45q6zh6hs0bq"; - }; - cimgversion = "89b9d062ec472df3d33989e6d5d2a8b50ba0775c"; - CImgh = fetchurl { - url = "https://raw.githubusercontent.com/dtschump/CImg/${cimgversion}/CImg.h"; - sha256 = "sha256-NbYpZDNj2oZ+wqoEkRwwCjiujdr+iGOLA0Pa0Ynso6U="; - }; - inpainth = fetchurl { - url = "https://raw.githubusercontent.com/dtschump/CImg/${cimgversion}/plugins/inpaint.h"; - sha256 = "sha256-cd28a3VOs5002GkthHkbIUrxZfKuGhqIYO4Oxe/2HIQ="; - }; - plugins = map buildPlugin [ - ({ - pluginName = "arena"; - sha256 = "tUb6myG03mRieUAfgRZfv5Ap+cLvbpNrLMYCGTiAq8c="; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - pango librsvg librevenge libcdr opencolorio_1 libxml2 libzip - poppler imagemagick - ]; - preConfigure = '' - sed -i 's|pkg-config poppler-glib|pkg-config poppler poppler-glib|g' Makefile.master - for i in Extra Bundle; do - cp ${lodepngcpp} $i/lodepng.cpp - cp ${lodepngh} $i/lodepng.h - done - ''; - }) - ({ - pluginName = "io"; - sha256 = "OQg6a5wNy9TFFySjmgd1subvXRxY/ZnSOCkaoUo+ZaA="; - nativeBuildInputs = [ pkg-config ]; - buildInputs = [ - libpng ffmpeg openexr opencolorio_1 openimageio_1 boost libGL - seexpr libraw openjpeg libwebp - ]; - }) - ({ - pluginName = "misc"; - sha256 = "XkdQyWI9ilF6IoP3yuHulNUZRPLX1m4lq/+RbXsrFEQ="; - buildInputs = [ - libGL - ]; - postPatch = '' - cp '${inpainth}' CImg/Inpaint/inpaint.h - patch -p0 -dCImg < CImg/Inpaint/inpaint.h.patch # taken from the Makefile; it gets skipped if the file already exists - cp '${CImgh}' CImg/CImg.h - ''; - }) - ]; in -stdenv.mkDerivation { +qt5.mkDerivation { inherit version; pname = "natron"; @@ -101,28 +34,38 @@ stdenv.mkDerivation { repo = "Natron"; rev = "v${version}"; fetchSubmodules = true; - sha256 = "sha256-KuXJmmIsvwl4uqmAxXqWU+273jsdWrCuUSwWn5vuu8M="; + sha256 = "sha256-dgScbfyulZPlrngqSw7xwipldoRd8uFO8VP9mlJyhQ8="; }; - nativeBuildInputs = [ qmake4Hook pkg-config python2Packages.wrapPython ]; + cmakeFlags = [ "-DNATRON_SYSTEM_LIBS=ON" ]; - buildInputs = [ - qt4 boost expat cairo python2Packages.pyside python2Packages.pysideShiboken + nativeBuildInputs = [ + cmake + pkg-config ]; - preConfigure = '' - export MAKEFLAGS=-j$NIX_BUILD_CORES - cp ${./config.pri} config.pri - mkdir OpenColorIO-Configs - tar -xf ${OpenColorIO-Configs} --strip-components=1 -C OpenColorIO-Configs + buildInputs = [ + boost + expat + cairo + python3 + python3Packages.pyside2 + python3Packages.shiboken2 + extra-cmake-modules + wayland + glog + ceres-solver + ]; + + postInstall = '' + mkdir -p $out/share + cp -r ${OpenColorIO-Configs} $out/share/OpenColorIO-Configs ''; postFixup = '' - for i in ${lib.escapeShellArgs plugins}; do - ${lndir}/bin/lndir $i $out - done wrapProgram $out/bin/Natron \ - --set PYTHONPATH "$PYTHONPATH" + --prefix PYTHONPATH : "${python3Packages.makePythonPath [ python3Packages.pyside2 ]}" \ + --set-default OCIO "$out/share/OpenColorIO-Configs/blender/config.ocio" ''; meta = with lib; { @@ -135,6 +78,5 @@ stdenv.mkDerivation { license = lib.licenses.gpl2; maintainers = [ maintainers.puffnfresh ]; platforms = platforms.linux; - broken = true; # Last evaluated on Hydra on 2021-05-18 }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f6213897591f..97cce6b9e67c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31994,7 +31994,7 @@ with pkgs; neomutt = callPackage ../applications/networking/mailreaders/neomutt { }; - natron = callPackage ../applications/video/natron { }; + natron = qt5.callPackage ../applications/video/natron { }; natural-docs = callPackage ../applications/misc/natural-docs { }; From 0eede3e318601380c287408f45a55b8ba0249b0b Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Mon, 20 Mar 2023 16:00:59 +1000 Subject: [PATCH 02/53] natron: add missing dependencies mentioned in warnings --- pkgs/applications/video/natron/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/video/natron/default.nix b/pkgs/applications/video/natron/default.nix index 66f7ca3da2f0..cf7466dd0003 100644 --- a/pkgs/applications/video/natron/default.nix +++ b/pkgs/applications/video/natron/default.nix @@ -5,14 +5,15 @@ , cmake , pkg-config , boost -, expat , cairo +, ceres-solver +, expat +, extra-cmake-modules +, glog +, libXdmcp , python3 , python3Packages -, extra-cmake-modules , wayland -, glog -, ceres-solver }: let @@ -55,6 +56,7 @@ qt5.mkDerivation { wayland glog ceres-solver + libXdmcp ]; postInstall = '' @@ -64,7 +66,7 @@ qt5.mkDerivation { postFixup = '' wrapProgram $out/bin/Natron \ - --prefix PYTHONPATH : "${python3Packages.makePythonPath [ python3Packages.pyside2 ]}" \ + --prefix PYTHONPATH : "${python3Packages.makePythonPath [ python3Packages.qtpy python3Packages.pyside2 ]}" \ --set-default OCIO "$out/share/OpenColorIO-Configs/blender/config.ocio" ''; From 6ef393f0bc632e6ae954ebd7124c93073430ebad Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Fri, 12 May 2023 10:47:35 +0200 Subject: [PATCH 03/53] ardour: 7.3 -> 7.4 --- pkgs/applications/audio/ardour/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/ardour/default.nix b/pkgs/applications/audio/ardour/default.nix index 376e8e418cce..b5aa21a5bbec 100644 --- a/pkgs/applications/audio/ardour/default.nix +++ b/pkgs/applications/audio/ardour/default.nix @@ -58,14 +58,14 @@ }: stdenv.mkDerivation rec { pname = "ardour"; - version = "7.3"; + version = "7.4"; # We can't use `fetchFromGitea` here, as attempting to fetch release archives from git.ardour.org # result in an empty archive. See https://tracker.ardour.org/view.php?id=7328 for more info. src = fetchgit { url = "git://git.ardour.org/ardour/ardour.git"; rev = version; - hash = "sha256-fDZGmKQ6qgENkq8NY/J67Jym+IXoOYs8DT4xyPXLcC4="; + hash = "sha256-CUGhJi3ji0F6v41Y08sQvo7oKITOJ96ojdJL+FyCxmw="; }; bundledContent = fetchzip { From bc9d28d808316e71e51c804412af74e0d76171dd Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Sun, 14 May 2023 11:07:45 -0400 Subject: [PATCH 04/53] mudlet: 4.17.0 -> 4.17.2 Updates Mudlet from v4.17.0 to v4.17.2. See the upstream release notes[0] for more information. Notably this commit also fixes missing translation files that would prevent the built Mudlet from using certain Geyser UI elements (e.g. localized `AdjustableContainer` instances). [0]: https://github.com/Mudlet/Mudlet/releases/tag/Mudlet-4.17.2 --- pkgs/games/mudlet/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/games/mudlet/default.nix b/pkgs/games/mudlet/default.nix index 709cccab9366..52990a2d5eab 100644 --- a/pkgs/games/mudlet/default.nix +++ b/pkgs/games/mudlet/default.nix @@ -54,14 +54,14 @@ let in stdenv.mkDerivation rec { pname = "mudlet"; - version = "4.17.0"; + version = "4.17.2"; src = fetchFromGitHub { owner = "Mudlet"; repo = "Mudlet"; rev = "Mudlet-${version}"; fetchSubmodules = true; - hash = "sha256-j0d37C1TTb6ggXk1wTaqEcBKwsxE/B7Io90gTkc2q0M="; + hash = "sha256-K75frptePKfHeGQNXaX4lKsLwO6Rs6AAka6hvP8MA+k="; }; nativeBuildInputs = [ @@ -113,6 +113,8 @@ stdenv.mkDerivation rec { mkdir -pv $out/share/pixmaps cp -r ../mudlet.png $out/share/pixmaps/ + cp -r ../translations $out/share/ + makeQtWrapper $out/mudlet $out/bin/mudlet \ --set LUA_CPATH "${luaEnv}/lib/lua/${lua.luaversion}/?.so" \ --prefix LUA_PATH : "$NIX_LUA_PATH" \ From 998c9067cfe93c84de52cc4e3ff080350ca954b7 Mon Sep 17 00:00:00 2001 From: Bryton Hall Date: Mon, 22 May 2023 20:05:56 -0400 Subject: [PATCH 05/53] feedbackd: 0.1.0 -> 0.2.0 Also removed patch from upstream MR 109 as it's now merged. --- pkgs/applications/misc/feedbackd/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/misc/feedbackd/default.nix b/pkgs/applications/misc/feedbackd/default.nix index a8345035db07..45da9c1afaa8 100644 --- a/pkgs/applications/misc/feedbackd/default.nix +++ b/pkgs/applications/misc/feedbackd/default.nix @@ -31,7 +31,7 @@ let in stdenv.mkDerivation rec { pname = "feedbackd"; - version = "0.1.0"; + version = "0.2.0"; outputs = [ "out" "dev" "devdoc" ]; @@ -40,17 +40,10 @@ stdenv.mkDerivation rec { owner = "Librem5"; repo = "feedbackd"; rev = "v${version}"; - hash = "sha256-7H5Ah4zo+wLKd0WoKoOgtIm7HcUSw8PTf/KzBlY75oc="; + hash = "sha256-l5rfMx3ElW25A5WVqzfKBp57ebaNC9msqV7mvnwv10s="; fetchSubmodules = true; }; - patches = [ - (fetchpatch2 { - url = "https://source.puri.sm/Librem5/feedbackd/-/merge_requests/109.patch"; - hash = "sha256-z3Ud6P2GHYOaGA2vJDD3Sz47+M8p0VcYZ5gbYcGydMk="; - }) - ]; - depsBuildBuild = [ pkg-config ]; From 39666bc44976392ca98e3a924739ae2b0338757d Mon Sep 17 00:00:00 2001 From: Bryton Hall Date: Mon, 22 May 2023 20:06:15 -0400 Subject: [PATCH 06/53] phoc: 0.25.0 -> 0.27.0 --- pkgs/applications/misc/phoc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/phoc/default.nix b/pkgs/applications/misc/phoc/default.nix index 3fedad7478c5..babd3578d25b 100644 --- a/pkgs/applications/misc/phoc/default.nix +++ b/pkgs/applications/misc/phoc/default.nix @@ -52,7 +52,7 @@ let }); in stdenv.mkDerivation rec { pname = "phoc"; - version = "0.25.0"; + version = "0.27.0"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; @@ -60,7 +60,7 @@ in stdenv.mkDerivation rec { owner = "Phosh"; repo = pname; rev = "v${version}"; - sha256 = "sha256-1cbv4vzQ+RcRoT1pOT8Q0nxuZzKUlec38KCNMYaceeE="; + sha256 = "sha256-4/Fxo72KXLy3gxXMS+PrTUbZl0EFt2GPMXg8+/fE7MY="; fetchSubmodules = true; }; From 259c394055c77508266c81c57ad87b0e1500b195 Mon Sep 17 00:00:00 2001 From: Bryton Hall Date: Mon, 22 May 2023 20:06:34 -0400 Subject: [PATCH 07/53] phosh: 0.25.1 -> 0.27.0 --- pkgs/applications/window-managers/phosh/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/window-managers/phosh/default.nix b/pkgs/applications/window-managers/phosh/default.nix index a28c471332a2..3c2ff89a79cd 100644 --- a/pkgs/applications/window-managers/phosh/default.nix +++ b/pkgs/applications/window-managers/phosh/default.nix @@ -36,7 +36,7 @@ stdenv.mkDerivation rec { pname = "phosh"; - version = "0.25.1"; + version = "0.27.0"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; @@ -45,7 +45,7 @@ stdenv.mkDerivation rec { repo = pname; rev = "v${version}"; fetchSubmodules = true; # including gvc and libcall-ui which are designated as subprojects - sha256 = "sha256-ysAZdmkFEuqJDTPe246F2I4Qp+fjtomia42PS8BuMM8="; + sha256 = "sha256-dnSYeXn3aPwvxeIjjk+PsnOVKyuGlxXMXGWDdrRrIM0="; }; nativeBuildInputs = [ From 34bc14a8ec5fdda5fcffb259850ebfe2ead16f3d Mon Sep 17 00:00:00 2001 From: "S. Nordin Abouzahra" Date: Wed, 31 May 2023 03:25:35 -0400 Subject: [PATCH 08/53] deadd-notification-center: unstable-2022-11-07 -> 2.0.3 The configuration file is now in YAML format. Users will need to update `deadd.conf` to `deadd.yml`. --- .../misc/deadd-notification-center/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/deadd-notification-center/default.nix b/pkgs/applications/misc/deadd-notification-center/default.nix index 8474eebf3501..2d2221ff6a89 100644 --- a/pkgs/applications/misc/deadd-notification-center/default.nix +++ b/pkgs/applications/misc/deadd-notification-center/default.nix @@ -17,13 +17,13 @@ let ''; in mkDerivation rec { pname = "deadd-notification-center"; - version = "unstable-2022-11-07"; + version = "2.0.3"; src = fetchFromGitHub { owner = "phuhl"; repo = "linux_notification_center"; - rev = "f4b8e2b724d86def9e7b0e12ea624f95760352d5"; - hash = "sha256-ClJfWqStULvmj5YRAUDAmn2WOSA2sVtyZsa+qSY51Gk="; + rev = "${version}"; + hash = "sha256-OM4zzKdo0HMvzAl7BG9IuSHmTauSC5rLWoJJOAshDYg="; }; isLibrary = false; @@ -31,11 +31,11 @@ in mkDerivation rec { isExecutable = true; libraryHaskellDepends = with haskellPackages; [ - base bytestring ConfigFile containers dbus directory env-locale + aeson base bytestring ConfigFile containers dbus directory env-locale filepath gi-cairo gi-gdk gi-gdkpixbuf gi-gio gi-glib gi-gobject gi-gtk gi-pango haskell-gettext haskell-gi haskell-gi-base hdaemonize here lens mtl process regex-tdfa setlocale split stm - tagsoup text time transformers tuple unix + tagsoup text time transformers tuple unix yaml ]; executableHaskellDepends = with haskellPackages; [ base ]; From 5b6c95c4cb2c30dae4891347c1b14a8524541050 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 1 Jun 2023 15:43:51 +0300 Subject: [PATCH 09/53] nixos/nextcloud: Mention that adminpassFile is only used on startup --- nixos/modules/services/web-apps/nextcloud.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index a8142cf42d75..32ee744f1395 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -381,7 +381,8 @@ in { type = types.str; description = lib.mdDoc '' The full path to a file that contains the admin's password. Must be - readable by user `nextcloud`. + readable by user `nextcloud`. The password is set only in the initial + setup of nextcloud by the systemd `nextcloud-setup.service`. ''; }; From eb16dc66c11340373f140d924042a2aff7072aed Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Mon, 22 May 2023 20:53:46 +0200 Subject: [PATCH 10/53] borgmatic: 1.7.9 -> 1.7.14 --- pkgs/tools/backup/borgmatic/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/backup/borgmatic/default.nix b/pkgs/tools/backup/borgmatic/default.nix index ea85df188b81..f5a1ac9bbae3 100644 --- a/pkgs/tools/backup/borgmatic/default.nix +++ b/pkgs/tools/backup/borgmatic/default.nix @@ -13,11 +13,11 @@ python3Packages.buildPythonApplication rec { pname = "borgmatic"; - version = "1.7.9"; + version = "1.7.14"; src = fetchPypi { inherit pname version; - sha256 = "sha256-v3Qxwy7V6rqX90G4/Xp6mVTUkrqDXmudgh3th0GCjuk="; + sha256 = "sha256-rABJfdrV+D2v6yHpAbzj/0MSGc9bo49pwXEC45Mmmlk="; }; nativeCheckInputs = with python3Packages; [ flexmock pytestCheckHook pytest-cov ]; From 7ca12d5f710da18d1c0199bd5c0c91347913eeb0 Mon Sep 17 00:00:00 2001 From: MaxHearnden Date: Tue, 6 Jun 2023 12:24:26 +0100 Subject: [PATCH 11/53] ffsend: Fix segmentation fault This applies a patch updating prettytable-rs, the other three patches are needed to merge the final patch cleanly --- pkgs/tools/misc/ffsend/default.nix | 35 ++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/ffsend/default.nix b/pkgs/tools/misc/ffsend/default.nix index a96492246d21..309abb973d31 100644 --- a/pkgs/tools/misc/ffsend/default.nix +++ b/pkgs/tools/misc/ffsend/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitLab, rustPlatform, pkg-config, openssl +{ lib, stdenv, fetchFromGitLab, fetchpatch, rustPlatform, pkg-config, openssl , installShellFiles , Security, AppKit @@ -24,7 +24,38 @@ rustPlatform.buildRustPackage rec { sha256 = "sha256-L1j1lXPxy9nWMeED9uzQHV5y7XTE6+DB57rDnXa4kMo="; }; - cargoSha256 = "sha256-zNLU9QnBGna5qb+iu2imOUvCIw3ZWRFsQlpFo5ECtKo="; + cargoHash = "sha256-r1yIPV2sW/EpHJpdaJyi6pzE+rtNkBIxSUJF+XA8kbA="; + + cargoPatches = [ + + # Update dependencies (needed for the below patch to merge cleanly) + (fetchpatch { + name = "Update-dependencies-1"; + url = "https://github.com/timvisee/ffsend/commit/afb004680b9ed672c7e87ff23f16bb2c51fea06e.patch"; + hash = "sha256-eDcbyi05aOq+muVWdLmlLzLXUKcrv/9Y0R+0aHgL4+s="; + }) + + # Disable unused features in prettytable-rs crate (needed for the below patch to merge cleanly) + (fetchpatch { + name = "Disable-unused-features"; + url = "https://github.com/timvisee/ffsend/commit/9b8dee12ea839f911ed207ff9602d929cab5d34b.patch"; + hash = "sha256-6LK1Fqov+zEbPZ4+B6JCLXtXmgSad9vr9YO2oYodBSM="; + }) + + # Update dependencies (needed for the below patch to merge cleanly) + (fetchpatch { + name = "Update-dependencies-2"; + url = "https://github.com/timvisee/ffsend/commit/fd5b38f9ab9cbc5f962d1024f4809eb36ba8986c.patch"; + hash = "sha256-BDZKrVtQHpOewmB2Lb6kUfy02swcNK+CYZ3lj3kwFV4="; + }) + + # Fix seg fault + (fetchpatch { + name = "Fix-segfault"; + url = "https://github.com/timvisee/ffsend/commit/3c1c2dc28ca1d88c45f87496a7a96052f5c37858.patch"; + hash = "sha256-2hWlFXDopNy26Df74nJoB1J8qzPEOpf61wEOEtxOVx8="; + }) + ]; nativeBuildInputs = [ installShellFiles ] ++ lib.optionals stdenv.isLinux [ pkg-config ]; From ac258860572c11bdc2566eb6e0bcf517ee9dfdd0 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 8 Jun 2023 09:24:54 +0300 Subject: [PATCH 12/53] syncthingtray: 1.4.1 -> 1.4.2 Diff: https://github.com/Martchus/syncthingtray/compare/v1.4.1...v1.4.2 --- pkgs/applications/misc/syncthingtray/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/syncthingtray/default.nix b/pkgs/applications/misc/syncthingtray/default.nix index 4ccea88032e6..619b55aabe97 100644 --- a/pkgs/applications/misc/syncthingtray/default.nix +++ b/pkgs/applications/misc/syncthingtray/default.nix @@ -30,14 +30,14 @@ https://github.com/NixOS/nixpkgs/issues/199596#issuecomment-1310136382 */ }: mkDerivation rec { - version = "1.4.1"; + version = "1.4.2"; pname = "syncthingtray"; src = fetchFromGitHub { owner = "Martchus"; repo = "syncthingtray"; rev = "v${version}"; - sha256 = "sha256-6s78vytYxU7FWGQRO56qgmtZBlHbXMz3iVAbBXycDmI="; + sha256 = "sha256-xhzrcC+UuDl4CN0bsLLWyssQMEasEEKe2AfIi9taSzA="; }; buildInputs = [ From 9789f453cb9cd8f81f81ebfe359a8cadcdcdacff Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 8 Jun 2023 20:22:53 +0300 Subject: [PATCH 13/53] syncthingtray: 1.4.2 -> 1.4.3 Diff: https://github.com/Martchus/syncthingtray/compare/v1.4.2...v1.4.3 --- pkgs/applications/misc/syncthingtray/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/syncthingtray/default.nix b/pkgs/applications/misc/syncthingtray/default.nix index 619b55aabe97..d1a9d1840839 100644 --- a/pkgs/applications/misc/syncthingtray/default.nix +++ b/pkgs/applications/misc/syncthingtray/default.nix @@ -30,14 +30,14 @@ https://github.com/NixOS/nixpkgs/issues/199596#issuecomment-1310136382 */ }: mkDerivation rec { - version = "1.4.2"; + version = "1.4.3"; pname = "syncthingtray"; src = fetchFromGitHub { owner = "Martchus"; repo = "syncthingtray"; rev = "v${version}"; - sha256 = "sha256-xhzrcC+UuDl4CN0bsLLWyssQMEasEEKe2AfIi9taSzA="; + sha256 = "sha256-6J/P/DDD17QtXAISQn77EDIYqQu1hY7EnIX0FC6H/20="; }; buildInputs = [ From 5f3abbad246cbb23ef56d9c10ae4e81153e8273c Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 6 Jun 2023 19:46:45 +0300 Subject: [PATCH 14/53] python3Packages.pylion: init at 0.5.2 --- .../python-modules/pylion/default.nix | 55 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 57 insertions(+) create mode 100644 pkgs/development/python-modules/pylion/default.nix diff --git a/pkgs/development/python-modules/pylion/default.nix b/pkgs/development/python-modules/pylion/default.nix new file mode 100644 index 000000000000..a5b590dd32ef --- /dev/null +++ b/pkgs/development/python-modules/pylion/default.nix @@ -0,0 +1,55 @@ +{ lib +, buildPythonPackage +, fetchFromBitbucket +, h5py +, termcolor +, pexpect +, jinja2 +, sphinxHook +, sphinx-rtd-theme +}: + +buildPythonPackage { + pname = "pylion"; + version = "0.5.2"; + format = "setuptools"; + + src = fetchFromBitbucket { + owner = "dtrypogeorgos"; + repo = "pylion"; + # Version is set in setup.cfg, but not in a git tag / bitbucket release + rev = "8945a7b6f1912ae6b9c705f8a2bd521101f5ba59"; + hash = "sha256-4AdJkoQ1hAssDUpgmARGmN+ihQqRPPOncWJ5ErQyWII="; + }; + + # Docs are not available online, besides the article: + # http://dx.doi.org/10.1016/j.cpc.2020.107187 + nativeBuildInputs = [ + sphinxHook + sphinx-rtd-theme + ]; + + propagatedBuildInputs = [ + h5py + termcolor + pexpect + jinja2 + ]; + + pythonImportsCheck = [ "pylion" ]; + + # Tests fail from some reason - some files seem to be missing from the repo. + doCheck = false; + + postInstall = '' + mkdir -p $out/share/doc/$name + cp -r examples $out/share/doc/$name/examples + ''; + + meta = with lib; { + description = "A LAMMPS wrapper for molecular dynamics simulations of trapped ions"; + homepage = "https://bitbucket.org/dtrypogeorgos/pylion"; + license = licenses.mit; + maintainers = with maintainers; [ doronbehar ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c394e42aada2..aafa75154ae9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8811,6 +8811,8 @@ self: super: with self; { pylint-venv = callPackage ../development/python-modules/pylint-venv { }; + pylion = callPackage ../development/python-modules/pylion { }; + pylitterbot = callPackage ../development/python-modules/pylitterbot { }; py-libzfs = callPackage ../development/python-modules/py-libzfs { }; From c1668191afd9a2e55bb6df823c7b9ad2bffa8fc6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 10 Jun 2023 22:40:23 +0200 Subject: [PATCH 15/53] python311Packages.typer: 0.7.0 -> 0.9.0 Changelog: https://github.com/tiangolo/typer/releases/tag/0.9.0 --- .../python-modules/typer/default.nix | 27 ++++++++++--------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/typer/default.nix b/pkgs/development/python-modules/typer/default.nix index f02a0f0c5139..eaec338f44b7 100644 --- a/pkgs/development/python-modules/typer/default.nix +++ b/pkgs/development/python-modules/typer/default.nix @@ -1,43 +1,40 @@ { lib , stdenv , buildPythonPackage +, click , colorama +, coverage , fetchpatch , fetchPypi , flit-core -, click +, pytest-sugar +, pytest-xdist , pytestCheckHook +, pythonOlder , rich , shellingham -, pytest-xdist -, pytest-sugar -, coverage -, pythonOlder +, typing-extensions }: buildPythonPackage rec { pname = "typer"; - version = "0.7.0"; + version = "0.9.0"; format = "pyproject"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-/3l4RleKnyogG1NEKu3rVDMZRmhw++HHAeq2bddoEWU="; + hash = "sha256-UJIv15rqL0dRqOBAj/ENJmK9DIu/qEdVppnzutopeLI="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace "rich >=10.11.0,<13.0.0" "rich" - ''; - nativeBuildInputs = [ flit-core ]; propagatedBuildInputs = [ click + typing-extensions ]; passthru.optional-dependencies = { @@ -58,7 +55,10 @@ buildPythonPackage rec { preCheck = '' export HOME=$(mktemp -d); ''; - disabledTests = lib.optionals stdenv.isDarwin [ + + disabledTests = [ + "test_scripts" + ] ++ lib.optionals stdenv.isDarwin [ # likely related to https://github.com/sarugaku/shellingham/issues/35 "test_show_completion" "test_install_completion" @@ -73,6 +73,7 @@ buildPythonPackage rec { meta = with lib; { description = "Library for building CLI applications"; homepage = "https://typer.tiangolo.com/"; + changelog = "https://github.com/tiangolo/typer/releases/tag/${version}"; license = licenses.mit; maintainers = with maintainers; [ winpat ]; }; From 2eb6d1855614db8878e8dbfc433edf08dfeb4bf7 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 10 Jun 2023 23:38:43 +0200 Subject: [PATCH 16/53] python310Packages.spacy: 3.5.2 -> 3.5.3 Changelog: https://github.com/explosion/spaCy/releases/tag/v3.5.3 --- .../python-modules/spacy/default.nix | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/spacy/default.nix b/pkgs/development/python-modules/spacy/default.nix index f6ecf1d7ebe7..30e7cbfa1cc0 100644 --- a/pkgs/development/python-modules/spacy/default.nix +++ b/pkgs/development/python-modules/spacy/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , blis , buildPythonPackage , callPackage @@ -17,6 +18,7 @@ , pytest , python , pythonOlder +, pythonRelaxDepsHook , requests , setuptools , spacy-legacy @@ -28,7 +30,6 @@ , typing-extensions , wasabi , writeScript -, stdenv , nix , git , nix-update @@ -36,16 +37,24 @@ buildPythonPackage rec { pname = "spacy"; - version = "3.5.2"; + version = "3.5.3"; format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - hash = "sha256-IsH/qrKFt0dwA9S1sDhBTMMkaKaQ1HkBW5ppjFMcgTs="; + hash = "sha256-NZcdZyFXZTjWxCPGagnOAL9m4Q5AcmpXt6gZkxgMJIw="; }; + pythonRelaxDeps = [ + "typer" + ]; + + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + propagatedBuildInputs = [ blis catalogue @@ -70,9 +79,7 @@ buildPythonPackage rec { wasabi ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions - ]; - - postPatch = '' + ]; postPatch = '' substituteInPlace setup.cfg \ --replace "typer>=0.3.0,<0.5.0" "typer>=0.3.0" ''; @@ -82,6 +89,7 @@ buildPythonPackage rec { ]; doCheck = false; + checkPhase = '' ${python.interpreter} -m pytest spacy/tests --vectors --models --slow ''; From 2c9c83b03e2d57fc9caffe9e5c5b9fa58b28470c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Jun 2023 00:04:39 +0200 Subject: [PATCH 17/53] python310Packages.coinmetrics-api-client: 2023.5.26.17 -> 2023.6.8.20 --- .../coinmetrics-api-client/default.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/coinmetrics-api-client/default.nix b/pkgs/development/python-modules/coinmetrics-api-client/default.nix index 31fc61aa0d98..976b1abbb871 100644 --- a/pkgs/development/python-modules/coinmetrics-api-client/default.nix +++ b/pkgs/development/python-modules/coinmetrics-api-client/default.nix @@ -5,10 +5,11 @@ , orjson , pandas , poetry-core -, pytestCheckHook , pytest-mock -, pythonOlder +, pytestCheckHook , python-dateutil +, pythonOlder +, pythonRelaxDepsHook , requests , typer , websocket-client @@ -16,7 +17,7 @@ buildPythonPackage rec { pname = "coinmetrics-api-client"; - version = "2023.5.26.17"; + version = "2023.6.8.20"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -26,11 +27,16 @@ buildPythonPackage rec { src = fetchPypi { inherit version; pname = "coinmetrics_api_client"; - hash = "sha256-GCHXraeH6WWTlCnw9B1Xwtb6jwcxcvW1siy2T/8x14Q="; + hash = "sha256-Koll0pod0vSW/F3veGTn8JYOMQI61REUW6Eh+TDJKNI="; }; + pythonRelaxDeps = [ + "typer" + ]; + nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ @@ -52,7 +58,9 @@ buildPythonPackage rec { passthru = { optional-dependencies = { - pandas = [ pandas ]; + pandas = [ + pandas + ]; }; updateScript = nix-update-script { }; }; From c13299137efdd6381affadef18867af558c9b7fc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Jun 2023 00:07:07 +0200 Subject: [PATCH 18/53] shell-genie: relax typer contraint --- pkgs/applications/misc/shell-genie/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/misc/shell-genie/default.nix b/pkgs/applications/misc/shell-genie/default.nix index 0f4851563202..9c64415132fa 100644 --- a/pkgs/applications/misc/shell-genie/default.nix +++ b/pkgs/applications/misc/shell-genie/default.nix @@ -16,8 +16,13 @@ buildPythonPackage rec { hash = "sha256-z7LiAq2jLzqjg4Q/r9o7M6VbedeT34NyPpgctfqBp+8="; }; + pythonRelaxDeps = [ + "typer" + ]; + nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ From 1267c76570009813c1879a4699aabc63d0d2c4c0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Jun 2023 00:12:12 +0200 Subject: [PATCH 19/53] python311Packages.rstcheck: relax typer constraint --- pkgs/development/python-modules/rstcheck/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/rstcheck/default.nix b/pkgs/development/python-modules/rstcheck/default.nix index 0d06168191f1..2ad2e206b6c4 100644 --- a/pkgs/development/python-modules/rstcheck/default.nix +++ b/pkgs/development/python-modules/rstcheck/default.nix @@ -7,6 +7,7 @@ , pydantic , pytestCheckHook , pythonOlder +, pythonRelaxDepsHook , rstcheck-core , typer , types-docutils @@ -27,8 +28,13 @@ buildPythonPackage rec { hash = "sha256-UMByfnnP1va3v1IgyQL0f3kC+W6HoiWScb7U2FAvWkU="; }; + pythonRelaxDeps = [ + "typer" + ]; + nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ From ba8ca6aa28359c5096bbcb4b42a952f74f38df24 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Jun 2023 00:31:40 +0200 Subject: [PATCH 20/53] dbx: migrate to pythonRelaxDepsHook --- pkgs/applications/misc/dbx/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/dbx/default.nix b/pkgs/applications/misc/dbx/default.nix index 3c6cb1e78f0f..e8b0d4cc7228 100644 --- a/pkgs/applications/misc/dbx/default.nix +++ b/pkgs/applications/misc/dbx/default.nix @@ -16,11 +16,18 @@ python3.pkgs.buildPythonApplication rec { hash = "sha256-dArR1z3wkGDd3Y1WHK0sLjhuaKHAcsx6cCH2rgVdUGs="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace "mlflow-skinny>=1.28.0,<3.0.0" "mlflow" \ - --replace "rich==12.6.0" "rich" - ''; + pythonRelaxDeps = [ + "rich" + "typer" + ]; + + pythonRemoveDeps = [ + "mlflow-skinny" + ]; + + nativeBuildInputs = with python3.pkgs; [ + pythonRelaxDepsHook + ]; propagatedBuildInputs = with python3.pkgs; [ aiohttp From 14d92d3bbaeb8906b568a4683ce09e9012175516 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Jun 2023 16:23:03 +0200 Subject: [PATCH 21/53] python311Packages.apispec-webframeworks: init at 0.5.2 --- .../apispec-webframeworks/default.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/apispec-webframeworks/default.nix diff --git a/pkgs/development/python-modules/apispec-webframeworks/default.nix b/pkgs/development/python-modules/apispec-webframeworks/default.nix new file mode 100644 index 000000000000..3211eed5aa3f --- /dev/null +++ b/pkgs/development/python-modules/apispec-webframeworks/default.nix @@ -0,0 +1,50 @@ +{ lib +, apispec +, bottle +, buildPythonPackage +, fetchFromGitHub +, flask +, mock +, pytestCheckHook +, pythonOlder +, tornado +}: + +buildPythonPackage rec { + pname = "apispec-webframeworks"; + version = "0.5.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "marshmallow-code"; + repo = "apispec-webframeworks"; + rev = version; + hash = "sha256-ByNmmBLO99njw9JrT+cCW/K4NJBH92smAiIgg47Cvkk="; + }; + + propagatedBuildInputs = [ + apispec + ] ++ apispec.optional-dependencies.yaml; + + nativeCheckInputs = [ + bottle + flask + mock + pytestCheckHook + tornado + ]; + + pythonImportsCheck = [ + "apispec_webframeworks" + ]; + + meta = with lib; { + description = "Web framework plugins for apispec"; + homepage = "https://github.com/marshmallow-code/apispec-webframeworks"; + changelog = "https://github.com/marshmallow-code/apispec-webframeworks/blob/${version}/CHANGELOG.rst"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e44b27d24d48..025c98c1a38f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -544,6 +544,8 @@ self: super: with self; { apispec = callPackage ../development/python-modules/apispec { }; + apispec-webframeworks = callPackage ../development/python-modules/apispec-webframeworks { }; + aplpy = callPackage ../development/python-modules/aplpy { }; app-model = callPackage ../development/python-modules/app-model { }; From e3be7e3b8aa2993cf65228166e4a8dda4a3825fb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Jun 2023 17:18:24 +0200 Subject: [PATCH 22/53] python311Packages.filedepot: init at 0.9.0 --- .../python-modules/filedepot/default.nix | 64 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 66 insertions(+) create mode 100644 pkgs/development/python-modules/filedepot/default.nix diff --git a/pkgs/development/python-modules/filedepot/default.nix b/pkgs/development/python-modules/filedepot/default.nix new file mode 100644 index 000000000000..5d27db98a87c --- /dev/null +++ b/pkgs/development/python-modules/filedepot/default.nix @@ -0,0 +1,64 @@ +{ lib +, anyascii +, buildPythonPackage +, fetchFromGitHub +, flaky +, mock +, paste +, pillow +, pymongo +, pytestCheckHook +, pythonOlder +, requests +, sqlalchemy +}: + +buildPythonPackage rec { + pname = "filedepot"; + version = "0.9.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "amol-"; + repo = "depot"; + rev = "refs/tags/${version}"; + hash = "sha256-OJc4Qwar3sKhKKF1WldwaueRG7FCboWT2wXYldHJbPU="; + }; + + propagatedBuildInputs = [ + anyascii + ]; + + nativeCheckInputs = [ + flaky + mock + paste + pillow + pymongo + pytestCheckHook + requests + sqlalchemy + ]; + + disabledTestPaths = [ + # The examples have tests + "examples" + # Missing dependencies (TurboGears2 and ming) + "tests/test_fields_ming.py" + "tests/test_wsgi_middleware.py" + ]; + + pythonImportsCheck = [ + "depot" + ]; + + meta = with lib; { + description = "Toolkit for storing files and attachments in web applications"; + homepage = "https://github.com/amol-/depot"; + changelog = "https://github.com/amol-/depot/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c394e42aada2..9872739d1bdb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3554,6 +3554,8 @@ self: super: with self; { filecheck = callPackage ../development/python-modules/filecheck { }; + filedepot = callPackage ../development/python-modules/filedepot { }; + filelock = callPackage ../development/python-modules/filelock { }; filetype = callPackage ../development/python-modules/filetype { }; From 5c99fa668628e22d8c982181040df514ef751ea1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 11 Jun 2023 17:19:29 +0200 Subject: [PATCH 23/53] python311Packages.simplekv: init at 0.14.1 --- .../python-modules/simplekv/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/simplekv/default.nix diff --git a/pkgs/development/python-modules/simplekv/default.nix b/pkgs/development/python-modules/simplekv/default.nix new file mode 100644 index 000000000000..12e2449b04c5 --- /dev/null +++ b/pkgs/development/python-modules/simplekv/default.nix @@ -0,0 +1,48 @@ +{ lib +, buildPythonPackage +, dulwich +, fetchFromGitHub +, mock +, pytestCheckHook +, pythonOlder +, six +}: + +buildPythonPackage rec { + pname = "simplekv"; + version = "0.14.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "mbr"; + repo = "simplekv"; + rev = "refs/tags/${version}"; + hash = "sha256-seUGDj2q84+AjDFM1pxMLlHbe9uBgEhmqA96UHjnCmo="; + }; + + nativeCheckInputs = [ + dulwich + mock + pytestCheckHook + six + ]; + + pythonImportsCheck = [ + "simplekv" + ]; + + disabledTests = [ + # Issue with fixture + "test_concurrent_mkdir" + ]; + + meta = with lib; { + description = "A simple key-value store for binary data"; + homepage = "https://github.com/mbr/simplekv"; + changelog = "https://github.com/mbr/simplekv/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e44b27d24d48..4313d7231233 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11195,6 +11195,8 @@ self: super: with self; { simplekml = callPackage ../development/python-modules/simplekml { }; + simplekv = callPackage ../development/python-modules/simplekv { }; + simplenote = callPackage ../development/python-modules/simplenote { }; simplesat = callPackage ../development/python-modules/simplesat { }; From a1c660b55d8f3e50fb7bb4124954b63b8dc743e9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 12 Jun 2023 07:31:56 +0200 Subject: [PATCH 24/53] python311Packages.elkm1-lib: 2.2.4 -> 2.2.5 Diff: https://github.com/gwww/elkm1/compare/refs/tags/2.2.4...2.2.5 Changelog: https://github.com/gwww/elkm1/blob/2.2.5/CHANGELOG.md --- pkgs/development/python-modules/elkm1-lib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/elkm1-lib/default.nix b/pkgs/development/python-modules/elkm1-lib/default.nix index b899c5417a0b..d7536d9a56e0 100644 --- a/pkgs/development/python-modules/elkm1-lib/default.nix +++ b/pkgs/development/python-modules/elkm1-lib/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "elkm1-lib"; - version = "2.2.4"; + version = "2.2.5"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -21,7 +21,7 @@ buildPythonPackage rec { owner = "gwww"; repo = "elkm1"; rev = "refs/tags/${version}"; - hash = "sha256-qqkKsVSspVBVxX96vlM8+6SqfdIBTcVyODJzQ4Ga+6g="; + hash = "sha256-8Mzxaww6a+vi3i8H4W9jRgY+5mpTGaJbNBXPDPn8sl4="; }; nativeBuildInputs = [ From 882d513d5480f5e42b617a3fe2cf4dd6c00a5011 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 12 Jun 2023 07:34:57 +0200 Subject: [PATCH 25/53] python311Packages.teslajsonpy: 3.8.1 -> 3.9.0 Diff: https://github.com/zabuldon/teslajsonpy/compare/refs/tags/v3.8.1...v3.9.0 Changelog: https://github.com/zabuldon/teslajsonpy/releases/tag/v3.9.0 --- pkgs/development/python-modules/teslajsonpy/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/teslajsonpy/default.nix b/pkgs/development/python-modules/teslajsonpy/default.nix index a2c9a31a80e3..d005791642ab 100644 --- a/pkgs/development/python-modules/teslajsonpy/default.nix +++ b/pkgs/development/python-modules/teslajsonpy/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "teslajsonpy"; - version = "3.8.1"; + version = "3.9.0"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "zabuldon"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-RPR1ek1gpbermSRaGqT2v31UVB6044E2ZxIqv1yr2bs="; + hash = "sha256-6H8miS0tKB99ZkiBvqJ77NIsswJ+ivYt1VZOLwTQr24="; }; nativeBuildInputs = [ From 69f06fc20c8338928bb30fc35909377820ef30dd Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 12 Jun 2023 08:57:15 +0200 Subject: [PATCH 26/53] python311Packages.sqltrie: 0.5.0 -> 0.6.0 Diff: https://github.com/iterative/sqltrie/compare/refs/tags/0.5.0...0.6.0 Changelog: https://github.com/iterative/sqltrie/releases/tag/0.6.0 --- pkgs/development/python-modules/sqltrie/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sqltrie/default.nix b/pkgs/development/python-modules/sqltrie/default.nix index 262c81aa2b38..ee94d6a18d63 100644 --- a/pkgs/development/python-modules/sqltrie/default.nix +++ b/pkgs/development/python-modules/sqltrie/default.nix @@ -11,7 +11,7 @@ buildPythonPackage rec { pname = "sqltrie"; - version = "0.5.0"; + version = "0.6.0"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -20,7 +20,7 @@ buildPythonPackage rec { owner = "iterative"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-caCzFHQG0fnSmIdesk4k1W/VheY1DWxZb2W8/Xen/ZU="; + hash = "sha256-f3nQMkDI4n/hORW038KL+LQcyc6Hzx1MDrcChk7W8t4="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; From 835a38caebcd1153130488afc152a5aa2178245c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 12 Jun 2023 08:58:19 +0200 Subject: [PATCH 27/53] python311Packages.dvc-data: 0.55.0 -> 1.7.0 Changelog: https://github.com/iterative/dvc-data/releases/tag/1.7.0 --- pkgs/development/python-modules/dvc-data/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/dvc-data/default.nix b/pkgs/development/python-modules/dvc-data/default.nix index 7e4cfac084a9..1b3f8692fb16 100644 --- a/pkgs/development/python-modules/dvc-data/default.nix +++ b/pkgs/development/python-modules/dvc-data/default.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { pname = "dvc-data"; - version = "0.55.0"; + version = "1.7.0"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -24,7 +24,7 @@ buildPythonPackage rec { owner = "iterative"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-eE1cVzhwyClVYmaotw37sG46g5W1ToUE/f3pZ2CCcE0="; + hash = "sha256-vZPhlCY7KWM521C/uFx8nddpLD/72tX0g1JRb2KeIfA="; }; SETUPTOOLS_SCM_PRETEND_VERSION = version; From d9abe6bc7c369dc4039cdd993bc6b5897e1f510d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 13 Jun 2023 00:45:09 +0000 Subject: [PATCH 28/53] unciv: 4.6.15 -> 4.6.19 --- pkgs/games/unciv/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/games/unciv/default.nix b/pkgs/games/unciv/default.nix index 3fc7768c031d..f057299d6c72 100644 --- a/pkgs/games/unciv/default.nix +++ b/pkgs/games/unciv/default.nix @@ -25,11 +25,11 @@ let in stdenv.mkDerivation rec { pname = "unciv"; - version = "4.6.15"; + version = "4.6.19"; src = fetchurl { url = "https://github.com/yairm210/Unciv/releases/download/${version}/Unciv.jar"; - hash = "sha256-69JEf5dG3Nf4CLT8eKfeo/8givyyxb9QpQSAZ2dG7TI="; + hash = "sha256-21Pge/b6pZ4csGVr2J0V6rwZGKBEEqEkuef+7imGtl4="; }; dontUnpack = true; From 9145ccba2b6abd0f0f71a423e2c6ed02ac6dd1ad Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 13 Jun 2023 00:57:24 +0000 Subject: [PATCH 29/53] jitsi-meet: 1.0.7235 -> 1.0.7322 --- pkgs/servers/web-apps/jitsi-meet/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/web-apps/jitsi-meet/default.nix b/pkgs/servers/web-apps/jitsi-meet/default.nix index f3ed321714d1..73b66b3269ed 100644 --- a/pkgs/servers/web-apps/jitsi-meet/default.nix +++ b/pkgs/servers/web-apps/jitsi-meet/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "jitsi-meet"; - version = "1.0.7235"; + version = "1.0.7322"; src = fetchurl { url = "https://download.jitsi.org/jitsi-meet/src/jitsi-meet-${version}.tar.bz2"; - sha256 = "OlAInpGl6I5rKgIsO3nXUQfksU326lsSDdiZdCYM3NU="; + sha256 = "BjoNu1cQOw9JjX6i2R/K8Txx6m6ndVRnWPjze9y14pQ="; }; dontBuild = true; From 104992f3cf43dd4060c14650cc4d1b491a384db5 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 13 Jun 2023 04:20:00 +0000 Subject: [PATCH 30/53] emacs: disable withXwidgets on darwin withXwidgets requires webkitgtk, which is marked as broken on Darwin. --- pkgs/applications/editors/emacs/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/emacs/generic.nix b/pkgs/applications/editors/emacs/generic.nix index 4a981930e549..30da08920a8f 100644 --- a/pkgs/applications/editors/emacs/generic.nix +++ b/pkgs/applications/editors/emacs/generic.nix @@ -98,7 +98,7 @@ , withWebP ? lib.versionAtLeast version "29" , withX ? !(stdenv.isDarwin || noGui || withPgtk) , withXinput2 ? withX && lib.versionAtLeast version "29" -, withXwidgets ? !noGui && (withGTK3 || withPgtk) +, withXwidgets ? !stdenv.isDarwin && !noGui && (withGTK3 || withPgtk) # Options , siteStart ? ./site-start.el From f6a16cbc1fbd442b233131e44e2e28882b7bb4b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 13 Jun 2023 16:29:33 +0200 Subject: [PATCH 31/53] python310.pkgs.pygnmi: init at 0.8.12 --- .../python-modules/pygnmi/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/pygnmi/default.nix diff --git a/pkgs/development/python-modules/pygnmi/default.nix b/pkgs/development/python-modules/pygnmi/default.nix new file mode 100644 index 000000000000..584e6a2aca2c --- /dev/null +++ b/pkgs/development/python-modules/pygnmi/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, cryptography +, dictdiffer +, grpcio +, protobuf +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pygnmi"; + version = "0.8.12"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "akarneliuk"; + repo = "pygnmi"; + rev = "v${version}"; + sha256 = "sha256-5dAjN/HDFKQmJIjhergBjSmHQKhBxqy/Jneh1pLCHrw="; + }; + + propagatedBuildInputs = [ + cryptography + dictdiffer + grpcio + protobuf + ]; + + # almost all tests fail with: + # TypeError: expected string or bytes-like object + doCheck = false; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "pygnmi" ]; + + meta = with lib; { + description = "Pure Python gNMI client to manage network functions and collect telemetry"; + homepage = "https://github.com/akarneliuk/pygnmi"; + license = licenses.bsd3; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b9051f34031d..d0d1ebe5f4ca 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7703,6 +7703,8 @@ self: super: with self; { pygments-style-github = callPackage ../development/python-modules/pygments-style-github { }; + pygnmi = callPackage ../development/python-modules/pygnmi { }; + pygti = callPackage ../development/python-modules/pygti { }; pyheos = callPackage ../development/python-modules/pyheos { }; From 49a5f2ff509b07fedf26be5ca8aff3dc4d483ee2 Mon Sep 17 00:00:00 2001 From: matthewcroughan Date: Tue, 13 Jun 2023 18:40:53 +0100 Subject: [PATCH 32/53] ugs: init at 2.0.17 --- pkgs/tools/misc/ugs/default.nix | 53 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 55 insertions(+) create mode 100644 pkgs/tools/misc/ugs/default.nix diff --git a/pkgs/tools/misc/ugs/default.nix b/pkgs/tools/misc/ugs/default.nix new file mode 100644 index 000000000000..8edcd453b00a --- /dev/null +++ b/pkgs/tools/misc/ugs/default.nix @@ -0,0 +1,53 @@ +{ stdenv +, lib +, copyDesktopItems +, makeDesktopItem +, makeWrapper +, jre +, fetchzip +, bash +}: +let + desktopItem = makeDesktopItem { + name = "ugs"; + exec = "ugs"; + comment = "A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core."; + desktopName = "Universal-G-Code-Sender"; + categories = [ "Game" ]; + }; + +in +stdenv.mkDerivation rec { + pname = "ugs"; + version = "2.0.17"; + + src = fetchzip { + url = "https://github.com/winder/Universal-G-Code-Sender/releases/download/v${version}/UniversalGcodeSender.zip"; + hash = "sha256-m4oD0ibrlVwP8ZS1pjnu/QaWmQMQlAWtZV2MGhB9X1A="; + }; + + dontUnpack = true; + + nativeBuildInputs = [ copyDesktopItems makeWrapper ]; + + installPhase = '' + runHook preInstall + + makeWrapper ${jre}/bin/java $out/bin/ugs \ + --prefix PATH : ${lib.makeBinPath [ jre ]} \ + --add-flags "-jar ${src}/UniversalGcodeSender.jar" + + runHook postInstall + ''; + + desktopItems = [ desktopItem ]; + + meta = with lib; { + description = "A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core."; + homepage = "https://github.com/winder/Universal-G-Code-Sender"; + maintainers = with maintainers; [ matthewcroughan ]; + sourceProvenance = with sourceTypes; [ binaryBytecode ]; + license = licenses.gpl3; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1e6233ca454b..55288348cabb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13455,6 +13455,8 @@ with pkgs; ugrep = callPackage ../tools/text/ugrep { }; + ugs = callPackage ../tools/misc/ugs { }; + uhk-agent = callPackage ../os-specific/linux/uhk-agent { }; uhk-udev-rules = callPackage ../os-specific/linux/uhk-udev-rules { }; From 6ed7e686b263fe44251b6ebd3617b133473220fd Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 13 Jun 2023 18:45:35 +0000 Subject: [PATCH 33/53] gvm-libs: 22.5.0 -> 22.6.2 --- pkgs/development/libraries/gvm-libs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gvm-libs/default.nix b/pkgs/development/libraries/gvm-libs/default.nix index 8b5bb4c42466..1da0345a2a70 100644 --- a/pkgs/development/libraries/gvm-libs/default.nix +++ b/pkgs/development/libraries/gvm-libs/default.nix @@ -23,13 +23,13 @@ stdenv.mkDerivation rec { pname = "gvm-libs"; - version = "22.5.0"; + version = "22.6.2"; src = fetchFromGitHub { owner = "greenbone"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-QHAkPZoLQG+UQ1YNdad+XYOywqLqIW1vBmcFkuf3pXU="; + hash = "sha256-b7a9LD291LT28TujOQ3DE76+wtmBYeAGrXZXTM0quWw="; }; nativeBuildInputs = [ From a80629ec9d8ce6511742da911a110ba0b535ca5d Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 13 Jun 2023 19:46:48 +0000 Subject: [PATCH 34/53] linuxPackages.apfs: drop obsolete kernel reference --- pkgs/os-specific/linux/apfs/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/os-specific/linux/apfs/default.nix b/pkgs/os-specific/linux/apfs/default.nix index 70c344903f54..123fe79b9fbc 100644 --- a/pkgs/os-specific/linux/apfs/default.nix +++ b/pkgs/os-specific/linux/apfs/default.nix @@ -44,7 +44,6 @@ stdenv.mkDerivation { homepage = "https://github.com/linux-apfs/linux-apfs-rw"; license = licenses.gpl2Only; platforms = platforms.linux; - broken = kernel.kernelOlder "4.9"; maintainers = with maintainers; [ Luflosi ]; }; } From 596d8fff5fbfbf2aab7d21539260d4f430fe9650 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 13 Jun 2023 20:17:16 +0000 Subject: [PATCH 35/53] minio: 2023-05-27T05-56-19Z -> 2023-06-09T07-32-12Z --- pkgs/servers/minio/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/minio/default.nix b/pkgs/servers/minio/default.nix index 18630690cce2..75492de079f4 100644 --- a/pkgs/servers/minio/default.nix +++ b/pkgs/servers/minio/default.nix @@ -15,16 +15,16 @@ let in buildGoModule rec { pname = "minio"; - version = "2023-05-27T05-56-19Z"; + version = "2023-06-09T07-32-12Z"; src = fetchFromGitHub { owner = "minio"; repo = "minio"; rev = "RELEASE.${version}"; - sha256 = "sha256-HwyPrXywhJ0D/eelcPOE8CPrEeJkaLr7wMdW5O+8cZA="; + sha256 = "sha256-YhABdJ+4KU/UGRukCR4iQ4ClHUz/icbIO/yd8rGIs48="; }; - vendorHash = "sha256-jvJM4I5ruDYwJsB258aZ3UP9FjtzYc0XSYpXdjqafMI="; + vendorHash = "sha256-c2rB8Or4tt84caEmfbwcHCow3/fllk0mNW0R/MwB5Vg="; doCheck = false; From eb3f1f13b82855a3aa20b6d9a827a262d61fc4cc Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 13 Jun 2023 20:40:47 +0000 Subject: [PATCH 36/53] cloudfox: 1.10.3 -> 1.11.1 --- pkgs/tools/security/cloudfox/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/cloudfox/default.nix b/pkgs/tools/security/cloudfox/default.nix index 0a92262bf6e7..b34d152f5c8d 100644 --- a/pkgs/tools/security/cloudfox/default.nix +++ b/pkgs/tools/security/cloudfox/default.nix @@ -5,16 +5,16 @@ buildGoModule rec { pname = "cloudfox"; - version = "1.10.3"; + version = "1.11.1"; src = fetchFromGitHub { owner = "BishopFox"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-XLn2GwoVNPoGTgXZx/q9dEmWigKB1BNylzxO9dBT3Zg="; + hash = "sha256-46w0/Da5sJkw2jLEGiFICEaX9bvCs0sbad1RyDCxINw="; }; - vendorHash = "sha256-v8rEsp2mDgfjCO2VvWNIxex8F350MDnZ40bR4szv+3o="; + vendorHash = "sha256-lgccNq1cSg8rrHW0aMLcC5HrZXf8TvdFSmk6pbGXNqQ="; # Some tests are failing because of wrong filename/path doCheck = false; From 15bce5c2049dd2f19fcb4fc9d80196f81d46af2c Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 14 Jun 2023 00:51:29 +0300 Subject: [PATCH 37/53] natron: cleanup --- pkgs/applications/video/natron/default.nix | 17 +++++++++-------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/video/natron/default.nix b/pkgs/applications/video/natron/default.nix index cf7466dd0003..d5c603998f3d 100644 --- a/pkgs/applications/video/natron/default.nix +++ b/pkgs/applications/video/natron/default.nix @@ -1,9 +1,9 @@ { lib , stdenv , fetchFromGitHub -, qt5 , cmake , pkg-config +, wrapQtAppsHook , boost , cairo , ceres-solver @@ -12,7 +12,6 @@ , glog , libXdmcp , python3 -, python3Packages , wayland }: @@ -23,10 +22,10 @@ let owner = "NatronGitHub"; repo = "OpenColorIO-Configs"; rev = "Natron-v${minorVersion}"; - sha256 = "sha256-TD7Uge9kKbFxOmOCn+TSQovnKTmFS3uERTu5lmZFHbc="; + hash = "sha256-TD7Uge9kKbFxOmOCn+TSQovnKTmFS3uERTu5lmZFHbc="; }; in -qt5.mkDerivation { +stdenv.mkDerivation { inherit version; pname = "natron"; @@ -35,7 +34,7 @@ qt5.mkDerivation { repo = "Natron"; rev = "v${version}"; fetchSubmodules = true; - sha256 = "sha256-dgScbfyulZPlrngqSw7xwipldoRd8uFO8VP9mlJyhQ8="; + hash = "sha256-dgScbfyulZPlrngqSw7xwipldoRd8uFO8VP9mlJyhQ8="; }; cmakeFlags = [ "-DNATRON_SYSTEM_LIBS=ON" ]; @@ -43,6 +42,7 @@ qt5.mkDerivation { nativeBuildInputs = [ cmake pkg-config + wrapQtAppsHook ]; buildInputs = [ @@ -50,8 +50,8 @@ qt5.mkDerivation { expat cairo python3 - python3Packages.pyside2 - python3Packages.shiboken2 + python3.pkgs.pyside2 + python3.pkgs.shiboken2 extra-cmake-modules wayland glog @@ -66,7 +66,7 @@ qt5.mkDerivation { postFixup = '' wrapProgram $out/bin/Natron \ - --prefix PYTHONPATH : "${python3Packages.makePythonPath [ python3Packages.qtpy python3Packages.pyside2 ]}" \ + --prefix PYTHONPATH : "${python3.pkgs.makePythonPath [ python3.pkgs.qtpy python3.pkgs.pyside2 ]}" \ --set-default OCIO "$out/share/OpenColorIO-Configs/blender/config.ocio" ''; @@ -80,5 +80,6 @@ qt5.mkDerivation { license = lib.licenses.gpl2; maintainers = [ maintainers.puffnfresh ]; platforms = platforms.linux; + broken = stdenv.isLinux && stdenv.isAarch64; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 97cce6b9e67c..b1750f1a2fc4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31994,7 +31994,7 @@ with pkgs; neomutt = callPackage ../applications/networking/mailreaders/neomutt { }; - natron = qt5.callPackage ../applications/video/natron { }; + natron = libsForQt5.callPackage ../applications/video/natron { }; natural-docs = callPackage ../applications/misc/natural-docs { }; From 7756269294910b60d85a0a093b12e68271e0db0e Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 14 Jun 2023 01:13:00 +0300 Subject: [PATCH 38/53] arc_unpacker: drop boost175 --- pkgs/tools/archivers/arc_unpacker/default.nix | 44 ++++++++++++++++--- pkgs/top-level/all-packages.nix | 4 +- 2 files changed, 40 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/archivers/arc_unpacker/default.nix b/pkgs/tools/archivers/arc_unpacker/default.nix index 2ade0f88a8d0..ee40a7a5ab4a 100644 --- a/pkgs/tools/archivers/arc_unpacker/default.nix +++ b/pkgs/tools/archivers/arc_unpacker/default.nix @@ -1,7 +1,20 @@ -{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, boost, libpng, libiconv -, libjpeg, zlib, openssl, libwebp, catch2 }: +{ lib +, stdenv +, fetchFromGitHub +, fetchpatch +, cmake +, makeWrapper +, boost +, libpng +, libiconv +, libjpeg +, zlib +, openssl +, libwebp +, catch2 +}: -stdenv.mkDerivation rec { +stdenv.mkDerivation { pname = "arc_unpacker"; version = "unstable-2021-08-06"; @@ -12,14 +25,35 @@ stdenv.mkDerivation rec { hash = "sha256-STbdWH7Mr3gpOrZvujblYrIIKEWBHzy1/BaNuh4teI8="; }; - nativeBuildInputs = [ cmake makeWrapper catch2 ]; - buildInputs = [ boost libiconv libjpeg libpng libwebp openssl zlib ]; + patches = [ + (fetchpatch { + name = "failing_tests.patch"; + url = "https://aur.archlinux.org/cgit/aur.git/plain/failing_tests.patch?h=arc_unpacker-git&id=bda1ad9f69e6802e703b2e6913d71a36d76cfef9"; + hash = "sha256-bClACsf/+SktyLAPtt7EcSqprkw8JVIi1ZLpcJcv9IE="; + }) + ]; postPatch = '' cp ${catch2}/include/catch2/catch.hpp tests/test_support/catch.h sed '1i#include ' -i src/dec/eagls/pak_archive_decoder.cc # gcc12 ''; + nativeBuildInputs = [ + cmake + makeWrapper + catch2 + ]; + + buildInputs = [ + boost + libiconv + libjpeg + libpng + libwebp + openssl + zlib + ]; + checkPhase = '' runHook preCheck diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e08e59367e72..cca60b335bd2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1359,9 +1359,7 @@ with pkgs; type = "OPN"; }; - arc_unpacker = callPackage ../tools/archivers/arc_unpacker { - boost = boost175; # checkPhase fails with Boost 1.77 - }; + arc_unpacker = callPackage ../tools/archivers/arc_unpacker { }; adminer = callPackage ../servers/adminer { }; From 31e42afc36690ba0aef7292a8e7730684e9901a2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 13 Jun 2023 22:54:50 +0000 Subject: [PATCH 39/53] python311Packages.fakeredis: 2.12.1 -> 2.14.1 --- pkgs/development/python-modules/fakeredis/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/fakeredis/default.nix b/pkgs/development/python-modules/fakeredis/default.nix index 11a6ebb85be8..ddebf51f1cae 100644 --- a/pkgs/development/python-modules/fakeredis/default.nix +++ b/pkgs/development/python-modules/fakeredis/default.nix @@ -16,7 +16,7 @@ buildPythonPackage rec { pname = "fakeredis"; - version = "2.12.1"; + version = "2.14.1"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -25,7 +25,7 @@ buildPythonPackage rec { owner = "dsoftwareinc"; repo = "fakeredis-py"; rev = "refs/tags/v${version}"; - hash = "sha256-WF3dITWCrTQDORfaGWPpJBQFkPrUN6faHohjvBuOW7I="; + hash = "sha256-kLCCCUbre/Bi0DFv/+PVHvw1NXn2HhQx5kYtEaOqP58="; }; nativeBuildInputs = [ From 580b08fd0f39669d6f8bebc0d75704d5a177e840 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 13 Jun 2023 23:08:35 +0000 Subject: [PATCH 40/53] python310Packages.openaiauth: 0.3.6 -> 1.0.2 --- pkgs/development/python-modules/openaiauth/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/openaiauth/default.nix b/pkgs/development/python-modules/openaiauth/default.nix index a50fd9baad87..7cc6e6d99e9a 100644 --- a/pkgs/development/python-modules/openaiauth/default.nix +++ b/pkgs/development/python-modules/openaiauth/default.nix @@ -6,12 +6,12 @@ buildPythonPackage rec { pname = "openaiauth"; - version = "0.3.6"; + version = "1.0.2"; src = fetchPypi { inherit version; pname = "OpenAIAuth"; - hash = "sha256-SaiTqs2HVv5ajUkrLJv24ed1+iJg5HqsCNe0IETkA00="; + hash = "sha256-0Vd8gvE2guHNlrPBahu23NpUFrJHvm6Q6NSNawX9gbY="; }; propagatedBuildInputs = [ requests ]; From 337fb24f1f578051906a255cbe25d276679fe590 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Wed, 14 Jun 2023 03:04:33 +0000 Subject: [PATCH 41/53] lnd: 0.16.2-beta -> 0.16.3-beta --- pkgs/applications/blockchains/lnd/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/blockchains/lnd/default.nix b/pkgs/applications/blockchains/lnd/default.nix index a62b8d18b403..e8b5be19191f 100644 --- a/pkgs/applications/blockchains/lnd/default.nix +++ b/pkgs/applications/blockchains/lnd/default.nix @@ -6,16 +6,16 @@ buildGoModule rec { pname = "lnd"; - version = "0.16.2-beta"; + version = "0.16.3-beta"; src = fetchFromGitHub { owner = "lightningnetwork"; repo = "lnd"; rev = "v${version}"; - sha256 = "sha256-s0m/aS99uB6LZb0+73SQ++mF0Ukg6IYIL+jbEi8ezW0="; + hash = "sha256-/seSpWnlQmeU4vQtlHMOSedPXP9HJp1GyxcB1LqHayA="; }; - vendorSha256 = "sha256-7Ydl56Z6aOMBQ1RamFzjD/yp3zgQLkF5WEoOQe1Urv0="; + vendorHash = "sha256-obrSVMqTwHe7231wa0OuoT6ANBqkQbkHIy93J2f68Zk="; subPackages = [ "cmd/lncli" "cmd/lnd" ]; From d9f25dbe07c62cb3762076ab3cbe0a2d8c492fed Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 1 Jun 2023 20:33:50 +0800 Subject: [PATCH 42/53] lightdm-slick-greeter: 1.6.1 -> 1.8.1 https://github.com/linuxmint/slick-greeter/compare/1.6.1...1.8.1 --- .../lightdm-slick-greeter/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/display-managers/lightdm-slick-greeter/default.nix b/pkgs/applications/display-managers/lightdm-slick-greeter/default.nix index 605b5bc286ab..f6914ae11c14 100644 --- a/pkgs/applications/display-managers/lightdm-slick-greeter/default.nix +++ b/pkgs/applications/display-managers/lightdm-slick-greeter/default.nix @@ -7,10 +7,12 @@ , intltool , autoreconfHook , wrapGAppsHook +, cinnamon , lightdm , gtk3 , pixman , libcanberra +, libgnomekbd , libX11 , libXext , linkFarm @@ -20,13 +22,13 @@ stdenv.mkDerivation rec { pname = "lightdm-slick-greeter"; - version = "1.6.1"; + version = "1.8.1"; src = fetchFromGitHub { owner = "linuxmint"; repo = "slick-greeter"; rev = version; - sha256 = "sha256-k/E3bR63kesHQ/we+ctC0UEYE5YdZ6Lv5lYuXqCOvKA="; + sha256 = "sha256-40RyGWn32ppPjsuPljGBO6o7bu2rKYBweDycRS7xAVA="; }; nativeBuildInputs = [ @@ -40,10 +42,12 @@ stdenv.mkDerivation rec { ]; buildInputs = [ + cinnamon.xapp lightdm gtk3 pixman libcanberra + libgnomekbd # needed by XApp.KbdLayoutController libX11 libXext ]; @@ -62,6 +66,10 @@ stdenv.mkDerivation rec { substituteInPlace src/session-list.vala \ --replace "/usr/share" "${placeholder "out"}/share" + # We prefer stable path here. + substituteInPlace data/x.dm.slick-greeter.gschema.xml \ + --replace "/usr/share/onboard" "/run/current-system/sw/share/onboard" + patchShebangs files/usr/bin/* ''; From 1455ac5377781b56a166b6dbfbe3c8f1f538d376 Mon Sep 17 00:00:00 2001 From: Hugh O'Brien Date: Tue, 13 Jun 2023 23:51:53 -0400 Subject: [PATCH 43/53] gendef: init at 11.0.1 --- pkgs/development/tools/gendef/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/tools/gendef/default.nix diff --git a/pkgs/development/tools/gendef/default.nix b/pkgs/development/tools/gendef/default.nix new file mode 100644 index 000000000000..9b2418486f17 --- /dev/null +++ b/pkgs/development/tools/gendef/default.nix @@ -0,0 +1,22 @@ +{ fetchgit, lib, stdenv }: + +stdenv.mkDerivation (finalAttrs: { + pname = "gendef"; + version = "11.0.1"; + + src = fetchgit { + url = "https://git.code.sf.net/p/mingw-w64/mingw-w64.git"; + rev = "v${finalAttrs.version}"; + hash = "sha256-0vbAHSN+uwxoXXZtbuycP67PxjcB8Ftxd/Oij1gqE3Y="; + }; + + sourceRoot = "mingw-w64/mingw-w64-tools/gendef"; + + meta = { + description = "A tool which generate def files from DLLs"; + homepage = "https://sourceforge.net/p/mingw-w64/wiki2/gendef/"; + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ hughobrien ]; + platforms = lib.platforms.linux; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8b7c841b6cdb..3232cf3c918a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -589,6 +589,8 @@ with pkgs; functiontrace-server = callPackage ../development/tools/functiontrace-server { }; + gendef = callPackage ../development/tools/gendef { }; + glade = callPackage ../development/tools/glade { }; goda = callPackage ../development/tools/goda { }; From fd682cd36d549089e7d44f2d21bfc5edf74109f4 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 14 Jun 2023 06:11:10 +0000 Subject: [PATCH 44/53] python310Packages.publicsuffixlist: 0.10.0.20230611 -> 0.10.0.20230614 --- pkgs/development/python-modules/publicsuffixlist/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/publicsuffixlist/default.nix b/pkgs/development/python-modules/publicsuffixlist/default.nix index 2f816d24d9c7..709058936dce 100644 --- a/pkgs/development/python-modules/publicsuffixlist/default.nix +++ b/pkgs/development/python-modules/publicsuffixlist/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "publicsuffixlist"; - version = "0.10.0.20230611"; + version = "0.10.0.20230614"; format = "setuptools"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-z5mh/8sFulky9LX0LPwBuYWebjsqWc0EsPjDZMuTCX8="; + hash = "sha256-8tB95lcW4IQBeU5cY0YFfLKW3a0g1SQH9sJbn0cduho="; }; passthru.optional-dependencies = { From 4b71c412071563c3231c62d3ce21d189379577d2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 03:19:45 +0000 Subject: [PATCH 45/53] terraform-providers.azurerm: 3.60.0 -> 3.61.0 --- .../networking/cluster/terraform-providers/providers.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 2f6b083227e6..0882632af6e6 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -128,11 +128,11 @@ "vendorHash": null }, "azurerm": { - "hash": "sha256-OEybd46MRwtxnE11oy6KKg9uEqkzzUxrrMwbF0RkjUg=", + "hash": "sha256-YrAEwWHlxh8e0uH9UEy7F5wZkOzbqXUfy2g2uVwBrxA=", "homepage": "https://registry.terraform.io/providers/hashicorp/azurerm", "owner": "hashicorp", "repo": "terraform-provider-azurerm", - "rev": "v3.60.0", + "rev": "v3.61.0", "spdx": "MPL-2.0", "vendorHash": null }, From cc058b44dda820d27e6696a4ecd12e5fd691516e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 03:22:38 +0000 Subject: [PATCH 46/53] terraform-providers.fastly: 5.0.0 -> 5.1.0 --- .../networking/cluster/terraform-providers/providers.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 0882632af6e6..782ec0128f57 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -381,11 +381,11 @@ "vendorHash": "sha256-E1gzdES/YVxQq2J47E2zosvud2C/ViBeQ8+RfNHMBAg=" }, "fastly": { - "hash": "sha256-zjeiA09kTc9qE+YGGrmMhken7oh3pX309t6VKE/fKN0=", + "hash": "sha256-ZskfmyYqUFa848uAl+ejBUaYiD0dWdwUyWBw5TKRrHg=", "homepage": "https://registry.terraform.io/providers/fastly/fastly", "owner": "fastly", "repo": "terraform-provider-fastly", - "rev": "v5.0.0", + "rev": "v5.1.0", "spdx": "MPL-2.0", "vendorHash": null }, From c3578f48bdd90a0e5ef288064c2bd01a19fb44b4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 03:24:47 +0000 Subject: [PATCH 47/53] terraform-providers.hcloud: 1.39.0 -> 1.40.0 --- .../networking/cluster/terraform-providers/providers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 782ec0128f57..5acaeb44f2e4 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -484,13 +484,13 @@ "vendorHash": null }, "hcloud": { - "hash": "sha256-aqx6oMIqMUgpVMInZPxGFPT9i+pBdU3ufjM6YUSiOss=", + "hash": "sha256-PAsXAZMCo4mXLLh2h40xN9SuTnCnScwdjAT2j5HvNrI=", "homepage": "https://registry.terraform.io/providers/hetznercloud/hcloud", "owner": "hetznercloud", "repo": "terraform-provider-hcloud", - "rev": "v1.39.0", + "rev": "v1.40.0", "spdx": "MPL-2.0", - "vendorHash": "sha256-qa6DUmzL+JB/WTJM+a5VDvBCsrbt8gq/LeqzdAHLm0Q=" + "vendorHash": "sha256-dORrQ0gmSLOfyPOuFE84h9OkFI9yslRBfYhwnZM3iQc=" }, "helm": { "hash": "sha256-mGrQ5YKNsv1+Vkan5ohMXnTYofhCQPuTFjemXF/g+tA=", From f955c728d50f25f0038b9a7f4ea3011d737415ea Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 03:27:56 +0000 Subject: [PATCH 48/53] terraform-providers.huaweicloud: 1.49.0 -> 1.50.0 --- .../networking/cluster/terraform-providers/providers.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 5acaeb44f2e4..672da234edac 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -539,11 +539,11 @@ "vendorHash": "sha256-73Hpp4OLJyFmbiczVmFzCi++W0te6G9LSb8LhNwSDUg=" }, "huaweicloud": { - "hash": "sha256-2N8BmYd/8Mf65ARYeQcbMKLjNlxP6uZe+3+lsNZbiZg=", + "hash": "sha256-ullp0qBo2BFokbXMek5Y5s7qN2Ig3L5ekXSlbLhvrWU=", "homepage": "https://registry.terraform.io/providers/huaweicloud/huaweicloud", "owner": "huaweicloud", "repo": "terraform-provider-huaweicloud", - "rev": "v1.49.0", + "rev": "v1.50.0", "spdx": "MPL-2.0", "vendorHash": null }, From d29cdfa0aa9a98bf6040eebce3b4ef29b2a8784d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 03:33:44 +0000 Subject: [PATCH 49/53] terraform-providers.snowflake: 0.66.1 -> 0.66.2 --- .../networking/cluster/terraform-providers/providers.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index 672da234edac..d8838da5f4bb 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -1026,11 +1026,11 @@ "vendorHash": null }, "snowflake": { - "hash": "sha256-1a2zGEZgMdmH6/dBJ+19VHDMfOs7Xwd4wJ/CA/mVI3g=", + "hash": "sha256-0TnsoK1B6npf4zkaG2hkE8WVXgrI7DsFZFuqFd8kz/4=", "homepage": "https://registry.terraform.io/providers/Snowflake-Labs/snowflake", "owner": "Snowflake-Labs", "repo": "terraform-provider-snowflake", - "rev": "v0.66.1", + "rev": "v0.66.2", "spdx": "MIT", "vendorHash": "sha256-ZNkZ2GMSBZHz+L626VqT7pTeb8fSYkaCi84O5ggd1FM=" }, From 46ed4fc8306465cd872f6742b04c65acc4f74d08 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 14 Jun 2023 03:36:17 +0000 Subject: [PATCH 50/53] terraform-providers.aws: 5.2.0 -> 5.3.0 --- .../networking/cluster/terraform-providers/providers.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/cluster/terraform-providers/providers.json b/pkgs/applications/networking/cluster/terraform-providers/providers.json index d8838da5f4bb..b0b4573c112c 100644 --- a/pkgs/applications/networking/cluster/terraform-providers/providers.json +++ b/pkgs/applications/networking/cluster/terraform-providers/providers.json @@ -110,13 +110,13 @@ "vendorHash": null }, "aws": { - "hash": "sha256-hu4+FAqub+dah9is4iCyy784L8kIiFqkyrcZzll8LoU=", + "hash": "sha256-+0La1Gx8uBnz5WEidTfW5yqyNT2Ii+UaJJxWh05VAks=", "homepage": "https://registry.terraform.io/providers/hashicorp/aws", "owner": "hashicorp", "repo": "terraform-provider-aws", - "rev": "v5.2.0", + "rev": "v5.3.0", "spdx": "MPL-2.0", - "vendorHash": "sha256-y4JNZ4cMqXwvRNys+llQNGw91EuU/dzGY6Ifs/0cX8c=" + "vendorHash": "sha256-stvcLz/5DosG+c9syv5i2diTp8cCnCMfW1vngsXl7fQ=" }, "azuread": { "hash": "sha256-wBNS2a6O1QJgssbAWhSRSfxaVZ35zgT/qNdpE++NQ8U=", From 2c6ebabe8d89a81dbaa50d3562ed681e67236ca5 Mon Sep 17 00:00:00 2001 From: aleksana Date: Wed, 14 Jun 2023 16:58:07 +0800 Subject: [PATCH 51/53] valent: unstable-2023-05-01 -> unstable-2023-06-11 --- pkgs/applications/misc/valent/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/valent/default.nix b/pkgs/applications/misc/valent/default.nix index b680a9396820..047622e545ee 100644 --- a/pkgs/applications/misc/valent/default.nix +++ b/pkgs/applications/misc/valent/default.nix @@ -22,14 +22,14 @@ stdenv.mkDerivation rec { pname = "valent"; - version = "unstable-2023-05-01"; + version = "unstable-2023-06-11"; src = fetchFromGitHub { owner = "andyholmes"; repo = "valent"; - rev = "74f5d9349a60f0d9fcf88cda01713980a221d639"; + rev = "e6a121efa7eb7b432517d610de4deea6dfa876b0"; fetchSubmodules = true; - sha256 = "sha256-wqdujEKizrDFXtsjSTWpFgDL7MH3tsLTc7yd3LFgIQU="; + hash = "sha256-8X4Yu8VY5ehptJN1KtsCuoECtEZNLZMzOvU91j8UmDk="; }; nativeBuildInputs = [ From 077d8a3447e25cd2d6664ae187667701de42cd75 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Wed, 14 Jun 2023 10:43:26 +0100 Subject: [PATCH 52/53] buildNimPackage: refactor to use overlay-style overrideAttrs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make buildNimPackage cleaner and more efficient. Also encourage the use of a "buildNimPackage (finalAttrs: {…})" pattern. --- doc/languages-frameworks/nim.section.md | 40 ++++----- .../build-nim-package/default.nix | 83 +++++++++---------- .../development/nim-packages/sdl2/default.nix | 6 +- pkgs/tools/system/ttop/default.nix | 8 +- 4 files changed, 64 insertions(+), 73 deletions(-) diff --git a/doc/languages-frameworks/nim.section.md b/doc/languages-frameworks/nim.section.md index 4f97c7585f33..16ce9c591690 100644 --- a/doc/languages-frameworks/nim.section.md +++ b/doc/languages-frameworks/nim.section.md @@ -15,32 +15,23 @@ case of packages not containing exported library code the attribute The following example shows a Nim program that depends only on Nim libraries: ```nix -{ lib, nimPackages, fetchurl }: - -nimPackages.buildNimPackage rec { - pname = "hottext"; - version = "1.4"; +{ lib, nimPackages, fetchFromGitHub }: +nimPackages.buildNimPackage (finalAttrs: { + pname = "ttop"; + version = "1.0.1"; nimBinOnly = true; - src = fetchurl { - url = "https://git.sr.ht/~ehmry/hottext/archive/v${version}.tar.gz"; - hash = "sha256-hIUofi81zowSMbt1lUsxCnVzfJGN3FEiTtN8CEFpwzY="; + src = fetchFromGitHub { + owner = "inv2004"; + repo = "ttop"; + rev = "v${finalAttrs.version}"; + hash = "sha256-x4Uczksh6p3XX/IMrOFtBxIleVHdAPX9e8n32VAUTC4="; }; - buildInputs = with nimPackages; [ - bumpy - chroma - flatty - nimsimd - pixie - sdl2 - typography - vmath - zippy - ]; -} + buildInputs = with nimPackages; [ asciigraph illwill parsetoml zippy ]; +}) ``` ## Nim library packages in Nixpkgs {#nim-library-packages-in-nixpkgs} @@ -60,15 +51,16 @@ non-Nim package: ```nix { lib, buildNimPackage, fetchNimble, SDL2 }: -buildNimPackage rec { +buildNimPackage (finalAttrs: { pname = "sdl2"; version = "2.0.4"; src = fetchNimble { - inherit pname version; - hash = "sha256-qDtVSnf+7rTq36WAxgsUZ8XoUk4sKwHyt8EJcY5WP+o="; + inherit (finalAttrs) pname version; + hash = "sha256-Vtcj8goI4zZPQs2TbFoBFlcR5UqDtOldaXSH/+/xULk="; }; propagatedBuildInputs = [ SDL2 ]; -} + doCheck = true; +}) ``` ## `buildNimPackage` parameters {#buildnimpackage-parameters} diff --git a/pkgs/development/nim-packages/build-nim-package/default.nix b/pkgs/development/nim-packages/build-nim-package/default.nix index 5c64b7b745c2..d5cfbe928823 100644 --- a/pkgs/development/nim-packages/build-nim-package/default.nix +++ b/pkgs/development/nim-packages/build-nim-package/default.nix @@ -1,45 +1,44 @@ { lib, stdenv, nim, nim_builder }: +pkgArgs: -{ strictDeps ? true, depsBuildBuild ? [ ], nativeBuildInputs ? [ ] -, configurePhase ? null, buildPhase ? null, checkPhase ? null -, installPhase ? null, enableParallelBuilding ? true, meta ? { }, ... }@attrs: - -stdenv.mkDerivation (attrs // { - inherit strictDeps enableParallelBuilding; - depsBuildBuild = [ nim_builder ] ++ depsBuildBuild; - nativeBuildInputs = [ nim ] ++ nativeBuildInputs; - - configurePhase = if (configurePhase == null) then '' - runHook preConfigure - export NIX_NIM_BUILD_INPUTS=''${pkgsHostTarget[@]} $NIX_NIM_BUILD_INPUTS - nim_builder --phase:configure - runHook postConfigure - '' else - configurePhase; - - buildPhase = if (buildPhase == null) then '' - runHook preBuild - nim_builder --phase:build - runHook postBuild - '' else - buildPhase; - - checkPhase = if (checkPhase == null) then '' - runHook preCheck - nim_builder --phase:check - runHook postCheck - '' else - checkPhase; - - installPhase = if (installPhase == null) then '' - runHook preInstall - nim_builder --phase:install - runHook postInstall - '' else - installPhase; - - meta = meta // { - platforms = meta.platforms or nim.meta.platforms; - maintainers = (meta.maintainers or [ ]) ++ [ lib.maintainers.ehmry ]; +let + baseAttrs = { + strictDeps = true; + enableParallelBuilding = true; + configurePhase = '' + runHook preConfigure + export NIX_NIM_BUILD_INPUTS=''${pkgsHostTarget[@]} $NIX_NIM_BUILD_INPUTS + nim_builder --phase:configure + runHook postConfigure + ''; + buildPhase = '' + runHook preBuild + nim_builder --phase:build + runHook postBuild + ''; + checkPhase = '' + runHook preCheck + nim_builder --phase:check + runHook postCheck + ''; + installPhase = '' + runHook preInstall + nim_builder --phase:install + runHook postInstall + ''; + meta = { inherit (nim.meta) maintainers platforms; }; }; -}) + + inputsOverride = + { depsBuildBuild ? [ ], nativeBuildInputs ? [ ], meta, ... }: { + depsBuildBuild = [ nim_builder ] ++ depsBuildBuild; + nativeBuildInputs = [ nim ] ++ nativeBuildInputs; + }; + + composition = finalAttrs: + let + asFunc = x: if builtins.isFunction x then x else (_: x); + prev = baseAttrs // (asFunc ((asFunc pkgArgs) finalAttrs)) baseAttrs; + in prev // inputsOverride prev; + +in stdenv.mkDerivation composition diff --git a/pkgs/development/nim-packages/sdl2/default.nix b/pkgs/development/nim-packages/sdl2/default.nix index ddcdf072c6b4..f5c7f0cb8d91 100644 --- a/pkgs/development/nim-packages/sdl2/default.nix +++ b/pkgs/development/nim-packages/sdl2/default.nix @@ -1,10 +1,10 @@ { lib, buildNimPackage, fetchNimble, SDL2 }: -buildNimPackage rec { +buildNimPackage (finalAttrs: { pname = "sdl2"; version = "2.0.4"; src = fetchNimble { - inherit pname version; + inherit (finalAttrs) pname version; hash = "sha256-Vtcj8goI4zZPQs2TbFoBFlcR5UqDtOldaXSH/+/xULk="; }; propagatedBuildInputs = [ SDL2 ]; @@ -14,4 +14,4 @@ buildNimPackage rec { platforms = lib.platforms.linux; # Problems with Darwin. license = [ lib.licenses.mit ]; }; -} +}) diff --git a/pkgs/tools/system/ttop/default.nix b/pkgs/tools/system/ttop/default.nix index 359adeebf58f..06dba4607297 100644 --- a/pkgs/tools/system/ttop/default.nix +++ b/pkgs/tools/system/ttop/default.nix @@ -1,6 +1,6 @@ { lib, nimPackages, fetchFromGitHub }: -nimPackages.buildNimPackage rec { +nimPackages.buildNimPackage (finalAttrs: { pname = "ttop"; version = "1.0.1"; nimBinOnly = true; @@ -8,17 +8,17 @@ nimPackages.buildNimPackage rec { src = fetchFromGitHub { owner = "inv2004"; repo = "ttop"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-x4Uczksh6p3XX/IMrOFtBxIleVHdAPX9e8n32VAUTC4="; }; buildInputs = with nimPackages; [ asciigraph illwill parsetoml zippy ]; meta = with lib; - src.meta // { + finalAttrs.src.meta // { description = "Top-like system monitoring tool"; license = licenses.mit; platforms = platforms.linux; maintainers = with maintainers; [ sikmir ]; }; -} +}) From ccdd853b64f08a2aceb623bd9ff3fb3e7d0418d0 Mon Sep 17 00:00:00 2001 From: Dmitry Ivankov Date: Wed, 14 Jun 2023 08:27:07 +0200 Subject: [PATCH 53/53] 23.05 changelog typo fix: buildFHSEnvChrootenv -> buildFHSEnvChroot --- nixos/doc/manual/release-notes/rl-2305.section.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/doc/manual/release-notes/rl-2305.section.md b/nixos/doc/manual/release-notes/rl-2305.section.md index 0d3b4705ec90..4d45463adea4 100644 --- a/nixos/doc/manual/release-notes/rl-2305.section.md +++ b/nixos/doc/manual/release-notes/rl-2305.section.md @@ -553,7 +553,7 @@ In addition to numerous new and updated packages, this release has the following - `buildDunePackage` now defaults to `strictDeps = true` which means that any library should go into `buildInputs` or `checkInputs`. Any executable that is run on the building machine should go into `nativeBuildInputs` or `nativeCheckInputs` respectively. Example of executables are `ocaml`, `findlib` and `menhir`. PPXs are libraries which are built by dune and should therefore not go into `nativeBuildInputs`. -- `buildFHSUserEnv` is now called `buildFHSEnv` and uses FlatPak's Bubblewrap sandboxing tool rather than Nixpkgs' own chrootenv. The old chrootenv-based implemenation is still available via `buildFHSEnvChrootenv` but is considered deprecated and will be removed when the remaining uses inside Nixpkgs have been migrated. If your FHSEnv-wrapped application misbehaves when using the new bubblewrap implementation, please create an issue in Nixpkgs. +- `buildFHSUserEnv` is now called `buildFHSEnv` and uses FlatPak's Bubblewrap sandboxing tool rather than Nixpkgs' own chrootenv. The old chrootenv-based implemenation is still available via `buildFHSEnvChroot` but is considered deprecated and will be removed when the remaining uses inside Nixpkgs have been migrated. If your FHSEnv-wrapped application misbehaves when using the new bubblewrap implementation, please create an issue in Nixpkgs. - Top-level `buildPlatform`, `hostPlatform`, `targetPlatform` have been deprecated, use `stdenv.X` instead.