From 823e4d2fdbd213c2c85806fe4ee3e2c824c9030c Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Sun, 25 Sep 2022 23:55:52 +1000 Subject: [PATCH 01/38] nixos/nextcloud: handle passwords with spaces --- nixos/modules/services/web-apps/nextcloud.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index fdbaa90ebb7..bb6a5172996 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -821,9 +821,9 @@ in { ${if c.dbhost != null then "--database-host" else null} = ''"${c.dbhost}"''; ${if c.dbport != null then "--database-port" else null} = ''"${toString c.dbport}"''; ${if c.dbuser != null then "--database-user" else null} = ''"${c.dbuser}"''; - "--database-pass" = "\$${dbpass.arg}"; + "--database-pass" = "\"\$${dbpass.arg}\""; "--admin-user" = ''"${c.adminuser}"''; - "--admin-pass" = "\$${adminpass.arg}"; + "--admin-pass" = "\"\$${adminpass.arg}\""; "--data-dir" = ''"${datadir}/data"''; }); in '' From ac82616ab524910f8efe48db941d8dbcb6c8d3ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 28 Oct 2022 14:44:48 +0200 Subject: [PATCH 02/38] open-vm-tools: format --- .../virtualization/open-vm-tools/default.nix | 113 ++++++++++++++---- 1 file changed, 87 insertions(+), 26 deletions(-) diff --git a/pkgs/applications/virtualization/open-vm-tools/default.nix b/pkgs/applications/virtualization/open-vm-tools/default.nix index 7755795306a..e5b2925c03d 100644 --- a/pkgs/applications/virtualization/open-vm-tools/default.nix +++ b/pkgs/applications/virtualization/open-vm-tools/default.nix @@ -1,8 +1,39 @@ -{ stdenv, lib, fetchFromGitHub, makeWrapper, autoreconfHook -, bash, fuse3, libmspack, openssl, pam, xercesc, icu, libdnet, procps, libtirpc, rpcsvc-proto -, libX11, libXext, libXinerama, libXi, libXrender, libXrandr, libXtst, libxcrypt -, pkg-config, glib, gdk-pixbuf-xlib, gtk3, gtkmm3, iproute2, dbus, systemd, which -, libdrm, udev, util-linux +{ stdenv +, lib +, fetchFromGitHub +, makeWrapper +, autoreconfHook +, bash +, fuse3 +, libmspack +, openssl +, pam +, xercesc +, icu +, libdnet +, procps +, libtirpc +, rpcsvc-proto +, libX11 +, libXext +, libXinerama +, libXi +, libXrender +, libXrandr +, libXtst +, libxcrypt +, pkg-config +, glib +, gdk-pixbuf-xlib +, gtk3 +, gtkmm3 +, iproute2 +, dbus +, systemd +, which +, libdrm +, udev +, util-linux , withX ? true }: @@ -11,9 +42,9 @@ stdenv.mkDerivation rec { version = "12.1.0"; src = fetchFromGitHub { - owner = "vmware"; - repo = "open-vm-tools"; - rev = "stable-${version}"; + owner = "vmware"; + repo = "open-vm-tools"; + rev = "stable-${version}"; hash = "sha256-PgrLu0Bm9Vom5WNl43312QFWKojdXDAGn3Nvj4hzPrQ="; }; @@ -21,29 +52,59 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" ]; - nativeBuildInputs = [ autoreconfHook makeWrapper pkg-config ]; - buildInputs = [ fuse3 glib icu libdnet libdrm libmspack libtirpc libxcrypt openssl pam procps rpcsvc-proto udev xercesc ] - ++ lib.optionals withX [ gdk-pixbuf-xlib gtk3 gtkmm3 libX11 libXext libXinerama libXi libXrender libXrandr libXtst ]; + nativeBuildInputs = [ + autoreconfHook + makeWrapper + pkg-config + ]; + + buildInputs = [ + fuse3 + glib + icu + libdnet + libdrm + libmspack + libtirpc + libxcrypt + openssl + pam + procps + rpcsvc-proto + udev + xercesc + ] ++ lib.optionals withX [ + gdk-pixbuf-xlib + gtk3 + gtkmm3 + libX11 + libXext + libXinerama + libXi + libXrender + libXrandr + libXtst + ]; postPatch = '' - sed -i 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' Makefile.am - sed -i 's,^confdir = ,confdir = ''${prefix},' scripts/Makefile.am - sed -i 's,usr/bin,''${prefix}/usr/bin,' scripts/Makefile.am - sed -i 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' services/vmtoolsd/Makefile.am - sed -i 's,$(PAM_PREFIX),''${prefix}/$(PAM_PREFIX),' services/vmtoolsd/Makefile.am + sed -i 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' Makefile.am + sed -i 's,^confdir = ,confdir = ''${prefix},' scripts/Makefile.am + sed -i 's,usr/bin,''${prefix}/usr/bin,' scripts/Makefile.am + sed -i 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' services/vmtoolsd/Makefile.am + sed -i 's,$(PAM_PREFIX),''${prefix}/$(PAM_PREFIX),' services/vmtoolsd/Makefile.am - # Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror. - sed 1i'#include ' -i lib/wiper/wiperPosix.c + # Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror. + sed 1i'#include ' -i lib/wiper/wiperPosix.c - # Make reboot work, shutdown is not in /sbin on NixOS - sed -i 's,/sbin/shutdown,shutdown,' lib/system/systemLinux.c + # Make reboot work, shutdown is not in /sbin on NixOS + sed -i 's,/sbin/shutdown,shutdown,' lib/system/systemLinux.c - # Fix paths to fuse3 (we do not use fuse2 so that is not modified) - sed -i 's,/bin/fusermount3,${fuse3}/bin/fusermount3,' vmhgfs-fuse/config.c + # Fix paths to fuse3 (we do not use fuse2 so that is not modified) + sed -i 's,/bin/fusermount3,${fuse3}/bin/fusermount3,' vmhgfs-fuse/config.c - substituteInPlace services/plugins/vix/foundryToolsDaemon.c \ - --replace "/usr/bin/vmhgfs-fuse" "${placeholder "out"}/bin/vmhgfs-fuse" \ - --replace "/bin/mount" "${util-linux}/bin/mount" + substituteInPlace services/plugins/vix/foundryToolsDaemon.c \ + --replace "/usr/bin/vmhgfs-fuse" "${placeholder "out"}/bin/vmhgfs-fuse" \ + --replace "/bin/mount" "${util-linux}/bin/mount" ''; configureFlags = [ @@ -79,7 +140,7 @@ stdenv.mkDerivation rec { better management of, and seamless user interactions with, guests. ''; license = licenses.gpl2; - platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" ]; + platforms = [ "x86_64-linux" "i686-linux" "aarch64-linux" ]; maintainers = with maintainers; [ joamaki ]; }; } From 824662f6c06ccbb9764a34d5fe5f140b15b6446a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 28 Oct 2022 15:58:35 +0200 Subject: [PATCH 03/38] xmlsec: propagate libxslt, cleanup meta --- pkgs/development/libraries/xmlsec/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/development/libraries/xmlsec/default.nix b/pkgs/development/libraries/xmlsec/default.nix index e4c0e57e76c..7f3dc9d6094 100644 --- a/pkgs/development/libraries/xmlsec/default.nix +++ b/pkgs/development/libraries/xmlsec/default.nix @@ -22,15 +22,20 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkg-config ]; - buildInputs = [ libxml2 gnutls libxslt libgcrypt libtool openssl nss ]; + buildInputs = [ libxml2 gnutls libgcrypt libtool openssl nss ]; + + propagatedBuildInputs = [ + # required by xmlsec/transforms.h + libxslt + ]; enableParallelBuilding = true; doCheck = true; checkInputs = [ nss.tools ]; preCheck = '' - substituteInPlace tests/testrun.sh \ - --replace 'timestamp=`date +%Y%m%d_%H%M%S`' 'timestamp=19700101_000000' \ - --replace 'TMPFOLDER=/tmp' '$(mktemp -d)' + substituteInPlace tests/testrun.sh \ + --replace 'timestamp=`date +%Y%m%d_%H%M%S`' 'timestamp=19700101_000000' \ + --replace 'TMPFOLDER=/tmp' '$(mktemp -d)' ''; # enable deprecated soap headers required by lasso @@ -67,13 +72,14 @@ stdenv.mkDerivation rec { touch $out ''; - meta = { + meta = with lib; { description = "XML Security Library in C based on libxml2"; - homepage = "http://www.aleksey.com/xmlsec"; + homepage = "https://www.aleksey.com/xmlsec/"; downloadPage = "https://www.aleksey.com/xmlsec/download.html"; - license = lib.licenses.mit; + license = licenses.mit; mainProgram = "xmlsec1"; - platforms = with lib.platforms; linux ++ darwin; + maintainers = with maintainers; [ ]; + platforms = with platforms; linux ++ darwin; }; } ) From 4f28fea37e6638c6f9e4030843028836242bec61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 28 Oct 2022 15:58:13 +0200 Subject: [PATCH 04/38] open-vm-tools: compile vgauth tool --- .../virtualization/open-vm-tools/default.nix | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/virtualization/open-vm-tools/default.nix b/pkgs/applications/virtualization/open-vm-tools/default.nix index e5b2925c03d..66c6086aed0 100644 --- a/pkgs/applications/virtualization/open-vm-tools/default.nix +++ b/pkgs/applications/virtualization/open-vm-tools/default.nix @@ -22,6 +22,7 @@ , libXrandr , libXtst , libxcrypt +, libxml2 , pkg-config , glib , gdk-pixbuf-xlib @@ -34,6 +35,7 @@ , libdrm , udev , util-linux +, xmlsec , withX ? true }: @@ -67,12 +69,14 @@ stdenv.mkDerivation rec { libmspack libtirpc libxcrypt + libxml2 openssl pam procps rpcsvc-proto udev xercesc + xmlsec ] ++ lib.optionals withX [ gdk-pixbuf-xlib gtk3 @@ -87,14 +91,20 @@ stdenv.mkDerivation rec { ]; postPatch = '' - sed -i 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' Makefile.am - sed -i 's,^confdir = ,confdir = ''${prefix},' scripts/Makefile.am - sed -i 's,usr/bin,''${prefix}/usr/bin,' scripts/Makefile.am - sed -i 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' services/vmtoolsd/Makefile.am - sed -i 's,$(PAM_PREFIX),''${prefix}/$(PAM_PREFIX),' services/vmtoolsd/Makefile.am + sed -i Makefile.am \ + -e 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' + sed -i scripts/Makefile.am \ + -e 's,^confdir = ,confdir = ''${prefix},' \ + -e 's,usr/bin,''${prefix}/usr/bin,' + sed -i services/vmtoolsd/Makefile.am \ + -e 's,etc/vmware-tools,''${prefix}/etc/vmware-tools,' \ + -e 's,$(PAM_PREFIX),''${prefix}/$(PAM_PREFIX),' + sed -i vgauth/service/Makefile.am \ + -e 's,/etc/vmware-tools/vgauth/schemas,''${prefix}/etc/vmware-tools/vgauth/schemas,' \ + -e 's,$(DESTDIR)/etc/vmware-tools/vgauth.conf,''${prefix}/etc/vmware-tools/vgauth.conf,' - # Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror. - sed 1i'#include ' -i lib/wiper/wiperPosix.c + # don't abort on any warning + sed -i 's,CFLAGS="$CFLAGS -Werror",,' configure.ac # Make reboot work, shutdown is not in /sbin on NixOS sed -i 's,/sbin/shutdown,shutdown,' lib/system/systemLinux.c @@ -109,19 +119,12 @@ stdenv.mkDerivation rec { configureFlags = [ "--without-kernel-modules" - "--without-xmlsecurity" "--with-udev-rules-dir=${placeholder "out"}/lib/udev/rules.d" "--with-fuse=fuse3" ] ++ lib.optional (!withX) "--without-x"; enableParallelBuilding = true; - NIX_CFLAGS_COMPILE = builtins.toString [ - # fix build with gcc9 - "-Wno-error=address-of-packed-member" - "-Wno-error=format-overflow" - ]; - preConfigure = '' mkdir -p ${placeholder "out"}/lib/udev/rules.d ''; From 02adfe681e59b4006a080a78fe5e4fe3d9d2fa60 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 2 Nov 2022 05:20:23 +0000 Subject: [PATCH 05/38] apksigcopier: 1.0.1 -> 1.1.0 --- pkgs/development/tools/apksigcopier/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/apksigcopier/default.nix b/pkgs/development/tools/apksigcopier/default.nix index f8747398c22..f9df5fca17a 100644 --- a/pkgs/development/tools/apksigcopier/default.nix +++ b/pkgs/development/tools/apksigcopier/default.nix @@ -9,13 +9,13 @@ python3.pkgs.buildPythonApplication rec { pname = "apksigcopier"; - version = "1.0.1"; + version = "1.1.0"; src = fetchFromGitHub { owner = "obfusk"; repo = "apksigcopier"; - rev = "v${version}"; - sha256 = "07ldq3q1x2lpb15q5s5i1pbg89sn6ah45amskm9pndqlh16z9k2x"; + rev = "refs/tags/v${version}"; + sha256 = "sha256-58NoYe26GsNE0jpSRt4sIkTJ2iR4VVnvthOfi7QFfN0="; }; nativeBuildInputs = [ From 46a219568818797a547a3ffd92280bb0f65dc5dc Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 4 Nov 2022 18:50:04 +0100 Subject: [PATCH 06/38] wxGTK28, wxGTK29: drop --- .../libraries/wxwidgets/wxGTK28.nix | 115 ---------------- .../libraries/wxwidgets/wxGTK29.nix | 127 ------------------ pkgs/top-level/aliases.nix | 3 + pkgs/top-level/all-packages.nix | 9 -- 4 files changed, 3 insertions(+), 251 deletions(-) delete mode 100644 pkgs/development/libraries/wxwidgets/wxGTK28.nix delete mode 100644 pkgs/development/libraries/wxwidgets/wxGTK29.nix diff --git a/pkgs/development/libraries/wxwidgets/wxGTK28.nix b/pkgs/development/libraries/wxwidgets/wxGTK28.nix deleted file mode 100644 index b577e524820..00000000000 --- a/pkgs/development/libraries/wxwidgets/wxGTK28.nix +++ /dev/null @@ -1,115 +0,0 @@ -{ lib -, stdenv -, fetchurl -, cairo -, gtk2 -, libGL -, libGLU -, libSM -, libX11 -, libXinerama -, libXxf86vm -, pkg-config -, xorgproto -, compat24 ? false -, compat26 ? true -, unicode ? true -, withMesa ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms -}: - -stdenv.mkDerivation rec { - pname = "wxGTK"; - version = "2.8.12.1"; - - src = fetchurl { - url = "mirror://sourceforge/wxpython/wxPython-src-${version}.tar.bz2"; - hash = "sha256-Hz8VPZ8VBMbOLSxLI+lAuPWLgfTLo1zaGluzEUIkPNA="; - }; - - nativeBuildInputs = [ - pkg-config - ]; - - buildInputs = [ - cairo - gtk2 - libSM - libX11 - libXinerama - libXxf86vm - xorgproto - ] - ++ lib.optional withMesa libGLU; - - configureFlags = [ - "--enable-gtk2" - "--disable-precomp-headers" - "--enable-mediactrl" - "--enable-graphics_ctx" - (if compat24 then "--enable-compat24" else "--disable-compat24") - (if compat26 then "--enable-compat26" else "--disable-compat26") - ] - ++ lib.optional unicode "--enable-unicode" - ++ lib.optional withMesa "--with-opengl"; - - hardeningDisable = [ "format" ]; - - # These variables are used by configure to find some dependencies. - SEARCH_INCLUDE = - "${libXinerama.dev}/include ${libSM.dev}/include ${libXxf86vm.dev}/include"; - SEARCH_LIB = - "${libXinerama.out}/lib ${libSM.out}/lib ${libXxf86vm.out}/lib " - + lib.optionalString withMesa "${libGLU.out}/lib ${libGL.out}/lib "; - - # Work around a bug in configure. - NIX_CFLAGS_COMPILE = "-DHAVE_X11_XLIB_H=1 -lX11 -lcairo -Wno-narrowing"; - - preConfigure = '' - substituteInPlace configure --replace \ - 'SEARCH_INCLUDE=' 'DUMMY_SEARCH_INCLUDE=' - substituteInPlace configure --replace \ - 'SEARCH_LIB=' 'DUMMY_SEARCH_LIB=' - substituteInPlace configure --replace \ - /usr /no-such-path - ''; - - postBuild = '' - pushd contrib/src - make - popd - ''; - - postInstall = '' - pushd contrib/src - make install - popd - pushd $out/include - ln -s wx-*/* . - popd - ''; - - enableParallelBuilding = true; - - meta = with lib; { - homepage = "https://www.wxwidgets.org/"; - description = "A Cross-Platform C++ GUI Library"; - longDescription = '' - wxWidgets gives you a single, easy-to-use API for writing GUI applications - on multiple platforms that still utilize the native platform's controls - and utilities. Link with the appropriate library for your platform and - compiler, and your application will adopt the look and feel appropriate to - that platform. On top of great GUI functionality, wxWidgets gives you: - online help, network programming, streams, clipboard and drag and drop, - multithreading, image loading and saving in a variety of popular formats, - database support, HTML viewing and printing, and much more. - ''; - license = licenses.wxWindows; - maintainers = with maintainers; [ ]; - platforms = platforms.linux; - }; - - passthru = { - inherit compat24 compat26 unicode; - gtk = gtk2; - }; -} diff --git a/pkgs/development/libraries/wxwidgets/wxGTK29.nix b/pkgs/development/libraries/wxwidgets/wxGTK29.nix deleted file mode 100644 index 097cce6109c..00000000000 --- a/pkgs/development/libraries/wxwidgets/wxGTK29.nix +++ /dev/null @@ -1,127 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, autoconf -, gtk2 -, libGL -, libGLU -, libSM -, libXinerama -, libXxf86vm -, pkg-config -, xorgproto -, compat24 ? false -, compat26 ? true -, unicode ? true -, withMesa ? lib.elem stdenv.hostPlatform.system lib.platforms.mesaPlatforms -, AGL -, Carbon -, Cocoa -, Kernel -, QuickTime -, setfile -}: - -stdenv.mkDerivation rec { - pname = "wxGTK"; - version = "2.9.5"; - - src = fetchFromGitHub { - owner = "wxWidgets"; - repo = "wxWidgets"; - rev = "v${version}"; - hash = "sha256-izefAPU4lORZxQja7/InHyElJ1++2lDloR+xPudsRNE="; - }; - - patches = [ - # https://github.com/wxWidgets/wxWidgets/issues/17942 - ./patches/0001-fix-assertion-using-hide-in-destroy.patch - ]; - - nativeBuildInputs = [ - autoconf - pkg-config - ]; - - buildInputs = [ - gtk2 - libSM - libXinerama - libXxf86vm - xorgproto - ] - ++ lib.optional withMesa libGLU - ++ lib.optionals stdenv.isDarwin [ - Carbon - Cocoa - Kernel - QuickTime - setfile - ]; - - propagatedBuildInputs = lib.optional stdenv.isDarwin AGL; - - configureFlags = [ - "--disable-precomp-headers" - "--enable-gtk2" - (if compat24 then "--enable-compat24" else "--disable-compat24") - (if compat26 then "--enable-compat26" else "--disable-compat26") - ] - ++ lib.optional unicode "--enable-unicode" - ++ lib.optional withMesa "--with-opengl" - ++ lib.optionals stdenv.isDarwin [ # allow building on 64-bit - "--enable-universal-binaries" - "--with-cocoa" - "--with-macosx-version-min=10.7" - ]; - - SEARCH_LIB = "${libGLU.out}/lib ${libGL.out}/lib "; - - preConfigure = '' - ./autogen.sh - substituteInPlace configure --replace \ - 'SEARCH_INCLUDE=' 'DUMMY_SEARCH_INCLUDE=' - substituteInPlace configure --replace \ - 'SEARCH_LIB=' 'DUMMY_SEARCH_LIB=' - substituteInPlace configure --replace \ - /usr /no-such-path - '' + lib.optionalString stdenv.isDarwin '' - substituteInPlace configure --replace \ - 'ac_cv_prog_SETFILE="/Developer/Tools/SetFile"' \ - 'ac_cv_prog_SETFILE="${setfile}/bin/SetFile"' - substituteInPlace configure --replace \ - "-framework System" "-lSystem" - ''; - - postInstall = '' - pushd $out/include - ln -s wx-*/* . - popd - ''; - - enableParallelBuilding = true; - - meta = with lib; { - homepage = "https://www.wxwidgets.org/"; - description = "A Cross-Platform C++ GUI Library"; - longDescription = '' - wxWidgets gives you a single, easy-to-use API for writing GUI applications - on multiple platforms that still utilize the native platform's controls - and utilities. Link with the appropriate library for your platform and - compiler, and your application will adopt the look and feel appropriate to - that platform. On top of great GUI functionality, wxWidgets gives you: - online help, network programming, streams, clipboard and drag and drop, - multithreading, image loading and saving in a variety of popular formats, - database support, HTML viewing and printing, and much more. - ''; - license = licenses.wxWindows; - maintainers = with maintainers; [ ]; - platforms = platforms.darwin ++ platforms.linux; - badPlatforms = [ "x86_64-darwin" ]; - }; - - passthru = { - inherit compat24 compat26 unicode; - gtk = gtk2; - }; -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 5813052acd6..e414b2686cb 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1557,6 +1557,9 @@ mapAliases ({ wormhole-rs = magic-wormhole-rs; # Added 2022-05-30. preserve, reason: Arch package name, main binary name wmii_hg = wmii; ws = throw "ws has been dropped due to the lack of maintenance from upstream since 2018"; # Added 2022-06-03 + wxGTK = throw "wxGTK28 has been removed from nixpkgs as it has reached end of life"; # Added 2022-11-04 + wxGTK28 = throw "wxGTK28 has been removed from nixpkgs as it has reached end of life"; # Added 2022-11-04 + wxGTK29 = throw "wxGTK29 has been removed from nixpkgs as it has reached end of life"; # Added 2022-11-04 wxGTK31-gtk2 = throw "'wxGTK31-gtk2' has been removed from nixpkgs as it depends on deprecated GTK2"; # Added 2022-10-27 wxGTK31-gtk3 = throw "'wxGTK31-gtk3' has been renamed to/replaced by 'wxGTK31'"; # Added 2022-10-27 wxmupen64plus = throw "wxmupen64plus was removed because the upstream disappeared"; # Added 2022-01-31 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bff29234e41..2ee24017bb1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22844,15 +22844,6 @@ with pkgs; inherit (darwin.apple_sdk.frameworks) Cocoa; }; - wxGTK = wxGTK28; - - wxGTK28 = callPackage ../development/libraries/wxwidgets/wxGTK28.nix { }; - - wxGTK29 = callPackage ../development/libraries/wxwidgets/wxGTK29.nix { - inherit (darwin.stubs) setfile; - inherit (darwin.apple_sdk.frameworks) AGL Carbon Cocoa Kernel QuickTime; - }; - wxGTK30 = callPackage ../development/libraries/wxwidgets/wxGTK30.nix { withGtk2 = true; inherit (darwin.stubs) setfile; From de717369b02a71988186198dbab10a059fd850c3 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 7 Nov 2022 04:26:53 +0000 Subject: [PATCH 07/38] fio: 3.32 -> 3.33 --- pkgs/tools/system/fio/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/fio/default.nix b/pkgs/tools/system/fio/default.nix index c2c46e9a5d1..6dabb917833 100644 --- a/pkgs/tools/system/fio/default.nix +++ b/pkgs/tools/system/fio/default.nix @@ -4,13 +4,13 @@ stdenv.mkDerivation rec { pname = "fio"; - version = "3.32"; + version = "3.33"; src = fetchFromGitHub { owner = "axboe"; repo = "fio"; rev = "fio-${version}"; - sha256 = "sha256-z9p9WDVjKQAQIP1v5RxnDXjwVl4SVZOvdxlSt5NZN1k="; + sha256 = "sha256-d4Fx2QdO+frt+gcBzegJ9CW5NJQRLNkML/iD3te/1d0="; }; buildInputs = [ python3 zlib ] From 73264125a2132ccff657195eabbe8f5a68c26590 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 7 Nov 2022 13:20:12 +0800 Subject: [PATCH 08/38] ashuffle: 3.12.5 -> 3.13.4 --- pkgs/applications/audio/ashuffle/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/ashuffle/default.nix b/pkgs/applications/audio/ashuffle/default.nix index 90a2abe8adf..bd5a6448574 100644 --- a/pkgs/applications/audio/ashuffle/default.nix +++ b/pkgs/applications/audio/ashuffle/default.nix @@ -6,23 +6,26 @@ , meson , ninja , libmpdclient +, libyamlcpp }: stdenv.mkDerivation rec { pname = "ashuffle"; - version = "3.12.5"; + version = "3.13.4"; src = fetchFromGitHub { owner = "joshkunz"; repo = "ashuffle"; rev = "v${version}"; - sha256 = "sha256-dPgv6EzRxRdHkGvys601Bkg9Srd8oEjoE9jbAin74Vk="; + sha256 = "sha256-J6NN0Rsc9Zw9gagksDlwpwEErs+4XmrGF9YHKlAE1FA="; fetchSubmodules = true; }; dontUseCmakeConfigure = true; nativeBuildInputs = [ cmake pkg-config meson ninja ]; - buildInputs = [ libmpdclient ]; + buildInputs = [ libmpdclient libyamlcpp ]; + + mesonFlags = [ "-Dunsupported_use_system_yamlcpp=true" ]; meta = with lib; { homepage = "https://github.com/joshkunz/ashuffle"; From ce752bc694f87fb3967967536c076099e95e13c3 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Nov 2022 14:27:49 +0100 Subject: [PATCH 09/38] python310Packages.docker: 6.0.0 -> 6.0.1 --- pkgs/development/python-modules/docker/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/docker/default.nix b/pkgs/development/python-modules/docker/default.nix index 0a01d5e4792..46103311700 100644 --- a/pkgs/development/python-modules/docker/default.nix +++ b/pkgs/development/python-modules/docker/default.nix @@ -14,13 +14,14 @@ buildPythonPackage rec { pname = "docker"; - version = "6.0.0"; + version = "6.0.1"; format = "pyproject"; + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-GeMwRwr0AWfSk7A1JXjB+iLXSzTT7fXU/5DrwgO7svE="; + hash = "sha256-iWxCguXHr1xF6LaDsLDDOTKXT+blD8aQagqDYWqz2pc="; }; nativeBuildInputs = [ @@ -47,10 +48,16 @@ buildPythonPackage rec { ]; # Deselect socket tests on Darwin because it hits the path length limit for a Unix domain socket - disabledTests = lib.optionals stdenv.isDarwin [ "api_test" "stream_response" "socket_file" ]; + disabledTests = lib.optionals stdenv.isDarwin [ + "api_test" "stream_response" "socket_file" + ]; dontUseSetuptoolsCheck = true; + pythonImportsCheck = [ + "docker" + ]; + meta = with lib; { description = "An API client for docker written in Python"; homepage = "https://github.com/docker/docker-py"; From d284ffaa15bde72742ea78b01f88496ce6e56500 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Nov 2022 14:36:58 +0100 Subject: [PATCH 10/38] trueseeing: relax docker contraint --- pkgs/tools/security/trueseeing/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/trueseeing/default.nix b/pkgs/tools/security/trueseeing/default.nix index 49b12c3c9d2..d1014bd3677 100644 --- a/pkgs/tools/security/trueseeing/default.nix +++ b/pkgs/tools/security/trueseeing/default.nix @@ -31,7 +31,8 @@ python3.pkgs.buildPythonApplication rec { postPatch = '' substituteInPlace pyproject.toml \ - --replace "attrs~=21.4" "attrs>=21.4" + --replace "attrs~=21.4" "attrs>=21.4" \ + --replace "docker~=5.0.3" "docker" ''; # Project has no tests From 41b1a58f40664a4422144d505cc5bc774758696b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Nov 2022 17:55:36 +0100 Subject: [PATCH 11/38] python310Packages.stubserver: init at 1.1 --- .../python-modules/stubserver/default.nix | 32 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/development/python-modules/stubserver/default.nix diff --git a/pkgs/development/python-modules/stubserver/default.nix b/pkgs/development/python-modules/stubserver/default.nix new file mode 100644 index 00000000000..87b9cd988cc --- /dev/null +++ b/pkgs/development/python-modules/stubserver/default.nix @@ -0,0 +1,32 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "stubserver"; + version = "1.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-j9R7wpvb07FuN5EhIpE7xTSf26AniQZN4iLpxMjNYKA="; + }; + + # Tests are not shipped and the source not tagged + doCheck = false; + + pythonImportsCheck = [ + "stubserver" + ]; + + meta = with lib; { + description = "Web and FTP server for use in unit and7or acceptance tests"; + homepage = "https://github.com/tarttelin/Python-Stub-Server"; + license = licenses.bsd2; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6e5648173dd..9ac101804a0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10720,6 +10720,8 @@ self: super: with self; { structlog = callPackage ../development/python-modules/structlog { }; + stubserver = callPackage ../development/python-modules/stubserver { }; + stumpy = callPackage ../development/python-modules/stumpy { }; stups-cli-support = callPackage ../development/python-modules/stups-cli-support { }; From 9cf5bc9fc06aedd2ada291b1214f86cfdee582b7 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 7 Nov 2022 21:17:34 +0000 Subject: [PATCH 12/38] ghz: 0.110.0 -> 0.111.0 --- pkgs/tools/networking/ghz/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/ghz/default.nix b/pkgs/tools/networking/ghz/default.nix index db227c06c9d..da554b5a21a 100644 --- a/pkgs/tools/networking/ghz/default.nix +++ b/pkgs/tools/networking/ghz/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "ghz"; - version = "0.110.0"; + version = "0.111.0"; src = fetchFromGitHub { owner = "bojand"; repo = "ghz"; rev = "v${version}"; - sha256 = "sha256-lAQGog45COrS2a5ZmFZEDERdZt24DnVSkPz49txqFmo="; + sha256 = "sha256-FXehWUdFHsWYF/WXrJtmoDIb0Smh3D4aSJS8aOpvoxg="; }; vendorSha256 = "sha256-VjrSUP0SwE5iOTevqIGlnSjH+TV4Ajx/PKuco9etkSc="; From 962a81051315a8a9506778f13f04295ced8017c1 Mon Sep 17 00:00:00 2001 From: Ryan Mulligan Date: Mon, 7 Nov 2022 13:32:21 -0800 Subject: [PATCH 13/38] nixpkgs/doc/stdenv: fix admonition class Change to match the formatting of the other admonitions that use classes. This was breaking the mmdoc output. --- doc/stdenv/stdenv.chapter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index 166587d3284..bbd70162a7a 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -887,7 +887,7 @@ Packages may expect or require other utilities to be available at runtime. Use `--prefix` to explicitly set dependencies in `PATH`. -:::{note} +::: {.note} `--prefix` essentially hard-codes dependencies into the wrapper. They cannot be overridden without rebuilding the package. ::: From 5d3d98a18653308245a3c5ad5ec43c6b20208fee Mon Sep 17 00:00:00 2001 From: Eli Flanagan Date: Mon, 7 Nov 2022 17:01:46 -0500 Subject: [PATCH 14/38] fluent-bit: support PostgreSQL output --- pkgs/tools/misc/fluent-bit/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/fluent-bit/default.nix b/pkgs/tools/misc/fluent-bit/default.nix index ffeca659101..b1da8e5ff6d 100644 --- a/pkgs/tools/misc/fluent-bit/default.nix +++ b/pkgs/tools/misc/fluent-bit/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, cmake, flex, bison, systemd, openssl, libyaml }: +{ lib, stdenv, fetchFromGitHub, cmake, flex, bison, systemd, postgresql, openssl, libyaml }: stdenv.mkDerivation rec { pname = "fluent-bit"; @@ -13,10 +13,10 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake flex bison ]; - buildInputs = [ openssl libyaml ] + buildInputs = [ openssl libyaml postgresql ] ++ lib.optionals stdenv.isLinux [ systemd ]; - cmakeFlags = [ "-DFLB_METRICS=ON" "-DFLB_HTTP_SERVER=ON" ]; + cmakeFlags = [ "-DFLB_METRICS=ON" "-DFLB_HTTP_SERVER=ON" "-DFLB_OUT_PGSQL=ON" ]; # _FORTIFY_SOURCE requires compiling with optimization (-O) NIX_CFLAGS_COMPILE = lib.optionals stdenv.cc.isGNU [ "-O" ] From a75977016b3469bb9df30714158ed56316ffc2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 7 Nov 2022 15:05:04 -0800 Subject: [PATCH 15/38] bzip3: 1.1.8 -> 1.2.0 https://github.com/kspalaiologos/bzip3/releases/tag/1.2.0 --- pkgs/tools/compression/bzip3/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/compression/bzip3/default.nix b/pkgs/tools/compression/bzip3/default.nix index 0c978adbc70..05d1d2e408e 100644 --- a/pkgs/tools/compression/bzip3/default.nix +++ b/pkgs/tools/compression/bzip3/default.nix @@ -7,7 +7,7 @@ stdenv.mkDerivation rec { pname = "bzip3"; - version = "1.1.8"; + version = "1.2.0"; outputs = [ "bin" "dev" "out" ]; @@ -15,12 +15,15 @@ stdenv.mkDerivation rec { owner = "kspalaiologos"; repo = "bzip3"; rev = version; - hash = "sha256-ok5LwarXVe2gwwfIWVSfHHY0lt1IfGtkLPlVo757G6g="; + hash = "sha256-Ul4nybQ+Gj3i41AFxk2WzVD+b2dJVyCUBuX4ZGjXwUs="; }; postPatch = '' echo -n "${version}" > .tarball-version patchShebangs build-aux + + # build-aux/ax_subst_man_date.m4 calls git if the file exists + rm .gitignore ''; nativeBuildInputs = [ From 27d20670578efbe918d8ef53773d6fc4ecc43e52 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 7 Nov 2022 23:51:09 +0000 Subject: [PATCH 16/38] kubie: 0.19.0 -> 0.19.1 --- pkgs/development/tools/kubie/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/kubie/default.nix b/pkgs/development/tools/kubie/default.nix index a8054f587ff..b2e69d7fc35 100644 --- a/pkgs/development/tools/kubie/default.nix +++ b/pkgs/development/tools/kubie/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "kubie"; - version = "0.19.0"; + version = "0.19.1"; src = fetchFromGitHub { rev = "v${version}"; owner = "sbstp"; repo = "kubie"; - sha256 = "sha256-K7zoohyVBnRMqwpizBs+wlN/gkgGjBHNk1cwxY7P3Hs="; + sha256 = "sha256-tZ4qa48I/J62bqc9eoSSpTrJjU+LpweF/kI1TMiFrEY="; }; - cargoSha256 = "sha256-feNmtUkpN+RdMrvF2ZY2BcZ0p8qEqw6Hr+p4be3YavA="; + cargoSha256 = "sha256-WpX1wkMPtUwT6KOi0Bij1tzGlDhti828wBSfzpXuZaY="; nativeBuildInputs = [ installShellFiles ]; From bafe84ca6244e44c00f6fc967a692b93325d4607 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 8 Nov 2022 00:53:33 +0000 Subject: [PATCH 17/38] linuxkit: 1.0.0 -> 1.0.1 --- pkgs/development/tools/misc/linuxkit/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/linuxkit/default.nix b/pkgs/development/tools/misc/linuxkit/default.nix index bf02a6ad556..13944ad0222 100644 --- a/pkgs/development/tools/misc/linuxkit/default.nix +++ b/pkgs/development/tools/misc/linuxkit/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "linuxkit"; - version = "1.0.0"; + version = "1.0.1"; src = fetchFromGitHub { owner = "linuxkit"; repo = "linuxkit"; rev = "v${version}"; - sha256 = "sha256-y/jsMr7HmrHjVMn4fyQ3MPHION8hQO2G4udX1AMx8bk="; + sha256 = "sha256-8x9oJaYb/mN2TUaVrGOYi5/6TETD78jif0SwCSc0kyo="; }; vendorSha256 = null; From ee47da83d178913d0f425fad5971c6baa2c6a9d0 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 8 Nov 2022 04:20:00 +0000 Subject: [PATCH 18/38] luau: 0.551 -> 0.552 https://github.com/Roblox/luau/releases/tag/0.552 --- pkgs/development/interpreters/luau/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/luau/default.nix b/pkgs/development/interpreters/luau/default.nix index d9b810f92d9..1202f2fa145 100644 --- a/pkgs/development/interpreters/luau/default.nix +++ b/pkgs/development/interpreters/luau/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "luau"; - version = "0.551"; + version = "0.552"; src = fetchFromGitHub { owner = "Roblox"; repo = "luau"; rev = version; - sha256 = "sha256-1IQeTq5eLn0jYtdc6SM0TuVJ3TUWUWtjQjAviba5ibw="; + sha256 = "sha256-dxxzM9VKN4yDkVpU3uQNgiFbBXBa+ALWSG/Ut6JKOEY="; }; nativeBuildInputs = [ cmake ]; From 8819081eeb01143b0d00b34e02216a4ba0f60067 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 8 Nov 2022 04:20:00 +0000 Subject: [PATCH 19/38] millet: 0.5.12 -> 0.5.13 --- pkgs/development/tools/millet/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/millet/default.nix b/pkgs/development/tools/millet/default.nix index ba206a06a1b..385ce3f3288 100644 --- a/pkgs/development/tools/millet/default.nix +++ b/pkgs/development/tools/millet/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "millet"; - version = "0.5.12"; + version = "0.5.13"; src = fetchFromGitHub { owner = "azdavis"; repo = pname; rev = "v${version}"; - sha256 = "sha256-COVWn8RTUQSCHkjUgD9I+lZ4u/M7wqAV6tnDW7HIytY="; + sha256 = "sha256-2fb7jt/wTDLFxRPzJ8i/JmlQvXBG9zjmE7nYBfmMis8="; }; - cargoSha256 = "sha256-/7I1RdDo2o2uMUVEMjSCltmU8eW39cCgpzHztePE3Kw="; + cargoSha256 = "sha256-JCO+IxDQeB3CTMpGD8D+1O7Vj2pBxvvnP9M48vVUEsc="; postPatch = '' rm .cargo/config.toml From 0ae850e1ca14627cd7ae338e35179c99da81efc0 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 8 Nov 2022 01:00:23 -0500 Subject: [PATCH 20/38] eva: 0.3.0-2 -> 0.3.1 --- pkgs/tools/misc/eva/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/eva/default.nix b/pkgs/tools/misc/eva/default.nix index 5d3e417425d..934a19209d0 100644 --- a/pkgs/tools/misc/eva/default.nix +++ b/pkgs/tools/misc/eva/default.nix @@ -2,15 +2,14 @@ rustPlatform.buildRustPackage rec { pname = "eva"; - version = "0.3.0-2"; + version = "0.3.1"; src = fetchCrate { - inherit pname; - version = "0.3.0"; - sha256 = "sha256-oeNv4rKZAl/gQ8b8Yr7fgQeeszJjzMcf9q1KzYpVS1Y="; + inherit pname version; + sha256 = "sha256-eX2d9h6zNbheS68j3lyhJW05JZmQN2I2MdcmiZB8Mec="; }; - cargoSha256 = "sha256-WBniKff9arVgNFBY2pwB0QgEBvzCL0Dls+6N49V86to="; + cargoSha256 = "sha256-gnym2sedyzQzubOtj64Yoh+sKT+sa60w/Z72hby7Pms="; meta = with lib; { description = "A calculator REPL, similar to bc"; From 3dfbc6f54eaf41c864aaeb82c31b1e06feb23172 Mon Sep 17 00:00:00 2001 From: Steven Kou Date: Tue, 8 Nov 2022 17:40:43 +0800 Subject: [PATCH 21/38] btop: 1.2.12 -> 1.2.13 --- pkgs/tools/system/btop/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/system/btop/default.nix b/pkgs/tools/system/btop/default.nix index e460dadbc81..0425ee728bf 100644 --- a/pkgs/tools/system/btop/default.nix +++ b/pkgs/tools/system/btop/default.nix @@ -8,8 +8,8 @@ stdenv.mkDerivation rec { pname = "btop"; - version = "1.2.12"; - hash = "sha256-ieNwFCDJF0U1wTfAeWM22CS3RE1SEp12ODHsRVYFoKU="; + version = "1.2.13"; + hash = "sha256-F/muCjhcnM+VqAn6FlD4lv23OLITrmtnHkFc5zv97yk="; src = fetchFromGitHub { owner = "aristocratos"; From 4e6dd2e77851a9e1f186728951d2a61079c0d193 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 8 Nov 2022 10:35:09 +0000 Subject: [PATCH 22/38] fwbuilder: disable blanket `-Werror` `-Werror` flag usually causes build failures due to minor changes in compiler versions. They might be useful for developers themselves but are rarely useful for distributions. last time `fwbuilder` failed the build against newer `libxml2`: libfwbuilder/src/fwbuilder/XMLTools.cpp: In static member function 'static void libfwbuilder::XMLTools::initXMLTools()': libfwbuilder/src/fwbuilder/XMLTools.cpp:222:18: error: 'int xmlInitMemory()' is deprecated [-Werror=deprecated-declarations] 222 | xmlInitMemory(); | ~~~~~~~~~~~~~^~ --- pkgs/tools/security/fwbuilder/default.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/security/fwbuilder/default.nix b/pkgs/tools/security/fwbuilder/default.nix index bbc6d3b5515..6787e2f923b 100644 --- a/pkgs/tools/security/fwbuilder/default.nix +++ b/pkgs/tools/security/fwbuilder/default.nix @@ -20,6 +20,13 @@ stdenv.mkDerivation rec { hash = "sha256-j5HjGcIqq93Ca9OBqEgSotoSXyw+q6Fqxa3hKk1ctwQ="; }; + postPatch = '' + # Avoid blanket -Werror as it triggers on any minor compiler + # warnings like deprecated functions or invalid indentat8ion. + # Leave fixing these problems to upstream. + substituteInPlace CMakeLists.txt --replace ';-Werror;' ';' + ''; + nativeBuildInputs = [ cmake ninja @@ -32,11 +39,6 @@ stdenv.mkDerivation rec { qtwayland ]; - NIX_CFLAGS_COMPILE = [ - "-Wno-error=misleading-indentation" - "-Wno-error=deprecated-declarations" - ]; - meta = with lib; { description = "GUI Firewall Management Application"; longDescription = '' From 3287eaaef4ff5bd356b4bbef46b39a55bb4a2672 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Nov 2022 12:08:30 +0100 Subject: [PATCH 23/38] python310Packages.datasette-publish-fly: init at 1.2 --- .../datasette-publish-fly/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/datasette-publish-fly/default.nix diff --git a/pkgs/development/python-modules/datasette-publish-fly/default.nix b/pkgs/development/python-modules/datasette-publish-fly/default.nix new file mode 100644 index 00000000000..9248588df21 --- /dev/null +++ b/pkgs/development/python-modules/datasette-publish-fly/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, cogapp +, datasette +, fetchFromGitHub +, pytest-mock +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "datasette-publish-fly"; + version = "1.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "simonw"; + repo = pname; + rev = version; + hash = "sha256-0frP/RkpZX6LCR8cOlzcBG3pbcOh0KPuELlYUXS3dRE="; + }; + + propagatedBuildInputs = [ + datasette + ]; + + checkInputs = [ + cogapp + pytest-mock + pytestCheckHook + ]; + + pythonImportsCheck = [ + "datasette_publish_fly" + ]; + + meta = with lib; { + description = "Datasette plugin for publishing data using Fly"; + homepage = "https://datasette.io/plugins/datasette-publish-fly"; + license = licenses.asl20; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ae46e21fd2e..a489cbf2d82 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2173,6 +2173,8 @@ self: super: with self; { datasette = callPackage ../development/python-modules/datasette { }; + datasette-publish-fly = callPackage ../development/python-modules/datasette-publish-fly { }; + datasette-template-sql = callPackage ../development/python-modules/datasette-template-sql { }; datashader = callPackage ../development/python-modules/datashader { }; From cc62af324647288d7e3e10fedbae3292da4efc7c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Nov 2022 12:14:23 +0100 Subject: [PATCH 24/38] btop: move hash --- pkgs/tools/system/btop/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/tools/system/btop/default.nix b/pkgs/tools/system/btop/default.nix index 0425ee728bf..1bde417e6de 100644 --- a/pkgs/tools/system/btop/default.nix +++ b/pkgs/tools/system/btop/default.nix @@ -9,13 +9,12 @@ stdenv.mkDerivation rec { pname = "btop"; version = "1.2.13"; - hash = "sha256-F/muCjhcnM+VqAn6FlD4lv23OLITrmtnHkFc5zv97yk="; src = fetchFromGitHub { owner = "aristocratos"; repo = pname; rev = "v${version}"; - sha256 = hash; + hash = "sha256-F/muCjhcnM+VqAn6FlD4lv23OLITrmtnHkFc5zv97yk="; }; ADDFLAGS = with darwin.apple_sdk.frameworks; From cad704eb95f5d4b7a283cd8d7498fa05672d4f20 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Nov 2022 12:17:40 +0100 Subject: [PATCH 25/38] toil: 5.6.0 -> 5.7.1 --- .../science/misc/toil/default.nix | 64 ++++++++++++++++--- 1 file changed, 55 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/science/misc/toil/default.nix b/pkgs/applications/science/misc/toil/default.nix index b13ad0ad10c..43cb6bbbc7e 100644 --- a/pkgs/applications/science/misc/toil/default.nix +++ b/pkgs/applications/science/misc/toil/default.nix @@ -1,33 +1,51 @@ { lib , fetchFromGitHub , python3 +, rsync }: python3.pkgs.buildPythonApplication rec { pname = "toil"; - version = "5.6.0"; + version = "5.7.1"; format = "setuptools"; - src = python3.pkgs.fetchPypi { - inherit pname version; - sha256 = "sha256-m6tzrRCCLULO+wB8htUlt0KESLm/vdIeTzBrihnAo/I="; + src = fetchFromGitHub { + owner = "DataBiosphere"; + repo = pname; + rev = "refs/tags/releases/${version}"; + hash = "sha256-m+XvNyzd0ly2YqKhgxezgGaCXLs3CmupJMnp5RIZqNI="; }; + postPatch = '' + substituteInPlace requirements.txt \ + --replace "docker>=3.7.2, <6" "docker" + ''; + propagatedBuildInputs = with python3.pkgs; [ addict + dill docker - pytz - pyyaml enlighten psutil py-tes + pypubsub python-dateutil - dill + pytz + pyyaml + requests + typing-extensions ]; - checkInputs = with python3.pkgs; [ + checkInputs = [ + rsync + ] ++ (with python3.pkgs; [ + boto + botocore + flask + mypy-boto3-s3 pytestCheckHook - ]; + stubserver + ]); pytestFlagsArray = [ "src/toil/test" @@ -37,6 +55,34 @@ python3.pkgs.buildPythonApplication rec { "toil" ]; + disabledTestPaths = [ + # Tests are reaching their timeout + "src/toil/test/docs/scriptsTest.py" + "src/toil/test/jobStores/jobStoreTest.py" + "src/toil/test/provisioners/aws/awsProvisionerTest.py" + "src/toil/test/src" + "src/toil/test/wdl" + "src/toil/test/utils/utilsTest.py" + ]; + + disabledTests = [ + # Tests fail starting with 5.7.1 + "testServices" + "testConcurrencyWithDisk" + "testJobConcurrency" + "testNestedResourcesDoNotBlock" + "test_omp_threads" + "testFileSingle" + "testFileSingle10000" + "testFileSingleCheckpoints" + "testFileSingleNonCaching" + "testFetchJobStoreFiles" + "testFetchJobStoreFilesWSymlinks" + "testJobStoreContents" + "test_cwl_on_arm" + "test_cwl_toil_kill" + ]; + meta = with lib; { description = "Workflow engine written in pure Python"; homepage = "https://toil.ucsc-cgl.org/"; From 5606ae7a27a29ca670487f74eeeaaea22b8db0cb Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Mon, 7 Nov 2022 17:47:59 +0100 Subject: [PATCH 26/38] litehtml: init at 0.6 --- .../libraries/litehtml/default.nix | 38 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/libraries/litehtml/default.nix diff --git a/pkgs/development/libraries/litehtml/default.nix b/pkgs/development/libraries/litehtml/default.nix new file mode 100644 index 00000000000..6e3db75f5eb --- /dev/null +++ b/pkgs/development/libraries/litehtml/default.nix @@ -0,0 +1,38 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, gumbo +}: + +stdenv.mkDerivation rec { + pname = "litehtml"; + version = "0.6"; + + src = fetchFromGitHub { + owner = "litehtml"; + repo = "litehtml"; + rev = "v${version}"; + hash = "sha256-9571d3k8RkzEpMWPuIejZ7njLmYstSwFUaSqT3sk6uQ="; + }; + + nativeBuildInputs = [ + cmake + ]; + + buildInputs = [ + gumbo + ]; + + cmakeFlags = [ + "-DEXTERNAL_GUMBO=ON" + ]; + + meta = with lib; { + description = "Fast and lightweight HTML/CSS rendering engine"; + homepage = "http://www.litehtml.com/"; + license = licenses.bsd3; + platforms = platforms.all; + maintainers = with maintainers; [ fgaz ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c97f1d41dbd..5d45ada4b16 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21086,6 +21086,8 @@ with pkgs; liquidfun = callPackage ../development/libraries/liquidfun { }; + litehtml = callPackage ../development/libraries/litehtml { }; + live555 = callPackage ../development/libraries/live555 { }; log4cpp = callPackage ../development/libraries/log4cpp { }; From b3d01ee88555827c5e2125ce0d457da7960ab737 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Mon, 7 Nov 2022 17:49:01 +0100 Subject: [PATCH 27/38] litebrowser: init at unstable-2022-10-31 --- .../browsers/litebrowser/default.nix | 55 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 57 insertions(+) create mode 100644 pkgs/applications/networking/browsers/litebrowser/default.nix diff --git a/pkgs/applications/networking/browsers/litebrowser/default.nix b/pkgs/applications/networking/browsers/litebrowser/default.nix new file mode 100644 index 00000000000..2158d0bb2f5 --- /dev/null +++ b/pkgs/applications/networking/browsers/litebrowser/default.nix @@ -0,0 +1,55 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, pkg-config +, gtk3 +, gtkmm3 +, curl +, poco +, gumbo # litehtml dependency +}: + +stdenv.mkDerivation { + pname = "litebrowser"; + version = "unstable-2022-10-31"; + + src = fetchFromGitHub { + owner = "litehtml"; + repo = "litebrowser-linux"; + rev = "4654f8fb2d5e2deba7ac6223b6639341bd3b7eba"; + hash = "sha256-SvW1AOxLBLKqa+/2u2Zn+/t33ZzQHmqlcLRl6z0rK9U="; + fetchSubmodules = true; # litehtml submodule + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + gtk3 + gtkmm3 + curl + poco + gumbo + ]; + + cmakeFlags = [ + "-DEXTERNAL_GUMBO=ON" + ]; + + installPhase = '' + runHook preInstall + install -Dm755 litebrowser $out/bin/litebrowser + runHook postInstall + ''; + + meta = with lib; { + description = "A simple browser based on the litehtml engine"; + homepage = "https://github.com/litehtml/litebrowser-linux"; + license = licenses.bsd3; + platforms = platforms.unix; + maintainers = with maintainers; [ fgaz ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5d45ada4b16..c55d74db560 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29946,6 +29946,8 @@ with pkgs; lingot = callPackage ../applications/audio/lingot { }; + litebrowser = callPackage ../applications/networking/browsers/litebrowser { }; + littlegptracker = callPackage ../applications/audio/littlegptracker { inherit (darwin.apple_sdk.frameworks) Foundation; }; From 025f32f705d171fe63a71a907bd9700f8c1c1f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Tue, 8 Nov 2022 13:31:29 +0100 Subject: [PATCH 28/38] lib/types: add `descriptionClass` for `path` --- lib/types.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/types.nix b/lib/types.nix index b83898744df..270ac1748c7 100644 --- a/lib/types.nix +++ b/lib/types.nix @@ -478,6 +478,7 @@ rec { path = mkOptionType { name = "path"; + descriptionClass = "noun"; check = x: isCoercibleToString x && builtins.substring 0 1 (toString x) == "/"; merge = mergeEqualOption; }; From 1df1e119f2d7529d2e87edcb4c80276bb78dd05d Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Tue, 8 Nov 2022 15:55:37 +0300 Subject: [PATCH 29/38] =?UTF-8?q?vcsh:=202.0.4=20=E2=86=92=202.0.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/applications/version-management/vcsh/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/vcsh/default.nix b/pkgs/applications/version-management/vcsh/default.nix index 3f33edc9538..1fa10059183 100644 --- a/pkgs/applications/version-management/vcsh/default.nix +++ b/pkgs/applications/version-management/vcsh/default.nix @@ -8,11 +8,11 @@ stdenv.mkDerivation rec { pname = "vcsh"; - version = "2.0.4"; + version = "2.0.5"; src = fetchurl { url = "https://github.com/RichiH/vcsh/releases/download/v${version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-W/Ql2J9HTDQPu0el34mHVzqe85KGWLPph2sHyuEzPPI="; + sha256 = "0bf3gacbyxw75ksd8y6528kgk7mqx6grz40gfiffxa2ghsz1xl01"; }; nativeBuildInputs = [ From e702dff003c9ec4dd63aa8db2c827900facb8cd9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Nov 2022 14:42:02 +0100 Subject: [PATCH 30/38] python310Packages.dm-sonnet: add missing input --- .../python-modules/dm-sonnet/default.nix | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/dm-sonnet/default.nix b/pkgs/development/python-modules/dm-sonnet/default.nix index f857eac8503..e089b91eb0f 100644 --- a/pkgs/development/python-modules/dm-sonnet/default.nix +++ b/pkgs/development/python-modules/dm-sonnet/default.nix @@ -1,40 +1,45 @@ { lib -, fetchFromGitHub -, buildPythonPackage -, numpy -, tabulate -, six -, dm-tree , absl-py -, wrapt +, buildPythonPackage +, dm-tree , docutils +, etils +, fetchFromGitHub +, numpy +, pythonOlder +, tabulate , tensorflow -, tensorflow-datasets }: +, tensorflow-datasets +, wrapt +}: buildPythonPackage rec { pname = "dm-sonnet"; version = "2.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "deepmind"; repo = "sonnet"; rev = "v${version}"; - sha256 = "sha256-YSMeH5ZTfP1OdLBepsxXAVczBG/ghSjCWjoz/I+TFl8="; + hash = "sha256-YSMeH5ZTfP1OdLBepsxXAVczBG/ghSjCWjoz/I+TFl8="; }; - buildInputs = [ - absl-py + propagatedBuildInputs = [ dm-tree + etils numpy - six tabulate wrapt - ]; + ] ++ etils.optional-dependencies.epath; - propagatedBuildInputs = [ - tabulate - tensorflow - ]; + passthru.optional-dependencies = { + tensorflow = [ + tensorflow + ]; + }; checkInputs = [ docutils From e88ea96813b099bc68f22235fa0158440e085f06 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Nov 2022 14:48:00 +0100 Subject: [PATCH 31/38] python310Packages.ansible-doctor: 1.4.5 -> 1.4.6 --- .../python-modules/ansible-doctor/default.nix | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/ansible-doctor/default.nix b/pkgs/development/python-modules/ansible-doctor/default.nix index ba6691b6e19..e2de0500dd9 100644 --- a/pkgs/development/python-modules/ansible-doctor/default.nix +++ b/pkgs/development/python-modules/ansible-doctor/default.nix @@ -12,12 +12,13 @@ , poetry-core , python-json-logger , pythonOlder +, pythonRelaxDepsHook , ruamel-yaml }: buildPythonPackage rec { pname = "ansible-doctor"; - version = "1.4.5"; + version = "1.4.6"; format = "pyproject"; disabled = pythonOlder "3.7"; @@ -26,11 +27,19 @@ buildPythonPackage rec { owner = "thegeeklab"; repo = "ansible-doctor"; rev = "refs/tags/v${version}"; - hash = "sha256-Bqe5dqD9VEgkkIGtpkLnCf3KTziCYb5HQdMJaskALWE="; + hash = "sha256-76IYH9IWeHU+PAtpLFGT5f8oG2roY3raW0NC3KUnFls="; }; + pythonRelaxDeps = true; + + postPatch = '' + substituteInPlace pyproject.toml \ + --replace 'version = "0.0.0"' 'version = "${version}"' + ''; + nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; propagatedBuildInputs = [ @@ -50,17 +59,6 @@ buildPythonPackage rec { rm $out/lib/python*/site-packages/LICENSE ''; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace 'version = "0.0.0"' 'version = "${version}"' \ - --replace 'Jinja2 = "3.1.2"' 'Jinja2 = "*"' \ - --replace 'anyconfig = "0.13.0"' 'anyconfig = "*"' \ - --replace 'environs = "9.5.0"' 'environs = "*"' \ - --replace 'jsonschema = "4.15.0"' 'jsonschema = "*"' \ - --replace '"ruamel.yaml" = "0.17.21"' '"ruamel.yaml" = "*"' \ - --replace 'python-json-logger = "2.0.4"' 'python-json-logger = "*"' - ''; - # Module has no tests doCheck = false; From a5cfc0e571772dff5012979424419b332fcb6091 Mon Sep 17 00:00:00 2001 From: Lana Black Date: Mon, 7 Nov 2022 15:38:02 +0000 Subject: [PATCH 32/38] solo5: 0.7.3 -> 0.7.4 --- pkgs/os-specific/solo5/default.nix | 6 ++--- pkgs/os-specific/solo5/fix_paths.patch | 29 ------------------------- pkgs/os-specific/solo5/test_sleep.patch | 22 ------------------- 3 files changed, 2 insertions(+), 55 deletions(-) delete mode 100644 pkgs/os-specific/solo5/fix_paths.patch delete mode 100644 pkgs/os-specific/solo5/test_sleep.patch diff --git a/pkgs/os-specific/solo5/default.nix b/pkgs/os-specific/solo5/default.nix index c50cea7b385..545a73e397f 100644 --- a/pkgs/os-specific/solo5/default.nix +++ b/pkgs/os-specific/solo5/default.nix @@ -2,7 +2,7 @@ , pkg-config, qemu, syslinux, util-linux }: let - version = "0.7.3"; + version = "0.7.4"; # list of all theoretically available targets targets = [ "genode" @@ -21,11 +21,9 @@ in stdenv.mkDerivation { src = fetchurl { url = "https://github.com/Solo5/solo5/releases/download/v${version}/solo5-v${version}.tar.gz"; - sha256 = "sha256-8LftT22XzmmWxgYez+BAHDX4HOyl5DrwrpuO2+bqqcY="; + sha256 = "sha256-ovDdaS2cDufe5gTgi+t2C8waWiRC40/2flLLJlz+NvU="; }; - patches = [ ./fix_paths.patch ./test_sleep.patch ]; - hardeningEnable = [ "pie" ]; configurePhase = '' diff --git a/pkgs/os-specific/solo5/fix_paths.patch b/pkgs/os-specific/solo5/fix_paths.patch deleted file mode 100644 index 8895de311da..00000000000 --- a/pkgs/os-specific/solo5/fix_paths.patch +++ /dev/null @@ -1,29 +0,0 @@ -diff --git a/toolchain/cc.in b/toolchain/cc.in -index 337562a..0ec9315 100644 ---- a/toolchain/cc.in -+++ b/toolchain/cc.in -@@ -30,9 +30,9 @@ - # symbols. - - prog="$(basename $0)" --I="$(dirname $0)/../include" -+I="$(realpath $0 | xargs dirname)/../include" - [ ! -d "${I}" ] && echo "$prog: Could not determine include path" 1>&2 && exit 1 --L="$(dirname $0)/../lib/@@CONFIG_TARGET_TRIPLE@@" -+L="$(realpath $0 | xargs dirname)/../lib/@@CONFIG_TARGET_TRIPLE@@" - [ ! -d "${L}" ] && echo "$prog: Could not determine library path" 1>&2 && exit 1 - # we can't really tell if 'cc' is called with no input, but work around the - # most obvious cases and stop them from "succeeding" and producing an "a.out" -diff --git a/toolchain/ld.in b/toolchain/ld.in -index 01dffa8..13dca2c 100644 ---- a/toolchain/ld.in -+++ b/toolchain/ld.in -@@ -28,7 +28,7 @@ - # linking a unikernel. No default for ABI is provided, as it is expected that a - # caller directly using 'ld' knows what they are doing. - --L="$(dirname $0)/../lib/@@CONFIG_TARGET_TRIPLE@@" -+L="$(realpath $0 | xargs dirname)/../lib/@@CONFIG_TARGET_TRIPLE@@" - [ ! -d "${L}" ] && echo "$0: Could not determine library path" 1>&2 && exit 1 - # ld accepts -z solo5-abi=ABI, but does not provide a default ABI - # this is intentional diff --git a/pkgs/os-specific/solo5/test_sleep.patch b/pkgs/os-specific/solo5/test_sleep.patch deleted file mode 100644 index f86a83d09de..00000000000 --- a/pkgs/os-specific/solo5/test_sleep.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/tests/test_time/test_time.c b/tests/test_time/test_time.c -index 931500b..cde64ad 100644 ---- a/tests/test_time/test_time.c -+++ b/tests/test_time/test_time.c -@@ -110,7 +110,8 @@ int solo5_app_main(const struct solo5_start_info *si __attribute__((unused))) - /* - * Verify that we did not sleep less than requested (see above). - */ -- if (delta < NSEC_PER_SEC) { -+ const solo5_time_t slack = 100000000ULL; -+ if (delta < NSEC_PER_SEC - slack) { - printf("[%d] ERROR: slept too little (expected at least %llu ns)\n", - iters, (unsigned long long)NSEC_PER_SEC); - failed = true; -@@ -120,7 +121,6 @@ int solo5_app_main(const struct solo5_start_info *si __attribute__((unused))) - * Verify that we did not sleep more than requested, within reason - * (scheduling delays, general inaccuracy of the current timing code). - */ -- const solo5_time_t slack = 100000000ULL; - if (delta > (NSEC_PER_SEC + slack)) { - printf("[%d] ERROR: slept too much (expected at most %llu ns)\n", - iters, (unsigned long long)slack); From fd76db7cb42ec0347a0d72e69734da4722405e1d Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 10 Sep 2022 14:51:56 +0200 Subject: [PATCH 33/38] nixos/invoiceplane: Add cron option --- .../services/web-apps/invoiceplane.nix | 57 ++++++++++++++++++- 1 file changed, 54 insertions(+), 3 deletions(-) diff --git a/nixos/modules/services/web-apps/invoiceplane.nix b/nixos/modules/services/web-apps/invoiceplane.nix index c54915b10a2..8f0acbea4ee 100644 --- a/nixos/modules/services/web-apps/invoiceplane.nix +++ b/nixos/modules/services/web-apps/invoiceplane.nix @@ -184,6 +184,26 @@ let ''; }; + cron = { + + enable = mkOption { + type = types.bool; + default = false; + description = lib.mdDoc '' + Enable cron service which periodically runs Invoiceplane tasks. + Requires key taken from the administration page. Refer to + + on how to configure it. + ''; + }; + + key = mkOption { + type = types.str; + description = lib.mdDoc "Cron key taken from the administration page."; + }; + + }; + }; }; @@ -224,8 +244,11 @@ in } { assertion = cfg.database.createLocally -> cfg.database.passwordFile == null; message = ''services.invoiceplane.sites."${hostName}".database.passwordFile cannot be specified if services.invoiceplane.sites."${hostName}".database.createLocally is set to true.''; - }] - ) eachSite); + } + { assertion = cfg.cron.enable -> cfg.cron.key != null; + message = ''services.invoiceplane.sites."${hostName}".cron.key must be set in order to use cron service.''; + } + ]) eachSite); services.mysql = mkIf (any (v: v.database.createLocally) (attrValues eachSite)) { enable = true; @@ -255,6 +278,7 @@ in } { + systemd.tmpfiles.rules = flatten (mapAttrsToList (hostName: cfg: [ "d ${cfg.stateDir} 0750 ${user} ${webserver.group} - -" "f ${cfg.stateDir}/ipconfig.php 0750 ${user} ${webserver.group} - -" @@ -284,6 +308,34 @@ in group = webserver.group; isSystemUser = true; }; + + } + { + + # Cron service implementation + + systemd.timers = mapAttrs' (hostName: cfg: ( + nameValuePair "invoiceplane-cron-${hostName}" (mkIf cfg.cron.enable { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnBootSec = "5m"; + OnUnitActiveSec = "5m"; + Unit = "invoiceplane-cron-${hostName}.service"; + }; + }) + )) eachSite; + + systemd.services = + (mapAttrs' (hostName: cfg: ( + nameValuePair "invoiceplane-cron-${hostName}" (mkIf cfg.cron.enable { + serviceConfig = { + Type = "oneshot"; + User = user; + ExecStart = "${pkgs.curl}/bin/curl --header 'Host: ${hostName}' http://localhost/index.php/invoices/cron/recur/${cfg.cron.key}"; + }; + }) + )) eachSite); + } (mkIf (cfg.webserver == "caddy") { @@ -302,6 +354,5 @@ in }; }) - ]); } From 76b655e438c0352c52703daa505f8aea3e1cbe1f Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sun, 30 Oct 2022 13:52:13 -0500 Subject: [PATCH 34/38] nncp: 8.8.0 -> 8.8.1 --- pkgs/tools/misc/nncp/default.nix | 5 +++-- pkgs/top-level/all-packages.nix | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/nncp/default.nix b/pkgs/tools/misc/nncp/default.nix index 037abfb84ea..497910cd809 100644 --- a/pkgs/tools/misc/nncp/default.nix +++ b/pkgs/tools/misc/nncp/default.nix @@ -3,12 +3,12 @@ stdenv.mkDerivation rec { pname = "nncp"; - version = "8.8.0"; + version = "8.8.1"; outputs = [ "out" "doc" "info" ]; src = fetchurl { url = "http://www.nncpgo.org/download/${pname}-${version}.tar.xz"; - sha256 = "829E2FB2F1EED8AF7ACE4554405E56F0341BE2A01C234A34D01122382AA0794C"; + sha256 = "426463C97211AD88DF74DDDF61BDBB830BAE275668B2F23158D43146517469A6"; }; nativeBuildInputs = [ go redo-apenwarr ]; @@ -54,6 +54,7 @@ stdenv.mkDerivation rec { ''; homepage = "http://www.nncpgo.org/"; downloadPage = "http://www.nncpgo.org/Tarballs.html"; + changelog = "http://www.nncpgo.org/News.html"; license = licenses.gpl3Only; platforms = platforms.all; maintainers = with maintainers; [ ehmry woffs ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0d8b7bd9f0e..05d687b152e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30607,7 +30607,10 @@ with pkgs; ninjas2 = callPackage ../applications/audio/ninjas2 {}; - nncp = callPackage ../tools/misc/nncp { }; + nncp = ( + if stdenv.isDarwin + then darwin.apple_sdk_11_0.callPackage + else callPackage) ../tools/misc/nncp { }; notion = callPackage ../applications/window-managers/notion { }; From b17dcdfb87822eb066a88c3e8b2780c786572e7b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 8 Nov 2022 11:04:32 +0000 Subject: [PATCH 35/38] discord-ptb: 0.0.34 -> 0.0.35 --- .../networking/instant-messengers/discord/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/discord/default.nix b/pkgs/applications/networking/instant-messengers/discord/default.nix index 185974539a1..9fd10270556 100644 --- a/pkgs/applications/networking/instant-messengers/discord/default.nix +++ b/pkgs/applications/networking/instant-messengers/discord/default.nix @@ -2,7 +2,7 @@ let versions = if stdenv.isLinux then { stable = "0.0.21"; - ptb = "0.0.34"; + ptb = "0.0.35"; canary = "0.0.143"; } else { stable = "0.0.264"; @@ -18,7 +18,7 @@ let }; ptb = fetchurl { url = "https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"; - sha256 = "CD6dLoBnlvhpwEFfLI9OqjhviZPj3xNDyPK9qBJUqck="; + sha256 = "bnp5wfcR21s7LMPxFgj5G3UsxPWlFj4t6CbeosiufHY="; }; canary = fetchurl { url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz"; From 0ea6f4c9749d9bc9c079b901279613b441103aa2 Mon Sep 17 00:00:00 2001 From: roblabla Date: Mon, 7 Nov 2022 00:31:27 +0100 Subject: [PATCH 36/38] ghidra: 10.1.2 -> 10.2 --- pkgs/tools/security/ghidra/build.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/tools/security/ghidra/build.nix b/pkgs/tools/security/ghidra/build.nix index 23bc1d216f3..9607293ac26 100644 --- a/pkgs/tools/security/ghidra/build.nix +++ b/pkgs/tools/security/ghidra/build.nix @@ -6,7 +6,7 @@ , gradle , perl , makeWrapper -, openjdk11 +, openjdk17 , unzip , makeDesktopItem , autoPatchelfHook @@ -19,13 +19,13 @@ let pkg_path = "$out/lib/ghidra"; pname = "ghidra"; - version = "10.1.2"; + version = "10.2"; src = fetchFromGitHub { owner = "NationalSecurityAgency"; repo = "Ghidra"; rev = "Ghidra_${version}_build"; - sha256 = "sha256-gnSIXje0hUpAculNXAyiS7Twc5XWitMgYp7svyZQxzE="; + sha256 = "sha256-b6xUSAZgyvpJFiG3/kl2s1vpq9n1etnoa7AJLF3NdZY="; }; desktopItem = makeDesktopItem { @@ -90,10 +90,10 @@ HERE export GRADLE_USER_HOME="$HOME/.gradle" # First, fetch the static dependencies. - gradle --no-daemon --info -Dorg.gradle.java.home=${openjdk11} -I gradle/support/fetchDependencies.gradle init + gradle --no-daemon --info -Dorg.gradle.java.home=${openjdk17} -I gradle/support/fetchDependencies.gradle init # Then, fetch the maven dependencies. - gradle --no-daemon --info -Dorg.gradle.java.home=${openjdk11} resolveDependencies + gradle --no-daemon --info -Dorg.gradle.java.home=${openjdk17} resolveDependencies ''; # perl code mavenizes pathes (com.squareup.okio/okio/1.13.0/a9283170b7305c8d92d25aff02a6ab7e45d06cbe/okio-1.13.0.jar -> com/squareup/okio/okio/1.13.0/okio-1.13.0.jar) installPhase = '' @@ -104,7 +104,7 @@ HERE ''; outputHashAlgo = "sha256"; outputHashMode = "recursive"; - outputHash = "sha256-UHV7Z2HaVTOCY5U0zjUtkchJicrXMBfYBHvL8AA7NTg="; + outputHash = "sha256-Z4RS3IzDP8V3SrrwOuX/hTlX7fs3woIhR8GPK/tFAzs="; }; in stdenv.mkDerivation rec { @@ -128,7 +128,7 @@ in stdenv.mkDerivation rec { sed -i "s#mavenLocal()#mavenLocal(); maven { url '${deps}/maven' }#g" build.gradle - gradle --offline --no-daemon --info -Dorg.gradle.java.home=${openjdk11} buildGhidra + gradle --offline --no-daemon --info -Dorg.gradle.java.home=${openjdk17} buildGhidra ''; installPhase = '' @@ -156,7 +156,7 @@ in stdenv.mkDerivation rec { mkdir -p "$out/bin" ln -s "${pkg_path}/ghidraRun" "$out/bin/ghidra" wrapProgram "${pkg_path}/support/launch.sh" \ - --prefix PATH : ${lib.makeBinPath [ openjdk11 ]} + --prefix PATH : ${lib.makeBinPath [ openjdk17 ]} ''; meta = with lib; { From 2c5abd89c7e917acde9077fc4d12596e35b73e17 Mon Sep 17 00:00:00 2001 From: happysalada Date: Tue, 8 Nov 2022 08:14:00 -0500 Subject: [PATCH 37/38] rmem_max: define merge function --- .../from_md/release-notes/rl-2211.section.xml | 8 ++++++++ .../doc/manual/release-notes/rl-2211.section.md | 2 ++ nixos/modules/config/sysctl.nix | 16 +++++++++++++++- nixos/modules/services/torrent/transmission.nix | 2 +- 4 files changed, 26 insertions(+), 2 deletions(-) diff --git a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml index 9600901537f..c53474144d2 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml @@ -1336,6 +1336,14 @@ the npm install step prunes dev dependencies. + + + boot.kernel.sysctl is defined as a freeformType and adds a + custom merge option for net.core.rmem_max + (taking the highest value defined to avoid conflicts between 2 + services trying to set that value) + + diff --git a/nixos/doc/manual/release-notes/rl-2211.section.md b/nixos/doc/manual/release-notes/rl-2211.section.md index b3495063f39..863bf95b55f 100644 --- a/nixos/doc/manual/release-notes/rl-2211.section.md +++ b/nixos/doc/manual/release-notes/rl-2211.section.md @@ -395,4 +395,6 @@ Available as [services.patroni](options.html#opt-services.patroni.enable). - The `nodePackages` package set now defaults to the LTS release in the `nodejs` package again, instead of being pinned to `nodejs-14_x`. Several updates to node2nix have been made for compatibility with newer Node.js and npm versions and a new `postRebuild` hook has been added for packages to perform extra build steps before the npm install step prunes dev dependencies. +- boot.kernel.sysctl is defined as a freeformType and adds a custom merge option for "net.core.rmem_max" (taking the highest value defined to avoid conflicts between 2 services trying to set that value) + diff --git a/nixos/modules/config/sysctl.nix b/nixos/modules/config/sysctl.nix index b4b2d0452c4..4346c88f768 100644 --- a/nixos/modules/config/sysctl.nix +++ b/nixos/modules/config/sysctl.nix @@ -21,11 +21,24 @@ in options = { boot.kernel.sysctl = mkOption { + type = types.submodule { + freeformType = types.attrsOf sysctlOption; + options."net.core.rmem_max" = mkOption { + type = types.nullOr types.ints.unsigned // { + merge = loc: defs: + foldl + (a: b: if b.value == null then null else lib.max a b.value) + 0 + (filterOverrides defs); + }; + default = null; + description = lib.mdDoc "The maximum socket receive buffer size. In case of conflicting values, the highest will be used."; + }; + }; default = {}; example = literalExpression '' { "net.ipv4.tcp_syncookies" = false; "vm.swappiness" = 60; } ''; - type = types.attrsOf sysctlOption; description = lib.mdDoc '' Runtime parameters of the Linux kernel, as set by {manpage}`sysctl(8)`. Note that sysctl @@ -35,6 +48,7 @@ in parameter may be a string, integer, boolean, or null (signifying the option will not appear at all). ''; + }; }; diff --git a/nixos/modules/services/torrent/transmission.nix b/nixos/modules/services/torrent/transmission.nix index 5e0d13211bc..9b53f5de143 100644 --- a/nixos/modules/services/torrent/transmission.nix +++ b/nixos/modules/services/torrent/transmission.nix @@ -431,7 +431,7 @@ in # https://trac.transmissionbt.com/browser/trunk/libtransmission/tr-udp.c?rev=11956. # at least up to the values hardcoded here: (mkIf cfg.settings.utp-enabled { - "net.core.rmem_max" = mkDefault "4194304"; # 4MB + "net.core.rmem_max" = mkDefault 4194304; # 4MB "net.core.wmem_max" = mkDefault "1048576"; # 1MB }) (mkIf cfg.performanceNetParameters { From 990ab561479560a990785285c345d00bc382ebd2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 8 Nov 2022 16:34:50 +0100 Subject: [PATCH 38/38] python310Packages.apprise: 1.0.0 -> 1.1.0 --- pkgs/development/python-modules/apprise/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/apprise/default.nix b/pkgs/development/python-modules/apprise/default.nix index 95a993e359a..864dd570209 100644 --- a/pkgs/development/python-modules/apprise/default.nix +++ b/pkgs/development/python-modules/apprise/default.nix @@ -14,7 +14,6 @@ , pyyaml , requests , requests-oauthlib -, six , slixmpp }: @@ -42,7 +41,6 @@ buildPythonPackage rec { pyyaml requests requests-oauthlib - six ]; checkInputs = [ @@ -58,6 +56,11 @@ buildPythonPackage rec { "test_plugin_mqtt_general" ]; + disabledTestPaths = [ + # AttributeError: module 'apprise.plugins' has no attribute 'NotifyBulkSMS' + "test/test_plugin_bulksms.py" + ]; + postInstall = '' installManPage packaging/man/apprise.1 '';