From 0c4d481dbc2c5f631656b128d5d5261c1c02e5eb Mon Sep 17 00:00:00 2001 From: Benjamin Asbach Date: Sun, 24 Jul 2022 15:20:54 +0400 Subject: [PATCH 01/36] openjdk17: 17.0.3+7 -> 17.0.4+8 --- pkgs/development/compilers/openjdk/17.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/openjdk/17.nix b/pkgs/development/compilers/openjdk/17.nix index 45acc7f1ce98..2f94abab2804 100644 --- a/pkgs/development/compilers/openjdk/17.nix +++ b/pkgs/development/compilers/openjdk/17.nix @@ -11,8 +11,8 @@ let version = { feature = "17"; - interim = ".0.3"; - build = "7"; + interim = ".0.4"; + build = "8"; }; openjdk = stdenv.mkDerivation { @@ -23,7 +23,7 @@ let owner = "openjdk"; repo = "jdk${version.feature}u"; rev = "jdk-${version.feature}${version.interim}+${version.build}"; - sha256 = "qxiKz8HCNZXFdfgfiA16q5z0S65cZE/u7e+QxLlplWo="; + sha256 = "drbljLz82ZyK29lIDLPqCkwqpBdgU/7zCTZ0ceeb1SI="; }; nativeBuildInputs = [ pkg-config autoconf unzip ]; From 40e13156af02f27c40b5020136e39790e4216fc9 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 27 Jul 2022 04:53:42 +0000 Subject: [PATCH 02/36] libyang: 2.0.194 -> 2.0.231 --- pkgs/development/libraries/libyang/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libyang/default.nix b/pkgs/development/libraries/libyang/default.nix index 8cc4ad06e356..45c535d81bf3 100644 --- a/pkgs/development/libraries/libyang/default.nix +++ b/pkgs/development/libraries/libyang/default.nix @@ -15,13 +15,13 @@ stdenv.mkDerivation rec { pname = "libyang"; - version = "2.0.194"; + version = "2.0.231"; src = fetchFromGitHub { owner = "CESNET"; repo = "libyang"; rev = "v${version}"; - sha256 = "sha256-5dgSBXJIeGXT+jGqT2MFqtsEFcIn+ULjybnyXz+95Gk="; + sha256 = "sha256-IntucM8ABJsJNH7XnZ59McwmfSIimclrWzSz4NKdMrE="; }; nativeBuildInputs = [ From 911880f76310219fa8da24268060a209379d4710 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Sat, 13 Aug 2022 09:10:47 -0300 Subject: [PATCH 03/36] xfce.xfdashboard: 0.9.5 -> 1.0.0 --- pkgs/desktops/xfce/applications/xfdashboard/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/desktops/xfce/applications/xfdashboard/default.nix b/pkgs/desktops/xfce/applications/xfdashboard/default.nix index ee09d6196c78..fd92e2c92e8f 100644 --- a/pkgs/desktops/xfce/applications/xfdashboard/default.nix +++ b/pkgs/desktops/xfce/applications/xfdashboard/default.nix @@ -18,11 +18,10 @@ mkXfceDerivation { category = "apps"; pname = "xfdashboard"; - version = "0.9.5"; + version = "1.0.0"; rev-prefix = ""; - odd-unstable = false; - sha256 = "sha256-nb1zY78MUjEOJF59MYIOY1rxo3JFmzH9yTJVUGsOwOA="; + sha256 = "sha256-iC41I0u9id9irUNyjuvRRzSldF3dzRYkaxb/fgptnq4="; buildInputs = [ clutter From 72f0457ed64edf41363c32d26471a6ea03b0ccd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo?= Date: Sat, 13 Aug 2022 09:18:36 -0300 Subject: [PATCH 04/36] xfce.tumbler: 4.16.0 -> 4.16.1 --- pkgs/desktops/xfce/core/tumbler/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/xfce/core/tumbler/default.nix b/pkgs/desktops/xfce/core/tumbler/default.nix index 26a28b9b426d..ee5413fdda5a 100644 --- a/pkgs/desktops/xfce/core/tumbler/default.nix +++ b/pkgs/desktops/xfce/core/tumbler/default.nix @@ -14,9 +14,9 @@ mkXfceDerivation { category = "xfce"; pname = "tumbler"; - version = "4.16.0"; + version = "4.16.1"; - sha256 = "sha256-JLcmYjStF9obDoRHsxnZ1e9HPTeJUVKjnn5Ip1BBmPw="; + sha256 = "sha256-f2pCItNHTB0ggovIddpwNWEhaohfxD2otN8x9VfwR4k="; buildInputs = [ ffmpegthumbnailer From 3fe4330f180591b1c54c175bcf334a55ed8137ff Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 15 Aug 2022 21:20:59 +0000 Subject: [PATCH 05/36] doctl: 1.78.0 -> 1.79.0 --- pkgs/development/tools/doctl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/doctl/default.nix b/pkgs/development/tools/doctl/default.nix index 9d66b6359652..04014db912cc 100644 --- a/pkgs/development/tools/doctl/default.nix +++ b/pkgs/development/tools/doctl/default.nix @@ -2,7 +2,7 @@ buildGoModule rec { pname = "doctl"; - version = "1.78.0"; + version = "1.79.0"; vendorSha256 = null; @@ -31,7 +31,7 @@ buildGoModule rec { owner = "digitalocean"; repo = "doctl"; rev = "v${version}"; - sha256 = "sha256-mbUGfAqKC8g2K9pPNnXrpa7DmJUeGXs0KFaavDRMXdc="; + sha256 = "sha256-0tl79nVvnY2KECrfgEXQ8tOHnwEX+34uiJ/jshK5oFA="; }; meta = with lib; { From d23a9eea6f9e74c59b4024c15b262f4fb650586a Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Tue, 16 Aug 2022 15:06:43 -0400 Subject: [PATCH 06/36] geant4: move clhep to propagatedBuildInputs The include/Geant4/G4ThreeVector.hh includes CLHEP/Vector/ThreeVector.h --- pkgs/development/libraries/physics/geant4/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/physics/geant4/default.nix b/pkgs/development/libraries/physics/geant4/default.nix index 1bed1362bac6..3315e5a535ae 100644 --- a/pkgs/development/libraries/physics/geant4/default.nix +++ b/pkgs/development/libraries/physics/geant4/default.nix @@ -88,11 +88,11 @@ stdenv.mkDerivation rec { ]; dontWrapQtApps = true; # no binaries - buildInputs = [ clhep libGLU xlibsWrapper libXmu ] + buildInputs = [ libGLU xlibsWrapper libXmu ] ++ lib.optionals enableInventor [ libXpm coin3d soxt motif ] ++ lib.optionals enablePython [ boost_python python3 ]; - propagatedBuildInputs = [ expat xercesc zlib libGL ] + propagatedBuildInputs = [ clhep expat xercesc zlib libGL ] ++ lib.optionals enableXM [ motif ] ++ lib.optionals enableQt [ qtbase ]; From 26b39753a5ec6fd694ce7b16b516c1db0f866bf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 17 Aug 2022 11:00:42 +0200 Subject: [PATCH 07/36] flyctl: 0.0.372 -> 0.0.374 --- pkgs/development/web/flyctl/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/web/flyctl/default.nix b/pkgs/development/web/flyctl/default.nix index 5ecb5c5b9469..f789769ab318 100644 --- a/pkgs/development/web/flyctl/default.nix +++ b/pkgs/development/web/flyctl/default.nix @@ -2,13 +2,13 @@ buildGoModule rec { pname = "flyctl"; - version = "0.0.372"; + version = "0.0.374"; src = fetchFromGitHub { owner = "superfly"; repo = "flyctl"; rev = "v${version}"; - sha256 = "sha256-KsSaBzAjiexyhUmYEFEHhWuRROt553Lhkm1idlT8n5s="; + sha256 = "sha256-rudTGh4l0wroag0yp2YU8h5NTq+noC3bjbisyP47ktI="; }; vendorSha256 = "sha256-E6QeWu88MXMMfZAM7vMIGXpJQuduX6GTj3tXvlE9hFo="; From 6fcd1e635650b848fc02d6e19ca0163355ec524e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 17 Aug 2022 09:04:27 +0000 Subject: [PATCH 08/36] dagger: 0.2.29 -> 0.2.30 --- .../tools/continuous-integration/dagger/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/continuous-integration/dagger/default.nix b/pkgs/development/tools/continuous-integration/dagger/default.nix index bd05a0ec35c1..ea103f9fc28d 100644 --- a/pkgs/development/tools/continuous-integration/dagger/default.nix +++ b/pkgs/development/tools/continuous-integration/dagger/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "dagger"; - version = "0.2.29"; + version = "0.2.30"; src = fetchFromGitHub { owner = "dagger"; repo = "dagger"; rev = "v${version}"; - sha256 = "sha256-IfsBrsArP5PoznepNPr7ARVJWuDnFJaiSDMm8NjaLVY="; + sha256 = "sha256-D/BamTjhAopoiQoEa9rqk25sGU7ZTTkze/tIKICTx5o="; }; - vendorSha256 = "sha256-e++fNcgdQUPnbKVx7ncuf7NGc8eVdli5/rB7Jw+D/Ds="; + vendorSha256 = "sha256-IOLZ15Mr+IGWIE4nvMOyjbtYBYOhDMXFYFbOp8beD5w="; subPackages = [ "cmd/dagger" From deef8b3b31d98de605c4bcc6ee90135eb1be34b5 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 17 Aug 2022 13:34:31 +0200 Subject: [PATCH 09/36] python310Packages.fipy: 3.4.2.1 -> 3.4.3 --- .../python-modules/fipy/default.nix | 25 +-- .../python-modules/fipy/gmsh.patch | 182 ------------------ 2 files changed, 10 insertions(+), 197 deletions(-) delete mode 100644 pkgs/development/python-modules/fipy/gmsh.patch diff --git a/pkgs/development/python-modules/fipy/default.nix b/pkgs/development/python-modules/fipy/default.nix index 57835019d5de..7e08fa87fd58 100644 --- a/pkgs/development/python-modules/fipy/default.nix +++ b/pkgs/development/python-modules/fipy/default.nix @@ -3,27 +3,27 @@ , numpy , scipy , pyamg -, pysparse , future , matplotlib , tkinter , mpi4py , scikit-fmm -, isPy27 , gmsh , python , stdenv , openssh -, fetchurl +, fetchFromGitHub }: buildPythonPackage rec { pname = "fipy"; - version = "3.4.2.1"; + version = "3.4.3"; - src = fetchurl { - url = "https://github.com/usnistgov/fipy/releases/download/${version}/FiPy-${version}.tar.gz"; - sha256 = "0v5yk9b4hksy3176w4vm4gagb9kxqgv75zcyswlqvl371qwy1grk"; + src = fetchFromGitHub { + owner = "usnistgov"; + repo = "fipy"; + rev = version; + sha256 = "sha256-oTg/5fGXqknWBh1ShdAOdOwX7lVDieIoM5aALcOWFqY="; }; propagatedBuildInputs = [ @@ -36,14 +36,7 @@ buildPythonPackage rec { future scikit-fmm openssh - ] ++ lib.optionals isPy27 [ pysparse ] - ++ lib.optionals (!stdenv.isDarwin) [ gmsh ]; - - # Reading version string from Gmsh is broken in latest release of FiPy - # This issue is repaired on master branch of FiPy - # Fixed with: https://github.com/usnistgov/fipy/pull/848/files - # Remove patch with next release. - patches = [ ./gmsh.patch ]; + ] ++ lib.optionals (!stdenv.isDarwin) [ gmsh ]; checkInputs = lib.optionals (!stdenv.isDarwin) [ gmsh ]; @@ -52,6 +45,8 @@ buildPythonPackage rec { ${python.interpreter} setup.py test --modules ''; + pythonImportsCheck = [ "fipy" ]; + meta = with lib; { homepage = "https://www.ctcms.nist.gov/fipy/"; description = "A Finite Volume PDE Solver Using Python"; diff --git a/pkgs/development/python-modules/fipy/gmsh.patch b/pkgs/development/python-modules/fipy/gmsh.patch deleted file mode 100644 index 7e7b687ac8c6..000000000000 --- a/pkgs/development/python-modules/fipy/gmsh.patch +++ /dev/null @@ -1,182 +0,0 @@ -diff --git a/fipy/meshes/gmshMesh.py b/fipy/meshes/gmshMesh.py -index fc3ff6c8..d529d532 100755 ---- a/fipy/meshes/gmshMesh.py -+++ b/fipy/meshes/gmshMesh.py -@@ -13,11 +13,11 @@ import sys - import tempfile - from textwrap import dedent - import warnings --from distutils.version import StrictVersion - - from fipy.tools import numerix as nx - from fipy.tools import parallelComm - from fipy.tools import serialComm -+from fipy.tools.version import Version, parse_version - from fipy.tests.doctestPlus import register_skipper - - from fipy.meshes.mesh import Mesh -@@ -38,7 +38,7 @@ def _checkForGmsh(): - hasGmsh = True - try: - version = _gmshVersion(communicator=parallelComm) -- hasGmsh = version >= StrictVersion("2.0") -+ hasGmsh = version >= Version("2.0") - except Exception: - hasGmsh = False - return hasGmsh -@@ -68,6 +68,7 @@ def gmshVersion(communicator=parallelComm): - while True: - try: - # gmsh returns version in stderr (Why?!?) -+ # (newer versions of gmsh return the version in stdout) - # spyder on Windows throws - # OSError: [WinError 6] The handle is invalid - # if we don't PIPE stdout, too -@@ -77,8 +78,11 @@ def gmshVersion(communicator=parallelComm): - break - - try: -- out, verStr = p.communicate() -- verStr = verStr.decode('ascii').strip() -+ out, err = p.communicate() -+ verStr = err.decode('ascii').strip() -+ if not verStr: -+ # newer versions of gmsh return the version in stdout -+ verStr = out.decode('ascii').strip() - break - except IOError: - # some weird conflict with things like PyQT can cause -@@ -93,12 +97,12 @@ def gmshVersion(communicator=parallelComm): - def _gmshVersion(communicator=parallelComm): - version = gmshVersion(communicator) or "0.0" - try: -- version = StrictVersion(version) -+ version = parse_version(version) - except ValueError: - # gmsh returns the version string in stderr, - # which means it's often unparsable due to irrelevant warnings - # assume it's OK and move on -- version = StrictVersion("3.0") -+ version = Version("3.0") - - return version - -@@ -133,7 +137,7 @@ def openMSHFile(name, dimensions=None, coordDimensions=None, communicator=parall - - # Enforce gmsh version to be either >= 2 or 2.5, based on Nproc. - version = _gmshVersion(communicator=communicator) -- if version < StrictVersion("2.0"): -+ if version < Version("2.0"): - raise EnvironmentError("Gmsh version must be >= 2.0.") - - # If we're being passed a .msh file, leave it be. Otherwise, -@@ -176,9 +180,11 @@ def openMSHFile(name, dimensions=None, coordDimensions=None, communicator=parall - gmshFlags = ["-%d" % dimensions, "-nopopup"] - - if communicator.Nproc > 1: -- if not (StrictVersion("2.5") < version <= StrictVersion("4.0")): -- warnstr = "Cannot partition with Gmsh version < 2.5 or >= 4.0. " \ -- + "Reverting to serial." -+ if ((version < Version("2.5")) -+ or (Version("4.0") <= version < Version("4.5.2"))): -+ warnstr = ("Cannot partition with Gmsh version < 2.5 " -+ "or 4.0 <= version < 4.5.2. " -+ "Reverting to serial.") - warnings.warn(warnstr, RuntimeWarning, stacklevel=2) - communicator = serialComm - -@@ -188,13 +194,13 @@ def openMSHFile(name, dimensions=None, coordDimensions=None, communicator=parall - raise ValueError("'dimensions' must be specified to generate a mesh from a geometry script") - else: # gmsh version is adequate for partitioning - gmshFlags += ["-part", "%d" % communicator.Nproc] -- if version >= StrictVersion("4.0"): -+ if version >= Version("4.0"): - # Gmsh 4.x needs to be told to generate ghost cells -- # Unfortunately, the ghosts are broken -+ # Unfortunately, the ghosts are broken in Gmsh 4.0--4.5.1 - # https://gitlab.onelab.info/gmsh/gmsh/issues/733 - gmshFlags += ["-part_ghosts"] - -- gmshFlags += ["-format", "msh2"] -+ gmshFlags += ["-format", "msh2", "-smooth", "8"] - - if background is not None: - if communicator.procID == 0: -@@ -1387,6 +1393,11 @@ class _GmshTopology(_MeshTopology): - class Gmsh2D(Mesh2D): - """Construct a 2D Mesh using Gmsh - -+ If called in parallel, the mesh will be partitioned based on the value -+ of `parallelComm.Nproc`. If an `MSH` file is supplied, it must have -+ been previously partitioned with the number of partitions matching -+ `parallelComm.Nproc`. -+ - >>> radius = 5. - >>> side = 4. - >>> squaredCircle = Gmsh2D(''' -@@ -1875,6 +1886,11 @@ class Gmsh2D(Mesh2D): - class Gmsh2DIn3DSpace(Gmsh2D): - """Create a topologically 2D Mesh in 3D coordinates using Gmsh - -+ If called in parallel, the mesh will be partitioned based on the value -+ of `parallelComm.Nproc`. If an `MSH` file is supplied, it must have -+ been previously partitioned with the number of partitions matching -+ `parallelComm.Nproc`. -+ - Parameters - ---------- - arg : str -@@ -1959,6 +1975,11 @@ class Gmsh2DIn3DSpace(Gmsh2D): - class Gmsh3D(Mesh): - """Create a 3D Mesh using Gmsh - -+ If called in parallel, the mesh will be partitioned based on the value -+ of `parallelComm.Nproc`. If an `MSH` file is supplied, it must have -+ been previously partitioned with the number of partitions matching -+ `parallelComm.Nproc`. -+ - Parameters - ---------- - arg : str -@@ -2225,7 +2246,7 @@ class GmshGrid2D(Gmsh2D): - width = nx * dx - numLayers = int(ny / float(dy)) - -- if _gmshVersion() < StrictVersion("2.7"): -+ if _gmshVersion() < Version("2.7"): - # kludge: must offset cellSize by `eps` to work properly - eps = float(dx)/(nx * 10) - else: -@@ -2299,7 +2320,7 @@ class GmshGrid3D(Gmsh3D): - width = nx * dx - depth = nz * dz - -- if _gmshVersion() < StrictVersion("2.7"): -+ if _gmshVersion() < Version("2.7"): - # kludge: must offset cellSize by `eps` to work properly - eps = float(dx)/(nx * 10) - else: -diff --git a/fipy/tools/version.py b/fipy/tools/version.py -new file mode 100644 -index 00000000..93d89c18 ---- /dev/null -+++ b/fipy/tools/version.py -@@ -0,0 +1,18 @@ -+"""Shim for version checking -+ -+`distutils.version` is deprecated, but `packaging.version` is unavailable -+in Python 2.7 -+""" -+from __future__ import unicode_literals -+ -+__docformat__ = 'restructuredtext' -+ -+ -+__all__ = ["Version", "parse_version"] -+from future.utils import text_to_native_str -+__all__ = [text_to_native_str(n) for n in __all__] -+ -+try: -+ from packaging.version import Version, parse as parse_version -+except ImportError: -+ from distutils.version import StrictVersion as Version, StrictVersion as parse_version From 7557be5546c8934575e2d423fdaf53d248d49c8d Mon Sep 17 00:00:00 2001 From: Frido Friedemann Date: Sun, 14 Aug 2022 22:04:28 +0200 Subject: [PATCH 10/36] pythonPackages.notebook-shim: init at 0.1.0 --- .../python-modules/notebook-shim/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/notebook-shim/default.nix diff --git a/pkgs/development/python-modules/notebook-shim/default.nix b/pkgs/development/python-modules/notebook-shim/default.nix new file mode 100644 index 000000000000..a37e0cb3c679 --- /dev/null +++ b/pkgs/development/python-modules/notebook-shim/default.nix @@ -0,0 +1,48 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, jupyter_server +, pytestCheckHook +, pytest-tornasync +}: + +buildPythonPackage rec { + pname = "notebook-shim"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "jupyter"; + repo = "notebook_shim"; + rev = "v${version}"; + sha256 = "sha256-5oIYj8SdC4E0N/yFxsmD2p4VkStHvqrVqAwb/htyPm4="; + }; + + propagatedBuildInputs = [ jupyter_server ]; + + preCheck = '' + mv notebook_shim/conftest.py notebook_shim/tests + cd notebook_shim/tests + ''; + + # TODO: understand & possibly fix why tests fail. On github most testfiles + # have been comitted with msgs "wip" though. + doCheck = false; + + checkInputs = [ + pytestCheckHook + pytest-tornasync + ]; + + pythonImportsCheck = [ "notebook_shim" ]; + + meta = with lib; { + description = "Switch frontends to Jupyter Server"; + longDescription = '' + This project provides a way for JupyterLab and other frontends to switch + to Jupyter Server for their Python Web application backend. + ''; + homepage = "https://github.com/jupyter/notebook_shim"; + license = licenses.bsd3; + maintainers = with maintainers; [ friedelino ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 37e657c5f325..3e100ae8bf89 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6085,6 +6085,8 @@ in { notebook = callPackage ../development/python-modules/notebook { }; + notebook-shim = callPackage ../development/python-modules/notebook-shim { }; + notedown = callPackage ../development/python-modules/notedown { }; notifications-python-client = callPackage ../development/python-modules/notifications-python-client { }; From e66376b18a9e07b40d84878643c8731eee50a02f Mon Sep 17 00:00:00 2001 From: Frido Friedemann Date: Sun, 14 Aug 2022 22:05:59 +0200 Subject: [PATCH 11/36] pythonPackages.nbclassic: fix build failure --- .../python-modules/nbclassic/default.nix | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/nbclassic/default.nix b/pkgs/development/python-modules/nbclassic/default.nix index fc311125c1d0..a1e16bc75219 100644 --- a/pkgs/development/python-modules/nbclassic/default.nix +++ b/pkgs/development/python-modules/nbclassic/default.nix @@ -1,8 +1,8 @@ { lib , buildPythonPackage -, fetchFromGitHub -, python +, fetchPypi , notebook +, notebook-shim , pythonOlder , jupyter_server , pytestCheckHook @@ -14,23 +14,13 @@ buildPythonPackage rec { version = "0.4.3"; disabled = pythonOlder "3.6"; - # tests only on github - src = fetchFromGitHub { - owner = "jupyterlab"; - repo = pname; - rev = "refs/tags/v${version}"; - sha256 = "sha256-5sof5EOqzK7kNHSXp7eJl3ZagZRWF74e08ahqJId2Z8="; + src = fetchPypi { + inherit pname version; + sha256 = "sha256-8DERss66ppuINwp7I7GbKzfJu3F2fxgozf16BH6ujt0="; }; - propagatedBuildInputs = [ jupyter_server notebook ]; + propagatedBuildInputs = [ jupyter_server notebook notebook-shim ]; - preCheck = '' - cd nbclassic - mv conftest.py tests - cd tests - - export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH - ''; checkInputs = [ pytestCheckHook pytest-tornasync From aab926cc66d4eba2a5cdf0a0a5623873214807af Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Wed, 17 Aug 2022 22:58:47 +0000 Subject: [PATCH 12/36] werf: 1.2.154 -> 1.2.160 --- pkgs/applications/networking/cluster/werf/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/cluster/werf/default.nix b/pkgs/applications/networking/cluster/werf/default.nix index c632df6396be..43c7b6b1396e 100644 --- a/pkgs/applications/networking/cluster/werf/default.nix +++ b/pkgs/applications/networking/cluster/werf/default.nix @@ -11,13 +11,13 @@ buildGoModule rec { pname = "werf"; - version = "1.2.154"; + version = "1.2.160"; src = fetchFromGitHub { owner = "werf"; repo = "werf"; rev = "v${version}"; - sha256 = "sha256-5tiJRxE8W2nvkQdJ3jL8P0+7LXEfNOdL15LdDjlDWpc="; + sha256 = "sha256-UeZpH6A/N+frShOOVeRCsIXdBKiI0chsxQvsGJF5JwE="; }; vendorSha256 = "sha256-XpSAFiweD2oUKleD6ztDp1+3PpfUWXfGaaE/9mzRrUQ="; From 7002f2f3c8c80ee7d0622d18e01e5bd48fa96d92 Mon Sep 17 00:00:00 2001 From: Vonfry Date: Wed, 17 Aug 2022 10:55:13 +0800 Subject: [PATCH 13/36] spectra: init at 1.0.1 --- .../development/libraries/spectra/default.nix | 30 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 pkgs/development/libraries/spectra/default.nix diff --git a/pkgs/development/libraries/spectra/default.nix b/pkgs/development/libraries/spectra/default.nix new file mode 100644 index 000000000000..1fc3ccd75765 --- /dev/null +++ b/pkgs/development/libraries/spectra/default.nix @@ -0,0 +1,30 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +, eigen +}: + +stdenv.mkDerivation rec { + pname = "spectra"; + version = "1.0.1"; + + src = fetchFromGitHub { + owner = "yixuan"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-HaJmMo4jYmO/j53/nHrL3bvdQMAvp4Nuhhe8Yc7pL88="; + }; + + nativeBuildInputs = [ cmake ]; + + propagatedBuildInputs = [ eigen ]; + + meta = with lib; { + homepage = "https://spectralib.org/"; + description = "A C++ library for large scale eigenvalue problems, built on top of Eigen"; + license = licenses.mpl20; + maintainers = with maintainers; [ vonfry ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bc770ddbc03d..b23f6a3d9bc7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35593,6 +35593,8 @@ with pkgs; refind = callPackage ../tools/bootloaders/refind { }; + spectra = callPackage ../development/libraries/spectra { }; + spectrojack = callPackage ../applications/audio/spectrojack { }; sift = callPackage ../tools/text/sift { }; From d8666c03281885412c0a07f6699983f9e30f22a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Thu, 18 Aug 2022 15:51:12 +1000 Subject: [PATCH 14/36] zellij: fix changelog location --- pkgs/tools/misc/zellij/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/misc/zellij/default.nix b/pkgs/tools/misc/zellij/default.nix index ac4d926a2eda..b21beb9dbbdc 100644 --- a/pkgs/tools/misc/zellij/default.nix +++ b/pkgs/tools/misc/zellij/default.nix @@ -59,7 +59,7 @@ rustPlatform.buildRustPackage rec { meta = with lib; { description = "A terminal workspace with batteries included"; homepage = "https://zellij.dev/"; - changelog = "https://github.com/zellij-org/zellij/blob/v${version}/Changelog.md"; + changelog = "https://github.com/zellij-org/zellij/blob/v${version}/CHANGELOG.md"; license = with licenses; [ mit ]; maintainers = with maintainers; [ therealansh _0x4A6F abbe thehedgeh0g ]; }; From 86f9d4bdcd5a8e7206c86f0fcc6776816cc6681d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 18 Aug 2022 07:30:37 +0000 Subject: [PATCH 15/36] imagemagick: 7.1.0-45 -> 7.1.0-46 --- pkgs/applications/graphics/ImageMagick/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/graphics/ImageMagick/default.nix b/pkgs/applications/graphics/ImageMagick/default.nix index 92b8164f8b65..5444bbc0bd41 100644 --- a/pkgs/applications/graphics/ImageMagick/default.nix +++ b/pkgs/applications/graphics/ImageMagick/default.nix @@ -46,13 +46,13 @@ in stdenv.mkDerivation rec { pname = "imagemagick"; - version = "7.1.0-45"; + version = "7.1.0-46"; src = fetchFromGitHub { owner = "ImageMagick"; repo = "ImageMagick"; rev = version; - hash = "sha256-fiygwb15dbMyTZ62iWbhWaHpdmoK4rKeb46v0sojgpc="; + hash = "sha256-yts86tQMPgdF9Zk1vljVza21mlx1g3XcoHjvtsMoZhA="; }; outputs = [ "out" "dev" "doc" ]; # bin/ isn't really big From e5d7d6a7e436109a8e52d9b7a8a68a2d86e9f612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 18 Aug 2022 07:50:16 +0000 Subject: [PATCH 16/36] gpg-tui: 0.9.0 -> 0.9.1 https://github.com/orhun/gpg-tui/blob/v0.9.1/CHANGELOG.md --- pkgs/tools/security/gpg-tui/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/gpg-tui/default.nix b/pkgs/tools/security/gpg-tui/default.nix index 7e4d6f672f7e..4ab4d468d068 100644 --- a/pkgs/tools/security/gpg-tui/default.nix +++ b/pkgs/tools/security/gpg-tui/default.nix @@ -16,16 +16,16 @@ rustPlatform.buildRustPackage rec { pname = "gpg-tui"; - version = "0.9.0"; + version = "0.9.1"; src = fetchFromGitHub { owner = "orhun"; repo = "gpg-tui"; rev = "v${version}"; - hash = "sha256-iIMpAAIw6djLNP9lnrHV7D198VcHspQP4OHcr2LNKOA="; + hash = "sha256-eUUHH6bPfYjkHo7C7GWzewTpT8je7TQK9M8mTM5v59s="; }; - cargoHash = "sha256-xrv1tFzPReHDA+gr/RPCvSM7Sa7v8OKAEY+fSUjPT50="; + cargoHash = "sha256-GtSvDfG9lRUirm4d6PSaOBLTHZJT2PH0Sx/9GVquX5M="; nativeBuildInputs = [ gpgme # for gpgme-config From 5369167b7dea306772b074756771ce7f15d71e21 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Thu, 18 Aug 2022 10:37:55 +0200 Subject: [PATCH 17/36] chromium: 104.0.5112.79 -> 104.0.5112.101 https://chromereleases.googleblog.com/2022/08/stable-channel-update-for-desktop_16.html This update includes 11 security fixes. Google is aware that an exploit for CVE-2022-2856 exists in the wild. CVEs: CVE-2022-2852 CVE-2022-2854 CVE-2022-2855 CVE-2022-2857 CVE-2022-2858 CVE-2022-2853 CVE-2022-2856 CVE-2022-2859 CVE-2022-2860 CVE-2022-2861 --- .../networking/browsers/chromium/upstream-info.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/upstream-info.json b/pkgs/applications/networking/browsers/chromium/upstream-info.json index cda4a3738812..12dc5b3edcbc 100644 --- a/pkgs/applications/networking/browsers/chromium/upstream-info.json +++ b/pkgs/applications/networking/browsers/chromium/upstream-info.json @@ -1,8 +1,8 @@ { "stable": { - "version": "104.0.5112.79", - "sha256": "1wxb3nl080wgg1g61g3pgzz3gaawg442iv8pxqhnayacm3qn5ilw", - "sha256bin64": "1m09bbh6a4sm5i0n8z2wy0hb8s7w0c2d335mpyrmndzs45py5ggx", + "version": "104.0.5112.101", + "sha256": "0nrghgngxdn9richjnxii9y94dg5zpwc3gd3vx609r4xaphibw30", + "sha256bin64": "1cj2mi3g5wl376wc52jgqg28h7izbsqm2gji526zkhmgb7rwq4sw", "deps": { "gn": { "version": "2022-06-08", From d0bbad1246388649ab824261abeee1012dff51b2 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Thu, 18 Aug 2022 10:37:55 +0200 Subject: [PATCH 18/36] chromiumBeta: 105.0.5195.28 -> 105.0.5195.37 --- .../networking/browsers/chromium/upstream-info.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/networking/browsers/chromium/upstream-info.json b/pkgs/applications/networking/browsers/chromium/upstream-info.json index cda4a3738812..12ab654ccdeb 100644 --- a/pkgs/applications/networking/browsers/chromium/upstream-info.json +++ b/pkgs/applications/networking/browsers/chromium/upstream-info.json @@ -19,9 +19,9 @@ } }, "beta": { - "version": "105.0.5195.28", - "sha256": "14hy1f59ypsvqmrp0k4kv5cfcw48dizw4nkmigaxxv4bnmpwlcy1", - "sha256bin64": "0rgv1r94z91khzwmf1scnnsz9yqks6ygicl7bdsdbckw69njq91z", + "version": "105.0.5195.37", + "sha256": "0ffzphr66z3g3l695b5liswpfp0577knn06mzdmwq9x1lk87cwiq", + "sha256bin64": "1cfkjzqwj4s5djzl2rka9kbc28i6zph0xqv1534cb68hzgwy171a", "deps": { "gn": { "version": "2022-07-11", From 8cecd7cb82a9a5094d783a6bb447cb5c68d5d0c9 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 18 Aug 2022 08:51:28 +0000 Subject: [PATCH 19/36] git-machete: 3.11.6 -> 3.12.0 --- .../version-management/git-and-tools/git-machete/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/git-machete/default.nix b/pkgs/applications/version-management/git-and-tools/git-machete/default.nix index 9577d1c41fd0..b5c251f247af 100644 --- a/pkgs/applications/version-management/git-and-tools/git-machete/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git-machete/default.nix @@ -12,13 +12,13 @@ buildPythonApplication rec { pname = "git-machete"; - version = "3.11.6"; + version = "3.12.0"; src = fetchFromGitHub { owner = "virtuslab"; repo = pname; rev = "v${version}"; - sha256 = "sha256-W2OYJO3UnBcZRoIyTRj3Wz7J91zDWrrYPH5OnYvXi24="; + sha256 = "sha256-o4OVA9cv+/JLiTUnDEAI/yj+YmOulFrX5XmlRZAb2vw="; }; nativeBuildInputs = [ installShellFiles ]; From 10881441a5bbde2c7bdcd49ed4aee2b08093dd5d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 18 Aug 2022 08:56:49 +0000 Subject: [PATCH 20/36] copilot-cli: 1.20.0 -> 1.21.0 --- pkgs/tools/admin/copilot-cli/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/admin/copilot-cli/default.nix b/pkgs/tools/admin/copilot-cli/default.nix index c58adf042d71..149232c697a6 100644 --- a/pkgs/tools/admin/copilot-cli/default.nix +++ b/pkgs/tools/admin/copilot-cli/default.nix @@ -2,16 +2,16 @@ buildGoModule rec { pname = "copilot-cli"; - version = "1.20.0"; + version = "1.21.0"; src = fetchFromGitHub { owner = "aws"; repo = pname; rev = "v${version}"; - sha256 = "sha256-l6XFaM5eShXrpuZgTfzceNu8U7Z5WnKBi/qoimj/8HM="; + sha256 = "sha256-zGmb3EvWkGGJuq9R3GWEfHZvFn7DMC6B6Onk06mFiWI="; }; - vendorSha256 = "sha256-AXwiccfSxeX0NDIODEK+JvVjhcBNNpnZnLKGlDPWy48="; + vendorSha256 = "sha256-8avzCfCBSVLsWUgBBiD4pYTWrd2X2rdruU5v+AJ3EKY="; nativeBuildInputs = [ installShellFiles ]; From 4e030e5221f7a3d2858cab0ae8b22e1a2174a95b Mon Sep 17 00:00:00 2001 From: Piper McCorkle Date: Thu, 18 Aug 2022 04:04:02 -0500 Subject: [PATCH 21/36] flyctl: add "fly" alias This alias is installed by the upstream install script: https://fly.io/install.sh --- pkgs/development/web/flyctl/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/web/flyctl/default.nix b/pkgs/development/web/flyctl/default.nix index 5ecb5c5b9469..430621059893 100644 --- a/pkgs/development/web/flyctl/default.nix +++ b/pkgs/development/web/flyctl/default.nix @@ -42,6 +42,7 @@ buildGoModule rec { --bash <($out/bin/flyctl completion bash) \ --fish <($out/bin/flyctl completion fish) \ --zsh <($out/bin/flyctl completion zsh) + ln -s $out/bin/flyctl $out/bin/fly ''; passthru.tests.version = testers.testVersion { From 60e47734f65967fefaf64a2a84464c8f067491a9 Mon Sep 17 00:00:00 2001 From: Benno Bielmeier Date: Thu, 18 Aug 2022 11:15:09 +0200 Subject: [PATCH 22/36] kanboard: correct homepage url The Kanboard GitHub Repo [1] references https://kanboard.org, not the https://kanboard.net. [1]: https://github.com/kanboard/kanboard --- pkgs/applications/misc/kanboard/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/kanboard/default.nix b/pkgs/applications/misc/kanboard/default.nix index 49e8688cb59c..10b08bed506d 100644 --- a/pkgs/applications/misc/kanboard/default.nix +++ b/pkgs/applications/misc/kanboard/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Kanban project management software"; - homepage = "https://kanboard.net"; + homepage = "https://kanboard.org"; license = licenses.mit; maintainers = with maintainers; [ lheckemann ]; }; From 6ff0b472f7fad88777b31c85a3c539101553858a Mon Sep 17 00:00:00 2001 From: Piper McCorkle Date: Thu, 18 Aug 2022 05:39:39 -0500 Subject: [PATCH 23/36] flyctl: fix indentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Stanisław Pitucha --- pkgs/development/web/flyctl/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/web/flyctl/default.nix b/pkgs/development/web/flyctl/default.nix index 430621059893..495f946fe267 100644 --- a/pkgs/development/web/flyctl/default.nix +++ b/pkgs/development/web/flyctl/default.nix @@ -42,7 +42,7 @@ buildGoModule rec { --bash <($out/bin/flyctl completion bash) \ --fish <($out/bin/flyctl completion fish) \ --zsh <($out/bin/flyctl completion zsh) - ln -s $out/bin/flyctl $out/bin/fly + ln -s $out/bin/flyctl $out/bin/fly ''; passthru.tests.version = testers.testVersion { From d31b3a3edd6af89c5a75276a3043048eb8d46a3c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 18 Aug 2022 13:13:07 +0200 Subject: [PATCH 24/36] python310Packages.pyshark: remove stale comment --- pkgs/development/python-modules/pyshark/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pyshark/default.nix b/pkgs/development/python-modules/pyshark/default.nix index d92c58ec88bc..cadd47ca07b1 100644 --- a/pkgs/development/python-modules/pyshark/default.nix +++ b/pkgs/development/python-modules/pyshark/default.nix @@ -20,8 +20,6 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "KimiNewt"; repo = pname; - # 0.4.5 was the last release which was tagged - # https://github.com/KimiNewt/pyshark/issues/541 rev = "refs/tags/v${version}"; hash = "sha256-byll2GWY2841AAf8Xh+KfaCOtMGVKabTsLCe3gCdZ1o="; }; @@ -36,7 +34,7 @@ buildPythonPackage rec { ]; preCheck = '' - export HOME=$TMPDIR + export HOME=$(mktemp -d) ''; checkInputs = [ From a4d72ad6289a81b73e000617f9c9efc7f1d17499 Mon Sep 17 00:00:00 2001 From: Jappie Klooster Date: Wed, 18 May 2022 09:41:54 -0400 Subject: [PATCH 25/36] nixos/keter: init Enable keter module Keter is an apploader which: 1. has the old app running on a port. 2. loads a new one, and wait for that to complete 3. switches the old with the new one once the new one finished loading. It supports more functionality but this use case is the primary one being used by supercede. Adds keter as a module to nixos. Currently keter is unusable with nix, because it relies on bundeling of a tar and uploading that to a specific folder. These expressions automate these devops tasks, with especially nixops in mind. This will work with versions above 1.8 The test seems to work. This uses a new version of keter which has good support for status code on error pages. We're using this config at production at supercede so it should be fine. Squash log: ========== mention keter in changelog Update generated release notes Always restart keter on failure This is a little bit of extra stability in case keter crashes. Which can happen under extreme conditions (DoS attacks). Update nixos/doc/manual/release-notes/rl-2205.section.md Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com> Update nixos/modules/module-list.nix Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com> Remove sanitization don't put domain in as a string Update nixos/tests/keter.nix Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com> add jappie as module maintainer Use type path instead of two seperate options Fix generated docs added test machinery to figure out why it's failing Fix the test, use console output run nixpkgs-fmt on all modules Inline config file. This get's rid of a lot of inderection as well. Run nix format remove comment simplify executable for test delete config file add config for keter root Remove after redis clause set keter root by default to /var/lib/keter Update nixos/modules/services/web-servers/keter/default.nix Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com> Update nixos/modules/services/web-servers/keter/default.nix Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com> Update nixos/modules/services/web-servers/keter/default.nix Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com> fix nit add newlines add default text and move description in a long description Delete rather obvious comment fix release db thing remove longDescription and put it in a comment instead change description of mkEnalbeOption explain what keter does by using the hackage synopsis set domain to keterDomain and same for executable move comment to where it's happening fix type error add formatting better comment try add seperate user for keter Revert "try add seperate user for keter" This reverts commit d3522d36c96117335bfa072e6f453406c244e940. Doing this breaks the setup set default to avoid needing cap_net_bind_service remove weird comment use example fields eleborated on process leakage Update nixos/modules/services/web-servers/keter/default.nix Co-authored-by: ckie <25263210+ckiee@users.noreply.github.com> run nixpkgs-fmt update docs Fix formatting, set keter package by default format our little nixexpr replace '' -> " where possible drop indent for multiline string make description much shorter regen docs database --- .../from_md/release-notes/rl-2205.section.xml | 7 + .../manual/release-notes/rl-2205.section.md | 1 + nixos/modules/module-list.nix | 1 + .../services/web-servers/keter/bundle.nix | 40 +++++ .../services/web-servers/keter/default.nix | 162 ++++++++++++++++++ nixos/tests/all-tests.nix | 1 + nixos/tests/keter.nix | 42 +++++ 7 files changed, 254 insertions(+) create mode 100644 nixos/modules/services/web-servers/keter/bundle.nix create mode 100644 nixos/modules/services/web-servers/keter/default.nix create mode 100644 nixos/tests/keter.nix diff --git a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml index 5208671e4dab..3dc4a494588b 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2205.section.xml @@ -2122,6 +2122,13 @@ sudo mkdir /var/lib/redis-peertube sudo cp /var/lib/redis/dump.rdb /var/lib/redis-peertube/dump.rdb + + + Added the keter NixOS module. Keter reverse + proxies requests to your loaded application based on virtual + hostnames. + + If you are using Wayland you can choose to use the Ozone diff --git a/nixos/doc/manual/release-notes/rl-2205.section.md b/nixos/doc/manual/release-notes/rl-2205.section.md index faf941f56996..f1f544035002 100644 --- a/nixos/doc/manual/release-notes/rl-2205.section.md +++ b/nixos/doc/manual/release-notes/rl-2205.section.md @@ -776,6 +776,7 @@ In addition to numerous new and upgraded packages, this release has the followin sudo mkdir /var/lib/redis-peertube sudo cp /var/lib/redis/dump.rdb /var/lib/redis-peertube/dump.rdb ``` +- Added the `keter` NixOS module. Keter reverse proxies requests to your loaded application based on virtual hostnames. - If you are using Wayland you can choose to use the Ozone Wayland support in Chrome and several Electron apps by setting the environment variable diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index d67602a26761..08834022cf46 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -1118,6 +1118,7 @@ ./services/web-servers/pomerium.nix ./services/web-servers/unit/default.nix ./services/web-servers/tomcat.nix + ./services/web-servers/keter ./services/web-servers/traefik.nix ./services/web-servers/trafficserver/default.nix ./services/web-servers/ttyd.nix diff --git a/nixos/modules/services/web-servers/keter/bundle.nix b/nixos/modules/services/web-servers/keter/bundle.nix new file mode 100644 index 000000000000..32b08c3be206 --- /dev/null +++ b/nixos/modules/services/web-servers/keter/bundle.nix @@ -0,0 +1,40 @@ +/* This makes a keter bundle as described on the github page: + https://github.com/snoyberg/keter#bundling-your-app-for-keter +*/ +{ keterDomain +, keterExecutable +, gnutar +, writeTextFile +, lib +, stdenv +, ... +}: + +let + str.stanzas = [{ + # we just use nix as an absolute path so we're not bundling any binaries + type = "webapp"; + /* Note that we're not actually putting the executable in the bundle, + we already can use the nix store for copying, so we just + symlink to the app. */ + exec = keterExecutable; + host = keterDomain; + }]; + configFile = writeTextFile { + name = "keter.yml"; + text = (lib.generators.toYAML { } str); + }; + +in +stdenv.mkDerivation { + name = "keter-bundle"; + buildCommand = '' + mkdir -p config + cp ${configFile} config/keter.yaml + + echo 'create a gzipped tarball' + mkdir -p $out + tar -zcvf $out/bundle.tar.gz.keter ./. + ''; + buildInputs = [ gnutar ]; +} diff --git a/nixos/modules/services/web-servers/keter/default.nix b/nixos/modules/services/web-servers/keter/default.nix new file mode 100644 index 000000000000..83e221add37e --- /dev/null +++ b/nixos/modules/services/web-servers/keter/default.nix @@ -0,0 +1,162 @@ +{ config, pkgs, lib, ... }: +let + cfg = config.services.keter; +in +{ + meta = { + maintainers = with lib.maintainers; [ jappie ]; + }; + + options.services.keter = { + enable = lib.mkEnableOption ''keter, a web app deployment manager. +Note that this module only support loading of webapps: +Keep an old app running and swap the ports when the new one is booted. +''; + + keterRoot = lib.mkOption { + type = lib.types.str; + default = "/var/lib/keter"; + description = "Mutable state folder for keter"; + }; + + keterPackage = lib.mkOption { + type = lib.types.package; + default = pkgs.haskellPackages.keter; + defaultText = lib.literalExpression "pkgs.haskellPackages.keter"; + description = "The keter package to be used"; + }; + + globalKeterConfig = lib.mkOption { + type = lib.types.attrs; + default = { + ip-from-header = true; + listeners = [{ + host = "*4"; + port = 6981; + }]; + }; + # You want that ip-from-header in the nginx setup case + # so it's not set to 127.0.0.1. + # using a port above 1024 allows you to avoid needing CAP_NET_BIND_SERVICE + defaultText = lib.literalExpression '' + { + ip-from-header = true; + listeners = [{ + host = "*4"; + port = 6981; + }]; + } + ''; + description = "Global config for keter"; + }; + + bundle = { + appName = lib.mkOption { + type = lib.types.str; + default = "myapp"; + description = "The name keter assigns to this bundle"; + }; + + executable = lib.mkOption { + type = lib.types.path; + description = "The executable to be run"; + }; + + domain = lib.mkOption { + type = lib.types.str; + default = "example.com"; + description = "The domain keter will bind to"; + }; + + publicScript = lib.mkOption { + type = lib.types.str; + default = ""; + description = '' + Allows loading of public environment variables, + these are emitted to the log so it shouldn't contain secrets. + ''; + example = "ADMIN_EMAIL=hi@example.com"; + }; + + secretScript = lib.mkOption { + type = lib.types.str; + default = ""; + description = "Allows loading of private environment variables"; + example = "MY_AWS_KEY=$(cat /run/keys/AWS_ACCESS_KEY_ID)"; + }; + }; + + }; + + config = lib.mkIf cfg.enable ( + let + incoming = "${cfg.keterRoot}/incoming"; + + + globalKeterConfigFile = pkgs.writeTextFile { + name = "keter-config.yml"; + text = (lib.generators.toYAML { } (cfg.globalKeterConfig // { root = cfg.keterRoot; })); + }; + + # If things are expected to change often, put it in the bundle! + bundle = pkgs.callPackage ./bundle.nix + (cfg.bundle // { keterExecutable = executable; keterDomain = cfg.bundle.domain; }); + + # This indirection is required to ensure the nix path + # gets copied over to the target machine in remote deployments. + # Furthermore, it's important that we use exec to + # run the binary otherwise we get process leakage due to this + # being executed on every change. + executable = pkgs.writeShellScript "bundle-wrapper" '' + set -e + ${cfg.bundle.secretScript} + set -xe + ${cfg.bundle.publicScript} + exec ${cfg.bundle.executable} + ''; + + in + { + systemd.services.keter = { + description = "keter app loader"; + script = '' + set -xe + mkdir -p ${incoming} + { tail -F ${cfg.keterRoot}/log/keter/current.log -n 0 & ${cfg.keterPackage}/bin/keter ${globalKeterConfigFile}; } + ''; + wantedBy = [ "multi-user.target" "nginx.service" ]; + + serviceConfig = { + Restart = "always"; + RestartSec = "10s"; + }; + + after = [ + "network.target" + "local-fs.target" + "postgresql.service" + ]; + }; + + # On deploy this will load our app, by moving it into the incoming dir + # If the bundle content changes, this will run again. + # Because the bundle content contains the nix path to the exectuable, + # we inherit nix based cache busting. + systemd.services.load-keter-bundle = { + description = "load keter bundle into incoming folder"; + after = [ "keter.service" ]; + wantedBy = [ "multi-user.target" ]; + # we can't override keter bundles because it'll stop the previous app + # https://github.com/snoyberg/keter#deploying + script = '' + set -xe + cp ${bundle}/bundle.tar.gz.keter ${incoming}/${cfg.bundle.appName}.keter + ''; + path = [ + executable + cfg.bundle.executable + ]; # this is a hack to get the executable copied over to the machine. + }; + } + ); +} diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 1064d62da930..e6fd508100dd 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -264,6 +264,7 @@ in { kerberos = handleTest ./kerberos/default.nix {}; kernel-generic = handleTest ./kernel-generic.nix {}; kernel-latest-ath-user-regd = handleTest ./kernel-latest-ath-user-regd.nix {}; + keter = handleTest ./keter.nix {}; kexec = handleTest ./kexec.nix {}; keycloak = discoverTests (import ./keycloak.nix); keymap = handleTest ./keymap.nix {}; diff --git a/nixos/tests/keter.nix b/nixos/tests/keter.nix new file mode 100644 index 000000000000..0bfb96e1c324 --- /dev/null +++ b/nixos/tests/keter.nix @@ -0,0 +1,42 @@ +import ./make-test-python.nix ({ pkgs, ... }: +let + port = 81; +in +{ + name = "keter"; + meta = with pkgs.lib.maintainers; { + maintainers = [ jappie ]; + }; + + + nodes.machine = { config, pkgs, ... }: { + services.keter = { + enable = true; + + globalKeterConfig = { + listeners = [{ + host = "*4"; + inherit port; + }]; + }; + bundle = { + appName = "test-bundle"; + domain = "localhost"; + executable = pkgs.writeShellScript "run" '' + ${pkgs.python3}/bin/python -m http.server $PORT + ''; + }; + }; + }; + + testScript = + '' + machine.wait_for_unit("keter.service") + + machine.wait_for_open_port(${toString port}) + machine.wait_for_console_text("Activating app test-bundle with hosts: localhost") + + + machine.succeed("curl --fail http://localhost:${toString port}/") + ''; +}) From 0e75512a1bbac97fb67bfa6bd54a8dd27dec0ce7 Mon Sep 17 00:00:00 2001 From: iko Date: Thu, 18 Aug 2022 13:24:36 +0000 Subject: [PATCH 26/36] clickable: init at 7.4.0 (#178760) * clickable: init at 7.4.0 * Update default.nix Co-authored-by: Jonas Heinrich --- pkgs/development/tools/clickable/default.nix | 49 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/tools/clickable/default.nix diff --git a/pkgs/development/tools/clickable/default.nix b/pkgs/development/tools/clickable/default.nix new file mode 100644 index 000000000000..6d3bc8663674 --- /dev/null +++ b/pkgs/development/tools/clickable/default.nix @@ -0,0 +1,49 @@ +{ lib +, fetchFromGitLab +, buildPythonPackage +, cookiecutter +, requests +, pyyaml +, jsonschema +, argcomplete +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "clickable"; + version = "7.4.0"; + + src = fetchFromGitLab { + owner = "clickable"; + repo = "clickable"; + rev = "v${version}"; + sha256 = "sha256-QS7vi0gUQbqqRYkZwD2B+zkt6DQ6AamQO7sihD8qWS0="; + }; + + propagatedBuildInputs = [ + cookiecutter + requests + pyyaml + jsonschema + argcomplete + ]; + + checkInputs = [ pytestCheckHook ]; + + disabledTests = [ + # Test require network connection + "test_cpp_plugin" + "test_html" + "test_python" + "test_qml_only" + "test_rust" + ]; + + meta = { + description = "A build system for Ubuntu Touch apps"; + homepage = "https://clickable-ut.dev"; + changelog = "https://clickable-ut.dev/en/latest/changelog.html"; + license = lib.licenses.gpl3Only; + maintainers = with lib.maintainers; [ ilyakooo0 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0ba0c1feb777..ffb545896903 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12950,6 +12950,8 @@ with pkgs; clean = callPackage ../development/compilers/clean { }; + clickable = python3Packages.callPackage ../development/tools/clickable { }; + closurecompiler = callPackage ../development/compilers/closure { }; cmdstan = callPackage ../development/compilers/cmdstan { }; From d7728dfc671c56a1929665abd1e2fd07d64360e1 Mon Sep 17 00:00:00 2001 From: Evan Petousis Date: Mon, 1 Aug 2022 18:05:58 +1000 Subject: [PATCH 27/36] buildDotnetModule: use platform-agnostic cp format cp on macOS doesn't support the -T flag, which causes the fetch-deps script to fail. Appending `/.` to the source argument replicates the same functionality. --- pkgs/build-support/dotnet/build-dotnet-module/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix index 1a5d499929ac..5ccff2f2a198 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix @@ -145,7 +145,7 @@ in stdenvNoCC.mkDerivation (args // { store_src="${srcOnly args}" src="$(mktemp -d /tmp/${pname}.XXX)" - cp -rT "$store_src" "$src" + cp -r "$store_src/." "$src" chmod -R +w "$src" trap "rm -rf $src $HOME" EXIT From c51e1a1fbae2bd14e0df183a50df6f1bd64780a3 Mon Sep 17 00:00:00 2001 From: Evan Petousis Date: Mon, 1 Aug 2022 21:21:30 +1000 Subject: [PATCH 28/36] buildDotnetModule: use coreutils in fetch-deps cp on macOS doesn't support the -T flag, which causes the fetch-deps script to fail. Use Nix's coreutils to ensure the script works consistently across all platforms. --- .../dotnet/build-dotnet-module/default.nix | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix index 5ccff2f2a198..b24b2f9d191b 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenvNoCC, linkFarmFromDrvs, callPackage, nuget-to-nix, writeScript, makeWrapper, fetchurl, xml2, dotnetCorePackages, dotnetPackages, mkNugetSource, mkNugetDeps, cacert, srcOnly, symlinkJoin }: +{ lib, stdenvNoCC, linkFarmFromDrvs, callPackage, nuget-to-nix, writeScript, makeWrapper, fetchurl, xml2, dotnetCorePackages, dotnetPackages, mkNugetSource, mkNugetDeps, cacert, srcOnly, symlinkJoin, coreutils }: { name ? "${args.pname}-${args.version}" , pname ? name @@ -138,23 +138,23 @@ in stdenvNoCC.mkDerivation (args // { exclusions = dotnet-sdk.passthru.packages { fetchNuGet = attrs: attrs.pname; }; in writeScript "fetch-${pname}-deps" '' set -euo pipefail - cd "$(dirname "''${BASH_SOURCE[0]}")" + cd "$(${coreutils}/bin/dirname "''${BASH_SOURCE[0]}")" - export HOME=$(mktemp -d) + export HOME=$(${coreutils}/bin/mktemp -d) deps_file="/tmp/${pname}-deps.nix" store_src="${srcOnly args}" - src="$(mktemp -d /tmp/${pname}.XXX)" - cp -r "$store_src/." "$src" - chmod -R +w "$src" + src="$(${coreutils}/bin/mktemp -d /tmp/${pname}.XXX)" + ${coreutils}/bin/cp -rT "$store_src" "$src" + ${coreutils}/bin/chmod -R +w "$src" - trap "rm -rf $src $HOME" EXIT + trap "${coreutils}/bin/rm -rf $src $HOME" EXIT pushd "$src" export DOTNET_NOLOGO=1 export DOTNET_CLI_TELEMETRY_OPTOUT=1 - mkdir -p "$HOME/nuget_pkgs" + ${coreutils}/bin/mkdir -p "$HOME/nuget_pkgs" for project in "${lib.concatStringsSep "\" \"" ((lib.toList projectFile) ++ lib.optionals (testProjectFile != "") (lib.toList testProjectFile))}"; do ${dotnet-sdk}/bin/dotnet restore "$project" \ @@ -166,11 +166,11 @@ in stdenvNoCC.mkDerivation (args // { ${lib.optionalString (dotnetFlags != []) (builtins.toString dotnetFlags)} done - echo "${lib.concatStringsSep "\n" exclusions}" > "$HOME/package_exclusions" + ${coreutils}/bin/echo "${lib.concatStringsSep "\n" exclusions}" > "$HOME/package_exclusions" - echo "Writing lockfile..." + ${coreutils}/bin/echo "Writing lockfile..." ${nuget-to-nix}/bin/nuget-to-nix "$HOME/nuget_pkgs" "$HOME/package_exclusions" > "$deps_file" - echo "Succesfully wrote lockfile to: $deps_file" + ${coreutils}/bin/echo "Succesfully wrote lockfile to: $deps_file" ''; } // args.passthru or {}; }) From b4de4dc3bfc5dbbd11a506814636969465c9ade4 Mon Sep 17 00:00:00 2001 From: Evan Petousis Date: Thu, 18 Aug 2022 23:46:37 +1000 Subject: [PATCH 29/36] buildDotnetModule: set fetch-deps utils via PATH --- .../dotnet/build-dotnet-module/default.nix | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/pkgs/build-support/dotnet/build-dotnet-module/default.nix b/pkgs/build-support/dotnet/build-dotnet-module/default.nix index b24b2f9d191b..62820e8d47ee 100644 --- a/pkgs/build-support/dotnet/build-dotnet-module/default.nix +++ b/pkgs/build-support/dotnet/build-dotnet-module/default.nix @@ -138,26 +138,28 @@ in stdenvNoCC.mkDerivation (args // { exclusions = dotnet-sdk.passthru.packages { fetchNuGet = attrs: attrs.pname; }; in writeScript "fetch-${pname}-deps" '' set -euo pipefail - cd "$(${coreutils}/bin/dirname "''${BASH_SOURCE[0]}")" + export PATH="${lib.makeBinPath [ coreutils dotnet-sdk nuget-to-nix ]}" - export HOME=$(${coreutils}/bin/mktemp -d) + cd "$(dirname "''${BASH_SOURCE[0]}")" + + export HOME=$(mktemp -d) deps_file="/tmp/${pname}-deps.nix" store_src="${srcOnly args}" - src="$(${coreutils}/bin/mktemp -d /tmp/${pname}.XXX)" - ${coreutils}/bin/cp -rT "$store_src" "$src" - ${coreutils}/bin/chmod -R +w "$src" + src="$(mktemp -d /tmp/${pname}.XXX)" + cp -rT "$store_src" "$src" + chmod -R +w "$src" - trap "${coreutils}/bin/rm -rf $src $HOME" EXIT + trap "rm -rf $src $HOME" EXIT pushd "$src" export DOTNET_NOLOGO=1 export DOTNET_CLI_TELEMETRY_OPTOUT=1 - ${coreutils}/bin/mkdir -p "$HOME/nuget_pkgs" + mkdir -p "$HOME/nuget_pkgs" for project in "${lib.concatStringsSep "\" \"" ((lib.toList projectFile) ++ lib.optionals (testProjectFile != "") (lib.toList testProjectFile))}"; do - ${dotnet-sdk}/bin/dotnet restore "$project" \ + dotnet restore "$project" \ ${lib.optionalString (!enableParallelBuilding) "--disable-parallel"} \ -p:ContinuousIntegrationBuild=true \ -p:Deterministic=true \ @@ -166,11 +168,11 @@ in stdenvNoCC.mkDerivation (args // { ${lib.optionalString (dotnetFlags != []) (builtins.toString dotnetFlags)} done - ${coreutils}/bin/echo "${lib.concatStringsSep "\n" exclusions}" > "$HOME/package_exclusions" + echo "${lib.concatStringsSep "\n" exclusions}" > "$HOME/package_exclusions" - ${coreutils}/bin/echo "Writing lockfile..." - ${nuget-to-nix}/bin/nuget-to-nix "$HOME/nuget_pkgs" "$HOME/package_exclusions" > "$deps_file" - ${coreutils}/bin/echo "Succesfully wrote lockfile to: $deps_file" + echo "Writing lockfile..." + nuget-to-nix "$HOME/nuget_pkgs" "$HOME/package_exclusions" > "$deps_file" + echo "Succesfully wrote lockfile to: $deps_file" ''; } // args.passthru or {}; }) From 6dc1c73aba11efa3229659bcaf596b21ef6f80bd Mon Sep 17 00:00:00 2001 From: Andrew Marshall Date: Fri, 12 Aug 2022 19:16:14 -0400 Subject: [PATCH 30/36] nixos/libvirtd: Do not add autostart network This does make the out-of-the-box install perhaps a bit worse, since networking may need to be manually configured. However, it makes it less frustrating that upon every start of this service, a *removed* autostart network will be re-added when removed by the user. See https://github.com/NixOS/nixpkgs/issues/73418 for details. Behavior from other distros: - Adds autostart net on install: Fedora - Does not add autostart net : Debian, Arch This does not break any existing installs since it does not affect any autostart network already in-place. --- nixos/modules/virtualisation/libvirtd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/libvirtd.nix b/nixos/modules/virtualisation/libvirtd.nix index f7d0ef39c5af..817d7180a022 100644 --- a/nixos/modules/virtualisation/libvirtd.nix +++ b/nixos/modules/virtualisation/libvirtd.nix @@ -293,7 +293,7 @@ in # Copy default libvirt network config .xml files to /var/lib # Files modified by the user will not be overwritten for i in $(cd ${cfg.package}/var/lib && echo \ - libvirt/qemu/networks/*.xml libvirt/qemu/networks/autostart/*.xml \ + libvirt/qemu/networks/*.xml \ libvirt/nwfilter/*.xml ); do mkdir -p /var/lib/$(dirname $i) -m 755 From d77432260ad12ef8af9776c0d4d6ee4f52d21bfe Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 18 Aug 2022 15:51:15 +0200 Subject: [PATCH 31/36] dump_syms: 1.0.1 -> 2.0.0 https://github.com/mozilla/dump_syms/releases/tag/v2.0.0 --- pkgs/development/tools/dump_syms/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/dump_syms/default.nix b/pkgs/development/tools/dump_syms/default.nix index 8eae712191d9..4aff90f830a3 100644 --- a/pkgs/development/tools/dump_syms/default.nix +++ b/pkgs/development/tools/dump_syms/default.nix @@ -11,7 +11,7 @@ let pname = "dump_syms"; - version = "1.0.1"; + version = "2.0.0"; in rustPlatform.buildRustPackage { inherit pname version; @@ -20,10 +20,10 @@ rustPlatform.buildRustPackage { owner = "mozilla"; repo = pname; rev = "v${version}"; - hash = "sha256-2OSni0PA0LfamOqdFQTRLgolF55z13owgFrqYYHuNX0="; + hash = "sha256-ei/ORKKoh9rQg4xZ5j76qaplw1PyEV7ABkyL7e8WIlQ="; }; - cargoSha256 = "sha256-ggJWweulbSJ8Femzv7uHLcrn1HTenw79AYIydE6y4ag="; + cargoSha256 = "sha256-t3AQW0j/L/qIUx6RJKqf+Fv/2BNWkWmTc0PDNFlZeaQ="; nativeBuildInputs = [ pkg-config From a3d14cefba0e7200269926b401d3ad2fee3e5e9a Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 18 Aug 2022 14:37:36 +0000 Subject: [PATCH 32/36] python310Packages.asdf: 2.12.0 -> 2.12.1 --- pkgs/development/python-modules/asdf/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/asdf/default.nix b/pkgs/development/python-modules/asdf/default.nix index b34001d866eb..253ec1b71ce2 100644 --- a/pkgs/development/python-modules/asdf/default.nix +++ b/pkgs/development/python-modules/asdf/default.nix @@ -20,14 +20,14 @@ buildPythonPackage rec { pname = "asdf"; - version = "2.12.0"; + version = "2.12.1"; format = "pyproject"; disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - hash = "sha256-WRSDTQd7o79ouar9xka58nzl5W4cJBFn1GHe5DsQI+k="; + hash = "sha256-0qXRYWXKC17JiL1D+jjuGVoOGAJuGbJje7OZyd2k3o8="; }; nativeBuildInputs = [ From facd025b944491292dc6cd83a9dbc9e9c847d4cc Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 16 Aug 2022 13:58:44 +0000 Subject: [PATCH 33/36] ldns: 1.8.1 -> 1.8.3 --- pkgs/development/libraries/ldns/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/ldns/default.nix b/pkgs/development/libraries/ldns/default.nix index 6712d7c6d3c0..ba0c5e606ffc 100644 --- a/pkgs/development/libraries/ldns/default.nix +++ b/pkgs/development/libraries/ldns/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "ldns"; - version = "1.8.1"; + version = "1.8.3"; src = fetchurl { url = "https://www.nlnetlabs.nl/downloads/ldns/${pname}-${version}.tar.gz"; - sha256 = "sha256-lYIpq85NOqoZp1wNEnZmVksXIWkCGG6VLKSu9Hxtf6M="; + sha256 = "sha256-w/ct0QNrKQfjpW5qz537LlUSVrPBu9l4eULe7rcOeGA="; }; postPatch = '' From 71617faa487ab0d16b6cad3c20b8c4c79fb328e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Tue, 16 Aug 2022 14:12:25 +0200 Subject: [PATCH 34/36] vtm: 0.7.6 -> 0.8.0 --- pkgs/tools/misc/vtm/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/vtm/default.nix b/pkgs/tools/misc/vtm/default.nix index a2a52a260b60..982f383da304 100644 --- a/pkgs/tools/misc/vtm/default.nix +++ b/pkgs/tools/misc/vtm/default.nix @@ -6,13 +6,13 @@ stdenv.mkDerivation rec { pname = "vtm"; - version = "0.7.6"; + version = "0.8.0"; src = fetchFromGitHub { owner = "netxs-group"; repo = "vtm"; rev = "v${version}"; - sha256 = "sha256-YAS/HcgtA4Ms8EB7RRCg6ElBL4aI/FqXjqymHy/voRs="; + sha256 = "sha256-Ty7DC4ap2F+mPzr1xaL8XeLSjQaQQVX0oGAcPpkoag4="; }; nativeBuildInputs = [ cmake ]; From af3c62be07bfaabd6d658a8cbe5c43856142ab0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Thu, 18 Aug 2022 14:37:36 -0300 Subject: [PATCH 35/36] xfce.xfce4-screenshooter: 1.9.10 -> 1.9.11 (#186429) * xfce.xfce4-screenshooter: reformat nix expression * xfce.xfce4-screenshooter: 1.9.10 -> 1.9.11 --- .../xfce4-screenshooter/default.nix | 25 ++++++++++++++++--- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/pkgs/desktops/xfce/applications/xfce4-screenshooter/default.nix b/pkgs/desktops/xfce/applications/xfce4-screenshooter/default.nix index 1e8a9230661f..7beeb0ff87f2 100644 --- a/pkgs/desktops/xfce/applications/xfce4-screenshooter/default.nix +++ b/pkgs/desktops/xfce/applications/xfce4-screenshooter/default.nix @@ -1,14 +1,31 @@ -{ lib, mkXfceDerivation, exo, gtk3, libsoup, libxfce4ui, libxfce4util, xfce4-panel, glib-networking }: +{ lib +, mkXfceDerivation +, exo +, glib-networking +, gtk3 +, libsoup +, libxfce4ui +, libxfce4util +, xfce4-panel +}: mkXfceDerivation { category = "apps"; pname = "xfce4-screenshooter"; - version = "1.9.10"; + version = "1.9.11"; odd-unstable = false; - sha256 = "sha256-i3QdQij58JYv3fWdESUeTV0IW3A8RVGNtmuxUc6FUMg="; + sha256 = "sha256-sW0SEXypCcly7MlO9lnxHTkYwIiRt+gOME5UQ++Y3JQ="; - buildInputs = [ exo gtk3 libsoup libxfce4ui libxfce4util xfce4-panel glib-networking ]; + buildInputs = [ + exo + glib-networking + gtk3 + libsoup + libxfce4ui + libxfce4util + xfce4-panel + ]; meta = with lib; { description = "Screenshot utility for the Xfce desktop"; From d34f728c2fc35481a6259e1ad86154db151b63e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Romildo=20Malaquias?= Date: Thu, 18 Aug 2022 14:38:48 -0300 Subject: [PATCH 36/36] numix-icon-theme: 21.10.31 -> 22.08.16 (#187004) * numix-icon-theme: reformat nix expression * numix-icon-theme: add update script * numix-icon-theme: 21.10.31 -> 22.08.16 * numix-icon-theme: add missing parent themes --- pkgs/data/icons/numix-icon-theme/default.nix | 30 ++++++++++++++++---- pkgs/top-level/all-packages.nix | 5 +++- 2 files changed, 29 insertions(+), 6 deletions(-) diff --git a/pkgs/data/icons/numix-icon-theme/default.nix b/pkgs/data/icons/numix-icon-theme/default.nix index 576fa405e06f..18ba78ac24ec 100644 --- a/pkgs/data/icons/numix-icon-theme/default.nix +++ b/pkgs/data/icons/numix-icon-theme/default.nix @@ -1,25 +1,43 @@ -{ lib, stdenvNoCC, fetchFromGitHub, gtk3, gnome-icon-theme, hicolor-icon-theme }: +{ lib +, stdenvNoCC +, fetchFromGitHub +, gtk3 +, adwaita-icon-theme +, breeze-icons +, gnome-icon-theme +, hicolor-icon-theme +, gitUpdater +}: stdenvNoCC.mkDerivation rec { pname = "numix-icon-theme"; - version = "21.10.31"; + version = "22.08.16"; src = fetchFromGitHub { owner = "numixproject"; repo = pname; rev = version; - sha256 = "sha256-wyVvXifdbKR2aiBMrki8y/H0khH4eFD1RHVSC+jAT28="; + sha256 = "sha256-EveIr5XYyQYhz0AqZQBql3j0LnD8taNdzB/6IV7Mz2k="; }; - nativeBuildInputs = [ gtk3 ]; + nativeBuildInputs = [ + gtk3 + ]; - propagatedBuildInputs = [ gnome-icon-theme hicolor-icon-theme ]; + propagatedBuildInputs = [ + adwaita-icon-theme + breeze-icons + gnome-icon-theme + hicolor-icon-theme + ]; dontDropIconThemeCache = true; installPhase = '' runHook preInstall + substituteInPlace Numix/index.theme --replace Breeze breeze + mkdir -p $out/share/icons cp -a Numix{,-Light} $out/share/icons/ @@ -30,6 +48,8 @@ stdenvNoCC.mkDerivation rec { runHook postInstall ''; + passthru.updateScript = gitUpdater { inherit pname version; }; + meta = with lib; { description = "Numix icon theme"; homepage = "https://numixproject.github.io"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e754ac34c53a..182ca637e32d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25448,7 +25448,10 @@ with pkgs; stdenv = gccStdenv; }; - numix-icon-theme = callPackage ../data/icons/numix-icon-theme { }; + numix-icon-theme = callPackage ../data/icons/numix-icon-theme { + inherit (gnome) adwaita-icon-theme; + inherit (plasma5Packages) breeze-icons; + }; numix-icon-theme-circle = callPackage ../data/icons/numix-icon-theme-circle { };