From e8a0ae4ddbe298d1b4ba2f6f7ef8839d9ed4e884 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 24 Jul 2023 16:00:42 +0200 Subject: [PATCH 01/28] revanced-cli: init at 2.22.0 --- .../misc/revanced-cli/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/applications/misc/revanced-cli/default.nix diff --git a/pkgs/applications/misc/revanced-cli/default.nix b/pkgs/applications/misc/revanced-cli/default.nix new file mode 100644 index 000000000000..fbd1554ab924 --- /dev/null +++ b/pkgs/applications/misc/revanced-cli/default.nix @@ -0,0 +1,36 @@ +{ lib, stdenv, fetchurl, makeWrapper, jre }: + +stdenv.mkDerivation rec { + pname = "revanced-cli"; + version = "2.22.0"; + + src = fetchurl { + url = "https://github.com/revanced/revanced-cli/releases/download/v${version}/revanced-cli-${version}-all.jar"; + hash = "sha256-jyaqkZL7aOc5WXjlomZThyaCUwKU7AyKKrgtKadUo5s="; + }; + + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ jre ]; + + dontUnpack = true; + + installPhase = '' + runHook preInstall + + mkdir -p "$prefix/bin" + + makeWrapper ${jre}/bin/java $out/bin/revanced-cli \ + --add-flags "-jar $src" \ + --prefix PATH : "$PATH" + + runHook postInstall + ''; + + meta = with lib; { + description = "Command line application as an alternative to the ReVanced Manager"; + homepage = "https://github.com/revanced/revanced-cli"; + license = licenses.gpl3Only; + sourceProvenance = with sourceTypes; [ binaryBytecode ]; + maintainers = with maintainers; [ jopejoe1 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 82263ec20900..185409fd7d24 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -34657,6 +34657,8 @@ with pkgs; retroshare = libsForQt5.callPackage ../applications/networking/p2p/retroshare { }; + revanced-cli = callPackage ../applications/misc/revanced-cli { }; + rgp = libsForQt5.callPackage ../development/tools/rgp { }; ricochet = libsForQt5.callPackage ../applications/networking/instant-messengers/ricochet { }; From 515ce669bcd98d25d0be99e8f6687f1913f057fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 26 Sep 2023 22:49:27 +0200 Subject: [PATCH 02/28] nixos/postgresql: point doc link to current like all others --- nixos/modules/services/databases/postgresql.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix index a9067d5974a9..fe2addf2b0b4 100644 --- a/nixos/modules/services/databases/postgresql.nix +++ b/nixos/modules/services/databases/postgresql.nix @@ -409,7 +409,7 @@ in default = {}; description = lib.mdDoc '' PostgreSQL configuration. Refer to - + for an overview of `postgresql.conf`. ::: {.note} From 363dc695f6bd0765dfb3fdc2fdc5f04522e58cc4 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Tue, 21 Nov 2023 19:45:27 +0100 Subject: [PATCH 03/28] pngtoico: use up-to-date libpng --- pkgs/tools/graphics/pngtoico/default.nix | 9 ++++++++- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/graphics/pngtoico/default.nix b/pkgs/tools/graphics/pngtoico/default.nix index 7abf94f0a3e1..dae0802427fc 100644 --- a/pkgs/tools/graphics/pngtoico/default.nix +++ b/pkgs/tools/graphics/pngtoico/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, libpng }: +{ lib, stdenv, fetchurl, libpng, fetchpatch }: stdenv.mkDerivation rec { pname = "pngtoico"; @@ -9,6 +9,13 @@ stdenv.mkDerivation rec { sha256 = "1xb4aa57sjvgqfp01br3dm72hf7q0gb2ad144s1ifrs09215fgph"; }; + patches = [ + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/pngtoico/files/pngtoico-1.0.1-libpng15.patch"; + hash = "sha256-MeRV4FL37Wq7aFRnjbxPokcBKmPM+h94cnFJmdvHAt0="; + }) + ]; + configurePhase = '' sed -i s,/usr/local,$out, Makefile ''; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0962ec1f04f1..149c6e3ecca4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12201,9 +12201,7 @@ with pkgs; pngoptimizer = callPackage ../tools/graphics/pngoptimizer { }; - pngtoico = callPackage ../tools/graphics/pngtoico { - libpng = libpng12; - }; + pngtoico = callPackage ../tools/graphics/pngtoico { }; pngpaste = callPackage ../os-specific/darwin/pngpaste { inherit (darwin.apple_sdk.frameworks) AppKit Cocoa; From 0e7469d16ee2e2e494bca516ac25a2d4f68970d5 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Tue, 21 Nov 2023 19:48:36 +0100 Subject: [PATCH 04/28] sng: use up-to-date libpng sng 1.1.0 is compatible with more recent version of libpng. --- pkgs/top-level/all-packages.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0962ec1f04f1..6b130d059c7d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13349,9 +13349,7 @@ with pkgs; snet = callPackage ../tools/networking/snet { }; - sng = callPackage ../tools/graphics/sng { - libpng = libpng12; - }; + sng = callPackage ../tools/graphics/sng { }; snmpcheck = callPackage ../tools/networking/snmpcheck { }; From 49ad896d600dab169ac202145a218dcd08010cee Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Tue, 21 Nov 2023 20:01:37 +0100 Subject: [PATCH 05/28] voxelands: use up-to-date libpng Seems to build fine with the current version of libpng, the override has been removed. --- pkgs/top-level/all-packages.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0962ec1f04f1..7eca71f3ee30 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -38562,9 +38562,7 @@ with pkgs; vms-empire = callPackage ../games/vms-empire { }; - voxelands = callPackage ../games/voxelands { - libpng = libpng12; - }; + voxelands = callPackage ../games/voxelands { }; vvvvvv = callPackage ../games/vvvvvv { inherit (darwin.apple_sdk.frameworks) Foundation IOKit; From fea610bb94c5590c89fed7926000c062c0ff6411 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Thu, 23 Nov 2023 08:52:20 -0500 Subject: [PATCH 06/28] python3Packages.pulp: add cbc solver --- pkgs/development/python-modules/pulp/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pulp/default.nix b/pkgs/development/python-modules/pulp/default.nix index 816af17c69fd..6ecd6d4ba8c0 100644 --- a/pkgs/development/python-modules/pulp/default.nix +++ b/pkgs/development/python-modules/pulp/default.nix @@ -1,4 +1,5 @@ { lib +, cbc , amply , buildPythonPackage , fetchFromGitHub @@ -21,6 +22,12 @@ buildPythonPackage rec { hash = "sha256-j0f6OiscJyTqPNyLp0qWRjCGLWuT3HdU1S/sxpnsiMo="; }; + postPatch = '' + sed -i pulp/pulp.cfg.linux \ + -e 's|CbcPath = .*|CbcPath = ${cbc}/bin/cbc|' \ + -e 's|PulpCbcPath = .*|PulpCbcPath = ${cbc}/bin/cbc|' + ''; + propagatedBuildInputs = [ amply pyparsing @@ -34,14 +41,8 @@ buildPythonPackage rec { "pulp" ]; - disabledTests = [ - # The solver is not available - "PULP_CBC_CMDTest" - "test_examples" - ]; - meta = with lib; { - description = "Module to generate generate MPS or LP files"; + description = "Module to generate MPS or LP files"; homepage = "https://github.com/coin-or/pulp"; license = licenses.mit; maintainers = with maintainers; [ teto ]; From 83cb8288766cc8ef5b5d9b73e9a91032b31b2c45 Mon Sep 17 00:00:00 2001 From: Veselin Ivanov Date: Wed, 29 Nov 2023 14:08:56 +0100 Subject: [PATCH 07/28] oh-my-zsh: 2023-06-26 -> 2023-11-29 --- pkgs/shells/zsh/oh-my-zsh/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/shells/zsh/oh-my-zsh/default.nix b/pkgs/shells/zsh/oh-my-zsh/default.nix index be67c6e14e35..863265d27a73 100644 --- a/pkgs/shells/zsh/oh-my-zsh/default.nix +++ b/pkgs/shells/zsh/oh-my-zsh/default.nix @@ -5,14 +5,14 @@ , git, nix, nixfmt, jq, coreutils, gnused, curl, cacert, bash }: stdenv.mkDerivation rec { - version = "2023-06-26"; + version = "2023-11-29"; pname = "oh-my-zsh"; src = fetchFromGitHub { owner = "ohmyzsh"; repo = "ohmyzsh"; - rev = "8cbe98469d9862d37d43ca4229dc8e915ec377a9"; - sha256 = "sha256-/bFD1z/icQe4OfVcudMjIbkCh7MU6pEZiKBOYOFiCXs="; + rev = "418046e9583f635b0303e4b8cf31c356b175cec3"; + sha256 = "sha256-r36vF37J+3rLGg0QzmT4U8Lp5nqRhAs8We0aDtBJKJM="; }; strictDeps = true; From f5060bb7ee0c8a33763e1c26f8ca9e1d975168e9 Mon Sep 17 00:00:00 2001 From: Nadir Ishiguro Date: Thu, 30 Nov 2023 14:14:32 +0100 Subject: [PATCH 08/28] nom: 2.0.5 -> 2.1.0 Changelog: https://github.com/guyfedwards/nom/releases/tag/v2.1.0 --- pkgs/by-name/no/nom/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/no/nom/package.nix b/pkgs/by-name/no/nom/package.nix index fde0f3378c39..eed31c03f759 100644 --- a/pkgs/by-name/no/nom/package.nix +++ b/pkgs/by-name/no/nom/package.nix @@ -4,13 +4,13 @@ }: buildGoModule rec { pname = "nom"; - version = "2.0.5"; + version = "2.1.0"; src = fetchFromGitHub { owner = "guyfedwards"; repo = "nom"; rev = "v${version}"; - hash = "sha256-mYE8cu7qHRyG/pZSr4u6tMEF3ZM5Qz+CX+oLf/chwl4="; + hash = "sha256-RKuaMgPYBD2G9WOKvfb+hj01aBVsCP0eOXULE+JpLR8="; }; vendorHash = "sha256-fP6yxfIQoVaBC9hYcrCyo3YP3ntEVDbDTwKMO9TdyDI="; From 403e3dbcbd3186733d0db2a6485821fa5510c739 Mon Sep 17 00:00:00 2001 From: Korny666 Date: Fri, 8 Dec 2023 16:25:11 +0100 Subject: [PATCH 09/28] smartgithg: 22.1.5 -> 23.1.1 --- .../version-management/smartgithg/default.nix | 10 ++++++---- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/version-management/smartgithg/default.nix b/pkgs/applications/version-management/smartgithg/default.nix index ecef523a0ec8..693505b20305 100644 --- a/pkgs/applications/version-management/smartgithg/default.nix +++ b/pkgs/applications/version-management/smartgithg/default.nix @@ -2,7 +2,7 @@ , stdenv , fetchurl , makeDesktopItem -, jre +, openjdk19 , gtk3 , glib , gnome @@ -10,14 +10,16 @@ , libXtst , which }: - +let + jre = openjdk19; +in stdenv.mkDerivation rec { pname = "smartgithg"; - version = "22.1.5"; + version = "23.1.1"; src = fetchurl { url = "https://www.syntevo.com/downloads/smartgit/smartgit-linux-${builtins.replaceStrings [ "." ] [ "_" ] version}.tar.gz"; - sha256 = "sha256-s31sYEC1g7eLMhT9UkmjbBnHePY9wnQPmgGQXgVX4j4="; + sha256 = "sha256-LXB+OymApJjL4bgOZ8Vfd193jZHVbQ6G2zmrHNE/OJk="; }; nativeBuildInputs = [ wrapGAppsHook ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 17f81e7d4e36..65b204086599 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35478,9 +35478,7 @@ with pkgs; skrooge = libsForQt5.callPackage ../applications/office/skrooge { }; - smartgithg = callPackage ../applications/version-management/smartgithg { - jre = openjdk11; - }; + smartgithg = callPackage ../applications/version-management/smartgithg { }; smartdeblur = libsForQt5.callPackage ../applications/graphics/smartdeblur { }; From dc8feaa9b5f98c40ac1ce0b2e73170281effe915 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 30 Sep 2023 03:21:37 +0200 Subject: [PATCH 10/28] geogram: 1.8.3 -> 1.8.6 Diff: https://github.com/BrunoLevy/geogram/compare/v1.8.3...v1.8.6 --- .../development/libraries/geogram/default.nix | 14 +-- .../fix-cmake-install-destination.patch | 92 ------------------- 2 files changed, 7 insertions(+), 99 deletions(-) delete mode 100644 pkgs/development/libraries/geogram/fix-cmake-install-destination.patch diff --git a/pkgs/development/libraries/geogram/default.nix b/pkgs/development/libraries/geogram/default.nix index 1079f89d9328..619b5dfcdf57 100644 --- a/pkgs/development/libraries/geogram/default.nix +++ b/pkgs/development/libraries/geogram/default.nix @@ -13,17 +13,17 @@ let testdata = fetchFromGitHub { owner = "BrunoLevy"; repo = "geogram.data"; - rev = "8fd071a560bd6859508f1710981386d0b2ba01b1"; - hash = "sha256-jMUGX6/uYIZMVwXxTAAGUaOXqF+NrFQqgmIPCD58cwM="; + rev = "43dd49054a78d9b3fb8ef729f48ab47a272c718c"; + hash = "sha256-F2Lyt4nEOczVYLz6WLny+YrsxNwREBGPkProN8NHFN4="; }; in stdenv.mkDerivation rec { pname = "geogram"; - version = "1.8.3"; + version = "1.8.6"; src = fetchurl { url = "https://github.com/BrunoLevy/geogram/releases/download/v${version}/geogram_${version}.tar.gz"; - hash = "sha256-91q0M/4kAr0UoWXOQIEYS1VbgEQ/F4EBOfJE9Vr1bnw="; + hash = "sha256-Xqha5HVqD2Ao0z++RKcQdMZUmtMb5eZ1DMJEVrfNUzE="; }; outputs = [ "bin" "lib" "dev" "doc" "out" ]; @@ -59,9 +59,6 @@ stdenv.mkDerivation rec { ]; patches = [ - # See https://github.com/BrunoLevy/geogram/pull/76 - ./fix-cmake-install-destination.patch - # This patch replaces the bundled (outdated) zlib with our zlib # Should be harmless, but if there are issues this patch can also be removed # Also check https://github.com/BrunoLevy/geogram/issues/49 for progress @@ -93,6 +90,9 @@ stdenv.mkDerivation rec { # Skip slow RVD test "RVD" + + # Flaky as of 1.8.5 (SIGSEGV, possibly a use-after-free) + "Delaunay" ]; in '' diff --git a/pkgs/development/libraries/geogram/fix-cmake-install-destination.patch b/pkgs/development/libraries/geogram/fix-cmake-install-destination.patch deleted file mode 100644 index 1dba488e8de3..000000000000 --- a/pkgs/development/libraries/geogram/fix-cmake-install-destination.patch +++ /dev/null @@ -1,92 +0,0 @@ ---- a/cmake/utilities.cmake 1970-01-01 01:00:01.000000000 +0100 -+++ b/cmake/utilities.cmake 2023-03-09 19:28:16.556251981 +0100 -@@ -241,9 +241,9 @@ - install( - TARGETS ${ARGN} - COMPONENT runtime -- RUNTIME DESTINATION bin -- LIBRARY DESTINATION lib -- ARCHIVE DESTINATION lib -+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - ) - endfunction() - -@@ -270,9 +270,9 @@ - install( - TARGETS ${ARGN} - COMPONENT ${component} -- RUNTIME DESTINATION bin -- LIBRARY DESTINATION lib -- ARCHIVE DESTINATION lib -+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} -+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} -+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - ) - endforeach() - endfunction() ---- a/src/lib/geogram/CMakeLists.txt 1970-01-01 01:00:01.000000000 +0100 -+++ b/src/lib/geogram/CMakeLists.txt 2023-03-09 20:29:12.346780432 +0100 -@@ -76,7 +76,7 @@ - # Install include files for the standard devkit - install( - DIRECTORY api -- DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram -+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${VORPALINE_INCLUDE_SUBPATH}/geogram - COMPONENT devkit - FILES_MATCHING PATTERN *.h - ) -@@ -84,7 +84,7 @@ - # Install include files for the full devkit - install( - DIRECTORY . -- DESTINATION include/${VORPALINE_INCLUDE_SUBPATH}/geogram -+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${VORPALINE_INCLUDE_SUBPATH}/geogram - COMPONENT devkit-full - FILES_MATCHING PATTERN *.h - # Exclude all files related to licensing -@@ -93,7 +93,7 @@ - - install( - FILES "${PROJECT_BINARY_DIR}/geogram${VORPALINE_VERSION_MAJOR}.pc" -- DESTINATION lib${LIB_SUFFIX}/pkgconfig -+ DESTINATION ${GEOGRAM_INSTALL_PKGCONFIG_DIR} - ) - - ---- a/CMakeLists.txt 1970-01-01 01:00:01.000000000 +0100 -+++ b/CMakeLists.txt 2023-03-09 20:40:20.075218356 +0100 -@@ -158,7 +158,7 @@ - - # FindGeogram.cmake - --install(FILES cmake/FindGeogram.cmake DESTINATION lib/cmake/modules COMPONENT devkit) -+install(FILES cmake/FindGeogram.cmake DESTINATION ${GEOGRAM_INSTALL_CMAKE_DIR} COMPONENT devkit) - - # Configure CPack - ---- a/doc/CMakeLists.txt 1970-01-01 01:00:01.000000000 +0100 -+++ b/doc/CMakeLists.txt 2023-03-09 21:12:04.386327003 +0100 -@@ -25,14 +25,14 @@ - - # Install documentation - if(GEOGRAM_WITH_VORPALINE) -- install(FILES README.txt DESTINATION doc COMPONENT runtime) -- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt DESTINATION doc COMPONENT runtime OPTIONAL) -+ install(FILES README.txt DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT runtime) -+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/LICENSE.txt DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT runtime OPTIONAL) - endif() - -- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION.txt DESTINATION doc/geogram COMPONENT runtime OPTIONAL) -- -- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit/html DESTINATION doc/devkit COMPONENT doc-devkit OPTIONAL) -- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit-full/html DESTINATION doc/devkit COMPONENT doc-devkit-full OPTIONAL) -- install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit-internal/html DESTINATION doc/devkit COMPONENT doc-devkit-internal OPTIONAL) -+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION.txt DESTINATION ${CMAKE_INSTALL_DOCDIR}/geogram COMPONENT runtime OPTIONAL) -+ -+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit/html DESTINATION ${CMAKE_INSTALL_DOCDIR}/devkit COMPONENT doc-devkit OPTIONAL) -+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit-full/html DESTINATION ${CMAKE_INSTALL_DOCDIR}/devkit COMPONENT doc-devkit-full OPTIONAL) -+ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/devkit-internal/html DESTINATION ${CMAKE_INSTALL_DOCDIR}/devkit COMPONENT doc-devkit-internal OPTIONAL) - - endif() From 22046dd4ede8b04b622fd4e77c7cfdc7567a001a Mon Sep 17 00:00:00 2001 From: Joshua Fern Date: Sun, 10 Dec 2023 02:56:15 -0800 Subject: [PATCH 11/28] xfce.xfce4-docklike-plugin: init at 0.4.1 --- pkgs/desktops/xfce/default.nix | 2 + .../xfce4-docklike-plugin/default.nix | 39 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 pkgs/desktops/xfce/panel-plugins/xfce4-docklike-plugin/default.nix diff --git a/pkgs/desktops/xfce/default.nix b/pkgs/desktops/xfce/default.nix index 4aec72ea334b..94ca82b4388b 100644 --- a/pkgs/desktops/xfce/default.nix +++ b/pkgs/desktops/xfce/default.nix @@ -122,6 +122,8 @@ makeScopeWithSplicing' { xfce4-dockbarx-plugin = callPackage ./panel-plugins/xfce4-dockbarx-plugin { }; + xfce4-docklike-plugin = callPackage ./panel-plugins/xfce4-docklike-plugin { }; + xfce4-embed-plugin = callPackage ./panel-plugins/xfce4-embed-plugin { }; xfce4-eyes-plugin = callPackage ./panel-plugins/xfce4-eyes-plugin { }; diff --git a/pkgs/desktops/xfce/panel-plugins/xfce4-docklike-plugin/default.nix b/pkgs/desktops/xfce/panel-plugins/xfce4-docklike-plugin/default.nix new file mode 100644 index 000000000000..7daabd115d0b --- /dev/null +++ b/pkgs/desktops/xfce/panel-plugins/xfce4-docklike-plugin/default.nix @@ -0,0 +1,39 @@ +{ lib +, mkXfceDerivation +, glib +, gtk3 +, libxfce4ui +, libxfce4util +, xfce4-panel +, xfconf +, libwnck +, exo +}: + +mkXfceDerivation { + category = "panel-plugins"; + pname = "xfce4-docklike-plugin"; + version = "0.4.1"; + sha256 = "sha256-BKxd2TFEbRHeFy/dC2Wx5ppErsi7d2m7JicFCcZbjTo="; + + buildInputs = [ + glib + gtk3 + libxfce4ui + libxfce4util + xfce4-panel + xfconf + libwnck + exo + ]; + + NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; + + meta = with lib; { + homepage = "https://docs.xfce.org/panel-plugins/xfce4-docklike-plugin/start"; + description = "A modern, minimalist taskbar for Xfce"; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ ] ++ teams.xfce.members; + }; +} From 91dc77adaa237d2c93fa415b574a2b84a7e349b3 Mon Sep 17 00:00:00 2001 From: GenericNerdyUsername Date: Sun, 10 Dec 2023 16:15:50 +0000 Subject: [PATCH 12/28] jetbrains.jdk: fix docs --- pkgs/development/compilers/jetbrains-jdk/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/jetbrains-jdk/default.nix b/pkgs/development/compilers/jetbrains-jdk/default.nix index 0a76f0ae31da..1e6b86b17b8e 100644 --- a/pkgs/development/compilers/jetbrains-jdk/default.nix +++ b/pkgs/development/compilers/jetbrains-jdk/default.nix @@ -96,6 +96,7 @@ openjdk17.overrideAttrs (oldAttrs: rec { '' runHook preInstall + mv build/linux-${cpu}-server-${buildType}/images/jdk/man build/linux-${cpu}-server-${buildType}/images/${jbrsdkDir} rm -rf build/linux-${cpu}-server-${buildType}/images/jdk mv build/linux-${cpu}-server-${buildType}/images/${jbrsdkDir} build/linux-${cpu}-server-${buildType}/images/jdk '' + oldAttrs.installPhase + "runHook postInstall"; From 39899cea55fac53be1f77693a2048de69122f586 Mon Sep 17 00:00:00 2001 From: Theodor-Alexandru Irimia Date: Sun, 10 Dec 2023 22:48:40 +0100 Subject: [PATCH 13/28] maintainers: add tirimia --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index cb4c01341c65..8452cc756847 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -18365,6 +18365,11 @@ github = "NoneTirex"; githubId = 26038207; }; + tirimia = { + name = "Theodor-Alexandru Irimia"; + github = "tirimia"; + githubId = 11174371; + }; titanous = { email = "jonathan@titanous.com"; github = "titanous"; From 108b82645e4d89aa45f48b9d48c21a6b91e46b8a Mon Sep 17 00:00:00 2001 From: Michael Evans Date: Sun, 3 Dec 2023 15:33:32 +0200 Subject: [PATCH 14/28] python3Packages.grafanalib: init at 0.7.0 --- .../python-modules/grafanalib/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/grafanalib/default.nix diff --git a/pkgs/development/python-modules/grafanalib/default.nix b/pkgs/development/python-modules/grafanalib/default.nix new file mode 100644 index 000000000000..6dcb88a32f3d --- /dev/null +++ b/pkgs/development/python-modules/grafanalib/default.nix @@ -0,0 +1,48 @@ +{ attrs +, buildPythonPackage +, fetchFromGitHub +, fetchPypi +, lib +, pytestCheckHook +, pythonOlder +, setuptools +}: + +buildPythonPackage rec { + pname = "grafanalib"; + version = "0.7.0"; + pyproject = true; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "weaveworks"; + repo = pname; + rev = "v${version}"; + hash = "sha256-yQIDAQMG84onYWqBxIl5IXSaBlJBO/uUIy4CVvoFyGk="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + attrs + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "grafanalib" + ]; + + meta = with lib; { + description = "Library for building Grafana dashboards"; + homepage = "https://github.com/weaveworks/grafanalib/"; + changelog = "https://github.com/weaveworks/grafanalib/releases/tag/v${version}"; + license = licenses.asl20; + maintainers = with maintainers; [ michaelgrahamevans ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9ace4959843c..a70ead09c9d1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4790,6 +4790,8 @@ self: super: with self; { gradio-client = callPackage ../development/python-modules/gradio/client.nix { }; + grafanalib = callPackage ../development/python-modules/grafanalib/default.nix { }; + grammalecte = callPackage ../development/python-modules/grammalecte { }; grandalf = callPackage ../development/python-modules/grandalf { }; From bc98e1c4577cd71a13dd08abf75df905b0057647 Mon Sep 17 00:00:00 2001 From: Theodor-Alexandru Irimia Date: Mon, 11 Dec 2023 14:19:03 +0100 Subject: [PATCH 15/28] python3Packages.unix-ar: init at 0.2.1 --- .../python-modules/unix-ar/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/unix-ar/default.nix diff --git a/pkgs/development/python-modules/unix-ar/default.nix b/pkgs/development/python-modules/unix-ar/default.nix new file mode 100644 index 000000000000..d77c542b3a9e --- /dev/null +++ b/pkgs/development/python-modules/unix-ar/default.nix @@ -0,0 +1,27 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +}: + +buildPythonPackage rec { + pname = "unix-ar"; + version = "0.2.1"; + format = "wheel"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit format version; + pname = "unix_ar"; + hash = "sha256-Kstxi8Ewi/gOW52iYU2CQswv475M2LL9Rxm84Ymq/PE="; + }; + + meta = with lib; { + description = "AR file handling for Python (including .deb files)"; + homepage = "https://github.com/getninjas/unix_ar"; + license = licenses.bsd3; + maintainers = with maintainers; [ tirimia ]; + platforms = with platforms; linux ++ darwin; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 426de38c0db1..22aaa512f5eb 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15455,6 +15455,8 @@ self: super: with self; { universal-silabs-flasher = callPackage ../development/python-modules/universal-silabs-flasher { }; + unix-ar = callPackage ../development/python-modules/unix-ar { }; + unpaddedbase64 = callPackage ../development/python-modules/unpaddedbase64 { }; unrardll = callPackage ../development/python-modules/unrardll { }; From f6760dd12c5040031ad2d0cc53221349bb8a7cf2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 12 Dec 2023 07:22:06 +0000 Subject: [PATCH 16/28] kodiPackages.future: 0.18.2+matrix.1 -> 0.18.3+matrix.1 --- pkgs/applications/video/kodi/addons/future/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/kodi/addons/future/default.nix b/pkgs/applications/video/kodi/addons/future/default.nix index 30a1db9d6b2b..c8078ff36d5a 100644 --- a/pkgs/applications/video/kodi/addons/future/default.nix +++ b/pkgs/applications/video/kodi/addons/future/default.nix @@ -3,11 +3,11 @@ buildKodiAddon rec { pname = "future"; namespace = "script.module.future"; - version = "0.18.2+matrix.1"; + version = "0.18.3+matrix.1"; src = fetchzip { url = "https://mirrors.kodi.tv/addons/nexus/${namespace}/${namespace}-${version}.zip"; - sha256 = "sha256-QBG7V70Dwmfq8ISILxGNvtmQT9fJp2e5gs2C9skRwIw="; + sha256 = "sha256-jKO2Qxi54z6UiCmMkxU+2pog40K2yb8/KYbNPFYuSsQ="; }; passthru = { From 35ae7866e333a8cff489508c72c12f1ca4ecbfb9 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 12 Dec 2023 07:49:21 +0000 Subject: [PATCH 17/28] kodiPackages.six: 1.15.0+matrix.1 -> 1.16.0+matrix.1 --- pkgs/applications/video/kodi/addons/six/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/kodi/addons/six/default.nix b/pkgs/applications/video/kodi/addons/six/default.nix index 5933c544735a..5ce4817eae3b 100644 --- a/pkgs/applications/video/kodi/addons/six/default.nix +++ b/pkgs/applications/video/kodi/addons/six/default.nix @@ -3,11 +3,11 @@ buildKodiAddon rec { pname = "six"; namespace = "script.module.six"; - version = "1.15.0+matrix.1"; + version = "1.16.0+matrix.1"; src = fetchzip { url = "https://mirrors.kodi.tv/addons/nexus/${namespace}/${namespace}-${version}.zip"; - sha256 = "sha256-zjbPAEB39dWpNsgoBqCKpLLXmqBI/v0wnnbCTRhYGzE="; + sha256 = "sha256-d6BNpnTg6K7NPX3uWp5X0rog33C+B7YoAtLH/CrUYno="; }; passthru.updateScript = addonUpdateScript { From 46a8192d290e6642690fb07214f83259f3a39aef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Tue, 12 Dec 2023 15:41:39 +0100 Subject: [PATCH 18/28] fx-cast-bridge: Pin nodejs to version 18 Pins the nodejs to version 18 to fix the build. --- pkgs/tools/misc/fx-cast-bridge/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/fx-cast-bridge/default.nix b/pkgs/tools/misc/fx-cast-bridge/default.nix index 7af4f5dac48d..722905df951f 100644 --- a/pkgs/tools/misc/fx-cast-bridge/default.nix +++ b/pkgs/tools/misc/fx-cast-bridge/default.nix @@ -1,9 +1,11 @@ -{ lib, buildNpmPackage, fetchFromGitHub, avahi-compat, nodejs, python3 }: +{ lib, buildNpmPackage, fetchFromGitHub, avahi-compat, nodejs_18, python3 }: buildNpmPackage rec { pname = "fx-cast-bridge"; version = "0.3.1"; + nodejs = nodejs_18; + src = fetchFromGitHub { owner = "hensm"; repo = "fx_cast"; From f4ec113ce3300b2bab44ab071a09bbade9121168 Mon Sep 17 00:00:00 2001 From: kashw2 Date: Wed, 13 Dec 2023 07:38:51 +1000 Subject: [PATCH 19/28] supabase-cli: 1.112.0 -> 1.123.6 --- pkgs/development/tools/supabase-cli/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/supabase-cli/default.nix b/pkgs/development/tools/supabase-cli/default.nix index 77217a8acda5..4e502911fb73 100644 --- a/pkgs/development/tools/supabase-cli/default.nix +++ b/pkgs/development/tools/supabase-cli/default.nix @@ -9,16 +9,16 @@ buildGoModule rec { pname = "supabase-cli"; - version = "1.112.0"; + version = "1.123.6"; src = fetchFromGitHub { owner = "supabase"; repo = "cli"; rev = "v${version}"; - hash = "sha256-2Cw+TQMKWwjWUgsif+Ot9OZ1kIlancoT4TfJ343mnLY="; + hash = "sha256-xDtFSUAETUgSvV5X1PU2hLfQKIxhSkj4D7vSvNRJqTY="; }; - vendorHash = "sha256-vseD7Oov7Gi1lEnF1hEAChoPByFa8T82njWBINC/Ea4="; + vendorHash = "sha256-PdWGqv0BekvutUAUNFMQuVUEnx9r22FjzBPoIdIRpdI="; ldflags = [ "-s" From dd3f20b67e298243edf558e43e1640c11efebc65 Mon Sep 17 00:00:00 2001 From: Leonardo Romor Date: Tue, 24 Oct 2023 21:21:29 +0200 Subject: [PATCH 20/28] libdicom: init at 1.0.5 --- .../libraries/libdicom/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/development/libraries/libdicom/default.nix diff --git a/pkgs/development/libraries/libdicom/default.nix b/pkgs/development/libraries/libdicom/default.nix new file mode 100644 index 000000000000..cb4d68121ef5 --- /dev/null +++ b/pkgs/development/libraries/libdicom/default.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, fetchFromGitHub +, uthash +, meson +, ninja +, pkg-config +, check +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "libdicom"; + version = "1.0.5"; + + src = fetchFromGitHub { + owner = "ImagingDataCommons"; + repo = "libdicom"; + rev = "v${finalAttrs.version}"; + sha256 = "sha256-9n0Gp9+fmTM/shgWC8zpwt1pic9BrvDubOt7f+ZDMeE="; + }; + + buildInputs = [ uthash ]; + + nativeBuildInputs = [ meson ninja pkg-config ] + ++ lib.optionals (finalAttrs.finalPackage.doCheck) [ check ]; + + mesonBuildType = "release"; + + mesonFlags = lib.optionals (!finalAttrs.finalPackage.doCheck) [ "-Dtests=false" ]; + + doCheck = true; + + meta = with lib; { + description = "C library for reading DICOM files"; + homepage = "https://github.com/ImagingDataCommons/libdicom"; + license = licenses.mit; + maintainers = with maintainers; [ lromor ]; + platforms = platforms.unix; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b8ab214cc2cc..8a89a8208b7b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22668,6 +22668,8 @@ with pkgs; libdex = callPackage ../development/libraries/libdex { }; + libdicom = callPackage ../development/libraries/libdicom { }; + libdigidocpp = callPackage ../development/libraries/libdigidocpp { }; libdiscid = callPackage ../development/libraries/libdiscid { }; From 82fcf2589b7ac8430eb2de4fe91db6b502aad889 Mon Sep 17 00:00:00 2001 From: netali Date: Thu, 14 Dec 2023 17:09:02 +0100 Subject: [PATCH 21/28] vbam: 2.1.7 -> 2.1.8 --- pkgs/applications/emulators/vbam/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/emulators/vbam/default.nix b/pkgs/applications/emulators/vbam/default.nix index b090864d0d00..6eae243ce3b4 100644 --- a/pkgs/applications/emulators/vbam/default.nix +++ b/pkgs/applications/emulators/vbam/default.nix @@ -18,12 +18,12 @@ stdenv.mkDerivation rec { pname = "visualboyadvance-m"; - version = "2.1.7"; + version = "2.1.8"; src = fetchFromGitHub { owner = "visualboyadvance-m"; repo = "visualboyadvance-m"; rev = "v${version}"; - sha256 = "sha256-XMb4+YPH1xgbiRC4vmooxALmjX2QURLWOGOwepdWI7o="; + sha256 = "sha256-r/LF9mYwKPwkIidMAb4k4B6Q2UYjW0TucKI5LJ2gjl0="; }; nativeBuildInputs = [ cmake pkg-config ]; From 24b57708c68bc5b0e8e1af47bff71abab6bd8a91 Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 9 Dec 2023 20:08:04 +0000 Subject: [PATCH 22/28] dino: support cross compilation --- .../networking/instant-messengers/dino/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/networking/instant-messengers/dino/default.nix b/pkgs/applications/networking/instant-messengers/dino/default.nix index 83bf99b828d1..879314a97f0e 100644 --- a/pkgs/applications/networking/instant-messengers/dino/default.nix +++ b/pkgs/applications/networking/instant-messengers/dino/default.nix @@ -1,4 +1,5 @@ { lib, stdenv, fetchFromGitHub +, buildPackages , vala, cmake, ninja, wrapGAppsHook, pkg-config, gettext , gobject-introspection, glib, gdk-pixbuf, gtk4, glib-networking , libadwaita @@ -86,6 +87,10 @@ stdenv.mkDerivation rec { "-DVERSION_FOUND=true" "-DVERSION_IS_RELEASE=true" "-DVERSION_FULL=${version}" + "-DXGETTEXT_EXECUTABLE=${lib.getBin buildPackages.gettext}/bin/xgettext" + "-DMSGFMT_EXECUTABLE=${lib.getBin buildPackages.gettext}/bin/msgfmt" + "-DGLIB_COMPILE_RESOURCES_EXECUTABLE=${lib.getDev buildPackages.glib}/bin/glib-compile-resources" + "-DSOUP_VERSION=${lib.versions.major libsoup.version}" ]; # Undefined symbols for architecture arm64: "_gpg_strerror" From d832b1197bb0327edc0d972d527a8c73deb3cb62 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 14 Dec 2023 19:20:33 +0100 Subject: [PATCH 23/28] nixos/doc: include section for 24.05 People are actively writing release notes already and with this it's ensured that the contents are actually valid. Also, when writing release notes for something, I'd like to be able to see a preview. --- nixos/doc/manual/release-notes/release-notes.md | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/doc/manual/release-notes/release-notes.md b/nixos/doc/manual/release-notes/release-notes.md index 3f926fb21a5c..0514a1b0044a 100644 --- a/nixos/doc/manual/release-notes/release-notes.md +++ b/nixos/doc/manual/release-notes/release-notes.md @@ -3,6 +3,7 @@ This section lists the release notes for each stable version of NixOS and current unstable revision. ```{=include=} sections +rl-2405.section.md rl-2311.section.md rl-2305.section.md rl-2211.section.md From 5f8f3c1250888834410e034c6b5c03ec45821caf Mon Sep 17 00:00:00 2001 From: Olli Helenius Date: Thu, 14 Dec 2023 21:06:17 +0200 Subject: [PATCH 24/28] signald: build with jdk17 --- .../networking/instant-messengers/signald/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/signald/default.nix b/pkgs/applications/networking/instant-messengers/signald/default.nix index b15dbbb92bdb..2f362a4942c9 100644 --- a/pkgs/applications/networking/instant-messengers/signald/default.nix +++ b/pkgs/applications/networking/instant-messengers/signald/default.nix @@ -16,6 +16,8 @@ let sha256 = "sha256-EofgwZSDp2ZFhlKL2tHfzMr3EsidzuY4pkRZrV2+1bA="; }; + gradleWithJdk = gradle.override { java = jdk17_headless; }; + jre' = jre_minimal.override { jdk = jdk17_headless; # from https://gitlab.com/signald/signald/-/blob/0.23.0/build.gradle#L173 @@ -39,7 +41,7 @@ let deps = stdenv.mkDerivation { pname = "${pname}-deps"; inherit src version; - nativeBuildInputs = [ gradle perl ]; + nativeBuildInputs = [ gradleWithJdk perl ]; patches = [ ./0001-Fetch-buildconfig-during-gradle-build-inside-Nix-FOD.patch ]; buildPhase = '' export GRADLE_USER_HOME=$(mktemp -d) @@ -118,7 +120,7 @@ in stdenv.mkDerivation { runHook postInstall ''; - nativeBuildInputs = [ git gradle makeWrapper ]; + nativeBuildInputs = [ git gradleWithJdk makeWrapper ]; doCheck = true; From df7672c36c8e1998c2f57b56ecc33285c79286e7 Mon Sep 17 00:00:00 2001 From: Theodor-Alexandru Irimia Date: Mon, 11 Dec 2023 14:20:28 +0100 Subject: [PATCH 25/28] aws-gate: init at 0.11.3 --- .../aw/aws-gate/disable-bootstrap.patch | 51 +++++++++++++++++ pkgs/by-name/aw/aws-gate/package.nix | 55 +++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 pkgs/by-name/aw/aws-gate/disable-bootstrap.patch create mode 100644 pkgs/by-name/aw/aws-gate/package.nix diff --git a/pkgs/by-name/aw/aws-gate/disable-bootstrap.patch b/pkgs/by-name/aw/aws-gate/disable-bootstrap.patch new file mode 100644 index 000000000000..63b6ebce3b8a --- /dev/null +++ b/pkgs/by-name/aw/aws-gate/disable-bootstrap.patch @@ -0,0 +1,51 @@ +diff --git a/aws_gate/cli.py b/aws_gate/cli.py +index ac37c2f..9743415 100644 +--- a/aws_gate/cli.py ++++ b/aws_gate/cli.py +@@ -7,7 +7,6 @@ from marshmallow import ValidationError + from yaml.scanner import ScannerError + + from aws_gate import __version__, __description__ +-from aws_gate.bootstrap import bootstrap + from aws_gate.config import load_config_from_files + from aws_gate.constants import ( + SUPPORTED_KEY_TYPES, +@@ -59,10 +58,14 @@ def get_argument_parser(*args, **kwargs): + + # 'bootstrap' subcommand + bootstrap_parser = subparsers.add_parser( +- "bootstrap", help="Download and install session-manager-plugin" ++ "bootstrap", ++ help="Download and install session-manager-plugin (disabled by nix)", + ) + bootstrap_parser.add_argument( +- "-f", "--force", action="store_true", help="Forces bootstrap operation" ++ "-f", ++ "--force", ++ action="store_true", ++ help="Forces bootstrap operation (disabled by nix)", + ) + + # 'exec' subcommand +@@ -268,7 +271,9 @@ def main(args=None, argument_parser=None): + logger.debug('Using AWS profile "%s" in region "%s"', profile, region) + + if args.subcommand == "bootstrap": +- bootstrap(force=args.force) ++ print( ++ f"The SSM Plugin will not be downloaded as aws-gate was installed from nixpkgs and the plugin comes pre-bundled. The '--force' flag will not override this behavior." ++ ) + elif args.subcommand == "exec": + exec( + config=config, +diff --git a/requirements/requirements.txt b/requirements/requirements.txt +index 50b203e..8c3496f 100644 +--- a/requirements/requirements.txt ++++ b/requirements/requirements.txt +@@ -3,5 +3,4 @@ cryptography==39.0.2 + marshmallow==3.19.0 + packaging==23.0 + PyYAML>=5.1,<6.1 +-requests==2.28.2 + unix-ar==0.2.1 + wrapt==1.15.0 \ No newline at end of file diff --git a/pkgs/by-name/aw/aws-gate/package.nix b/pkgs/by-name/aw/aws-gate/package.nix new file mode 100644 index 000000000000..b1606d3db080 --- /dev/null +++ b/pkgs/by-name/aw/aws-gate/package.nix @@ -0,0 +1,55 @@ +{ lib +, fetchFromGitHub +, installShellFiles +, python3Packages +, ssm-session-manager-plugin +}: + +python3Packages.buildPythonApplication rec { + pname = "aws-gate"; + version = "0.11.3"; + pyproject = true; + + src = fetchFromGitHub { + owner = "xen0l"; + repo = pname; + rev = version; + hash = "sha256-9w2jP4s1HXf1gYiXX05Dt2iXt0bR0U48yc8h9T5M+EQ="; + }; + + patches = [ + ./disable-bootstrap.patch + ]; + + postPatch = '' + rm aws_gate/bootstrap.py tests/unit/test_bootstrap.py + ''; + + nativeBuildInputs = [ + python3Packages.setuptools + python3Packages.wheel + installShellFiles + ]; + + propagatedBuildInputs = [ ssm-session-manager-plugin ] ++ builtins.attrValues { + inherit (python3Packages) marshmallow boto3 pyyaml wrapt cryptography; + }; + + postInstall = '' + installShellCompletion --bash completions/bash/aws-gate + installShellCompletion --zsh completions/zsh/_aws-gate + ''; + + checkPhase = '' + $out/bin/${pname} --version + ''; + + meta = with lib; { + description = "Better AWS SSM Session manager CLI client"; + homepage = "https://github.com/xen0l/aws-gate"; + license = licenses.bsd3; + maintainers = with maintainers; [ tirimia ]; + platforms = with platforms; linux ++ darwin; + mainProgram = pname; + }; +} From d3843eed57b689504fa9c045932b9eed554d9596 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 14 Dec 2023 20:37:02 +0000 Subject: [PATCH 26/28] sudo: 1.9.15p2 -> 1.9.15p3 Changes: https://www.sudo.ws/releases/stable/#1.9.15p3 --- pkgs/tools/security/sudo/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/sudo/default.nix b/pkgs/tools/security/sudo/default.nix index 40056ec72eb8..0ad8255a201a 100644 --- a/pkgs/tools/security/sudo/default.nix +++ b/pkgs/tools/security/sudo/default.nix @@ -14,11 +14,11 @@ stdenv.mkDerivation rec { pname = "sudo"; - version = "1.9.15p2"; + version = "1.9.15p3"; src = fetchurl { url = "https://www.sudo.ws/dist/${pname}-${version}.tar.gz"; - hash = "sha256-GZwM2/p+/P/6nIhoSo4vsgamK3CjFlB+SpHInIc7vMg="; + hash = "sha256-eMh6HM7EL3oJUAL+KxR4pRBgNjWeNiuGdTSo4AVqBJQ="; }; prePatch = '' From 96c1f0e798320e57f887006a5d01ccff9866a661 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 14 Nov 2023 22:40:04 +0200 Subject: [PATCH 27/28] python3.pkgs.reuse: make a python library MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit reuse actually can also be used as a python library: https://github.com/fsfe/reuse-tool/blob/main/src/reuse/__init__.py#L11-L12 This change allows composing a python with `reuse` in `PYTHONPATH`: ``` $(nix-build -E "with import ./. {}; (python3.withPackages (ps: [ps.reuse]))")/bin/python Python 3.11.5 (main, Aug 24 2023, 12:23:19) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import reuse >>> reuse.__doc__ 'reuse is a tool for compliance with the REUSE recommendations.\n\nAlthough the API is documented, it is **NOT** guaranteed stable between minor or\neven patch releases. The semantic versioning of this program pertains\nexclusively to the reuse CLI command. If you want to use reuse as a Python\nlibrary, you should pin reuse to an exact version.\n\nHaving given the above disclaimer, the API has been relatively stable\nnevertheless, and we (the maintainers) do make some efforts to not needlessly\nchange the public API.\n' ``` vs before: ``` ❯ $(nix-build -E "with import ./. {}; (python3.withPackages (_: [ reuse]))")/bin/python Python 3.11.5 (main, Aug 24 2023, 12:23:19) [GCC 12.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import reuse Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'reuse' ``` --- .../python-modules}/reuse/default.nix | 22 ++++++++++++++----- pkgs/top-level/all-packages.nix | 2 +- pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 20 insertions(+), 6 deletions(-) rename pkgs/{tools/package-management => development/python-modules}/reuse/default.nix (73%) diff --git a/pkgs/tools/package-management/reuse/default.nix b/pkgs/development/python-modules/reuse/default.nix similarity index 73% rename from pkgs/tools/package-management/reuse/default.nix rename to pkgs/development/python-modules/reuse/default.nix index 38e79765aafb..572c29931ad3 100644 --- a/pkgs/tools/package-management/reuse/default.nix +++ b/pkgs/development/python-modules/reuse/default.nix @@ -1,6 +1,16 @@ -{ lib, python3Packages, fetchFromGitHub }: +{ lib +, buildPythonPackage +, fetchFromGitHub +, poetry-core +, binaryornot +, boolean-py +, debian +, jinja2 +, license-expression +, pytestCheckHook +}: -python3Packages.buildPythonApplication rec { +buildPythonPackage rec { pname = "reuse"; version = "2.1.0"; format = "pyproject"; @@ -12,11 +22,11 @@ python3Packages.buildPythonApplication rec { hash = "sha256-MEQiuBxe/ctHlAnmLhQY4QH62uAcHb7CGfZz+iZCRSk="; }; - nativeBuildInputs = with python3Packages; [ + nativeBuildInputs = [ poetry-core ]; - propagatedBuildInputs = with python3Packages; [ + propagatedBuildInputs = [ binaryornot boolean-py debian @@ -24,13 +34,15 @@ python3Packages.buildPythonApplication rec { license-expression ]; - nativeCheckInputs = with python3Packages; [ pytestCheckHook ]; + nativeCheckInputs = [ pytestCheckHook ]; disabledTestPaths = [ # pytest wants to execute the actual source files for some reason, which fails with ImportPathMismatchError() "src/reuse" ]; + pythonImportsCheck = [ "reuse" ]; + meta = with lib; { description = "A tool for compliance with the REUSE Initiative recommendations"; homepage = "https://github.com/fsfe/reuse-tool"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 98b8e880a79c..065be3200f7b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12774,7 +12774,7 @@ with pkgs; restool = callPackage ../os-specific/linux/restool { }; - reuse = callPackage ../tools/package-management/reuse { }; + reuse = with python3.pkgs; toPythonApplication reuse; reveal-md = callPackage ../tools/text/reveal-md { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c67a151c8064..d3463512dce0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12486,6 +12486,8 @@ self: super: with self; { returns = callPackage ../development/python-modules/returns { }; + reuse = callPackage ../development/python-modules/reuse { }; + rfc3339 = callPackage ../development/python-modules/rfc3339 { }; rfc3339-validator = callPackage ../development/python-modules/rfc3339-validator { }; From 3f31bfcd6501288c4606991026388ef985d80d36 Mon Sep 17 00:00:00 2001 From: hulr <> Date: Thu, 14 Dec 2023 22:47:10 +0100 Subject: [PATCH 28/28] setzer: 63 -> 65 --- pkgs/applications/editors/setzer/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/setzer/default.nix b/pkgs/applications/editors/setzer/default.nix index b299d1be0008..e2e7638550f9 100644 --- a/pkgs/applications/editors/setzer/default.nix +++ b/pkgs/applications/editors/setzer/default.nix @@ -20,13 +20,13 @@ python3.pkgs.buildPythonApplication rec { pname = "setzer"; - version = "63"; + version = "65"; src = fetchFromGitHub { owner = "cvfosammmm"; repo = "Setzer"; rev = "v${version}"; - hash = "sha256-/DAd3Neypx/H9mPVC9VkvpdQhLRNIBoR8GXxuIdJF0Y="; + hash = "sha256-5Hpj/RkD11bNcr9/gQG0Y7BNMsh1BGZQiN4IMbI4osc="; }; format = "other";