From b3ea8948891ff728eddae28611ec2645aa7688c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 25 May 2024 01:52:50 +0200 Subject: [PATCH 01/78] rubberband: use headless jdk This fixes the build with environment.noXlibs set to true (cherry picked from commit 22df7fb99f9810135670a6f5717e9558d26be518) --- pkgs/development/libraries/rubberband/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/rubberband/default.nix b/pkgs/development/libraries/rubberband/default.nix index 7830e62ccb18..66b3dbbea3fb 100644 --- a/pkgs/development/libraries/rubberband/default.nix +++ b/pkgs/development/libraries/rubberband/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchurl, pkg-config, libsamplerate, libsndfile, fftw -, lv2, jdk +, lv2, jdk_headless , vamp-plugin-sdk, ladspaH, meson, ninja, darwin }: stdenv.mkDerivation rec { @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { hash = "sha256-2e+J4rjvn4WxOsPC+uww4grPLJ86nIxFzmN/K8leV2w="; }; - nativeBuildInputs = [ pkg-config meson ninja jdk ]; + nativeBuildInputs = [ pkg-config meson ninja jdk_headless ]; buildInputs = [ libsamplerate libsndfile fftw vamp-plugin-sdk ladspaH lv2 ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [Accelerate CoreGraphics CoreVideo]); makeFlags = [ "AR:=$(AR)" ]; From 1a9dbfb0da7582de3d44b2a3f74d756e9fd434e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 25 May 2024 02:35:18 +0200 Subject: [PATCH 02/78] libplacebo: add vulkanSupport option (cherry picked from commit e499cfa37b4101bb0f78a535948ec6b29fa131d1) --- pkgs/development/libraries/libplacebo/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/libplacebo/default.nix b/pkgs/development/libraries/libplacebo/default.nix index 558acc4bbbeb..5759d9bed505 100644 --- a/pkgs/development/libraries/libplacebo/default.nix +++ b/pkgs/development/libraries/libplacebo/default.nix @@ -15,6 +15,7 @@ , libdovi , xxHash , fast-float +, vulkanSupport ? true }: stdenv.mkDerivation rec { @@ -33,13 +34,11 @@ stdenv.mkDerivation rec { meson ninja pkg-config - vulkan-headers python3Packages.jinja2 python3Packages.glad2 ]; buildInputs = [ - vulkan-loader shaderc lcms2 libGL @@ -47,15 +46,19 @@ stdenv.mkDerivation rec { libunwind libdovi xxHash + vulkan-headers + ] ++ lib.optionals vulkanSupport [ + vulkan-loader ] ++ lib.optionals (!stdenv.cc.isGNU) [ fast-float ]; mesonFlags = with lib; [ - (mesonOption "vulkan-registry" "${vulkan-headers}/share/vulkan/registry/vk.xml") (mesonBool "demos" false) # Don't build and install the demo programs (mesonEnable "d3d11" false) # Disable the Direct3D 11 based renderer (mesonEnable "glslang" false) # rely on shaderc for GLSL compilation instead + (mesonEnable "vk-proc-addr" vulkanSupport) + (mesonOption "vulkan-registry" "${vulkan-headers}/share/vulkan/registry/vk.xml") ] ++ optionals stdenv.isDarwin [ (mesonEnable "unwind" false) # libplacebo doesn’t build with `darwin.libunwind` ]; From 1ec9f0f58fb25aae5044074c4aee24685f275b9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 25 May 2024 02:35:31 +0200 Subject: [PATCH 03/78] nixos/no-x-libs: add libplacebo (cherry picked from commit 2a8e5155c9f73137174ce6d1a043f7628cf5489b) --- nixos/modules/config/no-x-libs.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/config/no-x-libs.nix b/nixos/modules/config/no-x-libs.nix index 1d7976cef36a..b31b812b153e 100644 --- a/nixos/modules/config/no-x-libs.nix +++ b/nixos/modules/config/no-x-libs.nix @@ -54,6 +54,7 @@ with lib; intel-vaapi-driver = super.intel-vaapi-driver.override { enableGui = false; }; libdevil = super.libdevil-nox; libextractor = super.libextractor.override { gtkSupport = false; }; + libplacebo = super.libplacebo.override { vulkanSupport = false; }; libva = super.libva-minimal; limesuite = super.limesuite.override { withGui = false; }; mc = super.mc.override { x11Support = false; }; From 65fc04117350181ff34537d12e21b3a2403ce320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 25 May 2024 01:55:50 +0200 Subject: [PATCH 04/78] nixos/no-x-libs: fix mpv build by disabling drmSupport, disable more GUI only relevant features (cherry picked from commit b9ec2c14d809dddff656cbcb4a65d4202541018a) --- nixos/modules/config/no-x-libs.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/config/no-x-libs.nix b/nixos/modules/config/no-x-libs.nix index b31b812b153e..eb593b2e7729 100644 --- a/nixos/modules/config/no-x-libs.nix +++ b/nixos/modules/config/no-x-libs.nix @@ -58,7 +58,7 @@ with lib; libva = super.libva-minimal; limesuite = super.limesuite.override { withGui = false; }; mc = super.mc.override { x11Support = false; }; - mpv-unwrapped = super.mpv-unwrapped.override { sdl2Support = false; x11Support = false; waylandSupport = false; }; + mpv-unwrapped = super.mpv-unwrapped.override { drmSupport = false; screenSaverSupport = false; sdl2Support = false; vulkanSupport = false; waylandSupport = false; x11Support = false; }; msmtp = super.msmtp.override { withKeyring = false; }; mupdf = super.mupdf.override { enableGL = false; enableX11 = false; }; neofetch = super.neofetch.override { x11Support = false; }; From f1d7443aaee24898089605e3abe9a1203943094f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 25 May 2024 00:17:11 +0200 Subject: [PATCH 05/78] python311Packages.pystray: 0.19.2 -> 0.19.5 (cherry picked from commit 53bbdc1a696582e03cf0bf1f9dd6de042451e53b) --- .../python-modules/pystray/default.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/pystray/default.nix b/pkgs/development/python-modules/pystray/default.nix index 07cd05cad527..a448933fcc78 100644 --- a/pkgs/development/python-modules/pystray/default.nix +++ b/pkgs/development/python-modules/pystray/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, pillow, xlib, six, @@ -15,19 +16,28 @@ buildPythonPackage rec { pname = "pystray"; - version = "0.19.2"; - format = "pyproject"; + version = "0.19.5"; + pyproject = true; src = fetchFromGitHub { owner = "moses-palmer"; repo = "pystray"; rev = "v${version}"; - hash = "sha256-8B178MSe4ujlnGBmQhIu+BoAh1doP9V5cL0ermLQTvs="; + hash = "sha256-CZhbaXwKFrRBEomzfFPMQdMkTOl5lbgI64etfDRiRu4="; }; + patches = [ + # fix test_menu_construct_from_none test case + # https://github.com/moses-palmer/pystray/pull/133 + (fetchpatch { + url = "https://github.com/moses-palmer/pystray/commit/813007e3034d950d93a2f3e5b029611c3c9c98ad.patch"; + hash = "sha256-m2LfZcWXSfgxb73dac21VDdMDVz3evzcCz5QjdnfM1U="; + }) + ]; + postPatch = '' substituteInPlace setup.py \ - --replace "'sphinx >=1.3.1'" "" + --replace-fail "'sphinx >=1.3.1'" "" ''; nativeBuildInputs = [ From d87ea2ce3cc00c9940161eb1148e24c0aa12ae56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 24 May 2024 23:44:47 +0200 Subject: [PATCH 06/78] python3Packages.vnoise: init at 0.1.0 (cherry picked from commit a16d07db1d51e76f5fe8d918b050820e26f4fb93) --- .../python-modules/vnoise/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/vnoise/default.nix diff --git a/pkgs/development/python-modules/vnoise/default.nix b/pkgs/development/python-modules/vnoise/default.nix new file mode 100644 index 000000000000..02f917bc17ac --- /dev/null +++ b/pkgs/development/python-modules/vnoise/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, numpy +, pytestCheckHook +, setuptools +}: + +buildPythonPackage rec { + pname = "vnoise"; + version = "0.1.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "plottertools"; + repo = "vnoise"; + rev = version; + hash = "sha256-nflAh3vj48wneM0wy/+M+XD6GC63KZEIFb1x4SS46YI="; + }; + + nativeBuildInputs = [ setuptools ]; + + propagatedBuildInputs = [ numpy ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ "vnoise" ]; + + meta = with lib; { + description = "Vectorized, pure-Python Perlin noise library"; + homepage = "https://github.com/plottertools/vnoise"; + license = licenses.mit; + maintainers = with maintainers; [ SuperSandro2000 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a126a71dffde..28c524cfd1de 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16700,6 +16700,8 @@ self: super: with self; { vncdo = callPackage ../development/python-modules/vncdo { }; + vnoise = callPackage ../development/python-modules/vnoise { }; + vobject = callPackage ../development/python-modules/vobject { }; volatile = callPackage ../development/python-modules/volatile { }; From b21d3c8fd13f0037fca4739850e9f30525ea3a82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 24 May 2024 23:45:06 +0200 Subject: [PATCH 07/78] ledfx: 2.0.96 -> 2.0.99 (cherry picked from commit a6216de380c867c5e82a6b03aaaba0b85f970cb7) --- pkgs/applications/audio/ledfx/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/ledfx/default.nix b/pkgs/applications/audio/ledfx/default.nix index bcbe1bc397d3..f45c7dc3af55 100644 --- a/pkgs/applications/audio/ledfx/default.nix +++ b/pkgs/applications/audio/ledfx/default.nix @@ -6,12 +6,12 @@ python3.pkgs.buildPythonPackage rec { pname = "ledfx"; - version = "2.0.96"; + version = "2.0.99"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-nvPHAnoD5j1rneeuMufQkXj8YWXau2zJYug+Avpe87I="; + hash = "sha256-pwrAVcIwZ3RDYFMDk80q5aVSqLTQ5weZqgB3GRRu2ig="; }; pythonRelaxDeps = true; @@ -58,6 +58,7 @@ python3.pkgs.buildPythonPackage rec { sounddevice stupidartnet uvloop + vnoise voluptuous zeroconf ]; @@ -71,5 +72,6 @@ python3.pkgs.buildPythonPackage rec { changelog = "https://github.com/LedFx/LedFx/blob/${version}/CHANGELOG.rst"; license = licenses.gpl3Only; maintainers = teams.c3d2.members; + mainProgram = "ledfx"; }; } From bf8c7334f88c0433e03cfce6980bcc39498616c6 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 24 Mar 2024 16:47:34 +0100 Subject: [PATCH 08/78] testers.lycheeLinkCheck: init (cherry picked from commit 6af49f27eda4bec227776adb630352c9c8a9dc8d) --- doc/build-helpers/testers.chapter.md | 39 +++++++++++++++++++++ pkgs/build-support/testers/default.nix | 4 +++ pkgs/build-support/testers/lychee.nix | 37 +++++++++++++++++++ pkgs/build-support/testers/test/default.nix | 2 ++ pkgs/tools/networking/lychee/default.nix | 10 +++++- pkgs/tools/networking/lychee/tests/fail.nix | 21 +++++++++++ pkgs/tools/networking/lychee/tests/ok.nix | 12 +++++++ 7 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 pkgs/build-support/testers/lychee.nix create mode 100644 pkgs/tools/networking/lychee/tests/fail.nix create mode 100644 pkgs/tools/networking/lychee/tests/ok.nix diff --git a/doc/build-helpers/testers.chapter.md b/doc/build-helpers/testers.chapter.md index b734cbbbd4e2..6b93531d8000 100644 --- a/doc/build-helpers/testers.chapter.md +++ b/doc/build-helpers/testers.chapter.md @@ -40,6 +40,45 @@ If the `moduleNames` argument is omitted, `hasPkgConfigModules` will use `meta.p ::: +## `lycheeLinkCheck` {#tester-lycheeLinkCheck} + +Check that internal hyperlinks are correct, using the [`lychee` package](https://search.nixos.org/packages?show=lychee&type=packages&query=lychee). + +Only an offline check is performed, so that network access is not required. + +:::{.example #ex-lycheelinkcheck} + +# Check hyperlinks in the `nix` documentation + +```nix +testers.lycheeLinkCheck { + site = nix.doc + "/share/doc/nix/manual"; +} +``` + +::: + +### Parameters {#tester-lycheeLinkCheck-params} + +#### `site` (required) {#tester-lycheeLinkCheck-param-site} + +The path to the files to check. + +#### `extraConfig` (optional) {#tester-lycheeLinkCheck-param-extraConfig} + +Extra configuration to pass to `lychee` in its [config file](https://github.com/lycheeverse/lychee/blob/master/lychee.example.toml). It is automatically [translated](https://nixos.org/manual/nixos/stable/index.html#sec-settings-nix-representable) to TOML. + +Example: `{ "include_verbatim" = true; }` + +#### `lychee` (optional) {#tester-lycheeLinkCheck-param-lychee} + +The `lychee` package to use. + +#### `remapUrl` (optional) {#tester-lycheeLinkCheck-param-remapUrl} + +A URL to which the files may be deployed. +Instead of ignoring this URL because the check is offline, `lychee` will check that the links to this URL are correct, by pretending `site` is deployed there. + ## `testVersion` {#tester-testVersion} Checks that the output from running a command contains the specified version string in it as a whole word. diff --git a/pkgs/build-support/testers/default.nix b/pkgs/build-support/testers/default.nix index 362622d9b7ee..dbf9a6d6cb05 100644 --- a/pkgs/build-support/testers/default.nix +++ b/pkgs/build-support/testers/default.nix @@ -1,6 +1,10 @@ { pkgs, pkgsLinux, buildPackages, lib, callPackage, runCommand, stdenv, substituteAll, testers }: # Documentation is in doc/builders/testers.chapter.md { + # See https://nixos.org/manual/nixpkgs/unstable/#tester-lycheeLinkCheck + # or doc/builders/testers.chapter.md + inherit (callPackage ./lychee.nix {}) lycheeLinkCheck; + # See https://nixos.org/manual/nixpkgs/unstable/#tester-testBuildFailure # or doc/builders/testers.chapter.md testBuildFailure = drv: drv.overrideAttrs (orig: { diff --git a/pkgs/build-support/testers/lychee.nix b/pkgs/build-support/testers/lychee.nix new file mode 100644 index 000000000000..1aa7db1584f6 --- /dev/null +++ b/pkgs/build-support/testers/lychee.nix @@ -0,0 +1,37 @@ +deps@{ formats, lib, lychee, stdenv }: +let + + # See https://nixos.org/manual/nixpkgs/unstable/#tester-lycheeLinkCheck + # or doc/builders/testers.chapter.md + lycheeLinkCheck = { + site, + remapUrl ? null, + lychee ? deps.lychee, + extraConfig ? { }, + }: + stdenv.mkDerivation (finalAttrs: { + name = "lychee-link-check"; + inherit site; + nativeBuildInputs = [ finalAttrs.passthru.lychee ]; + configFile = (formats.toml {}).generate "lychee.toml" finalAttrs.passthru.config; + + # These can be overriden with overrideAttrs if needed. + passthru = { + inherit lychee remapUrl; + config = { + include_fragments = true; + } // lib.optionalAttrs (finalAttrs.passthru.remapUrl != null) { + remap = [ "${remapUrl} file://${finalAttrs.site}" ]; + } // extraConfig; + }; + buildCommand = '' + echo Checking internal links on $site + lychee --offline --config $configFile $site + touch $out + ''; + }); + +in +{ + inherit lycheeLinkCheck; +} diff --git a/pkgs/build-support/testers/test/default.nix b/pkgs/build-support/testers/test/default.nix index da67711156be..a815fe63e416 100644 --- a/pkgs/build-support/testers/test/default.nix +++ b/pkgs/build-support/testers/test/default.nix @@ -12,6 +12,8 @@ let in lib.recurseIntoAttrs { + lycheeLinkCheck = lib.recurseIntoAttrs pkgs.lychee.tests; + hasPkgConfigModules = pkgs.callPackage ../hasPkgConfigModules/tests.nix { }; runNixOSTest-example = pkgs-with-overlay.testers.runNixOSTest ({ lib, ... }: { diff --git a/pkgs/tools/networking/lychee/default.nix b/pkgs/tools/networking/lychee/default.nix index 610869897b7b..a85c2eb6765a 100644 --- a/pkgs/tools/networking/lychee/default.nix +++ b/pkgs/tools/networking/lychee/default.nix @@ -1,4 +1,5 @@ -{ lib +{ callPackage +, lib , stdenv , rustPlatform , fetchFromGitHub @@ -41,6 +42,13 @@ rustPlatform.buildRustPackage rec { "--skip=src/lib.rs" ]; + passthru.tests = { + # NOTE: These assume that testers.lycheeLinkCheck uses this exact derivation. + # Which is true most of the time, but not necessarily after overriding. + ok = callPackage ./tests/ok.nix { }; + fail = callPackage ./tests/fail.nix { }; + }; + meta = with lib; { description = "A fast, async, stream-based link checker written in Rust"; homepage = "https://github.com/lycheeverse/lychee"; diff --git a/pkgs/tools/networking/lychee/tests/fail.nix b/pkgs/tools/networking/lychee/tests/fail.nix new file mode 100644 index 000000000000..3eece61c75ef --- /dev/null +++ b/pkgs/tools/networking/lychee/tests/fail.nix @@ -0,0 +1,21 @@ +{ runCommand, testers }: +let + sitePkg = runCommand "site" { } '' + dist=$out/dist + mkdir -p $dist + echo "foo" > $dist/index.html + echo "index" > $dist/foo.html + ''; + + linkCheck = testers.lycheeLinkCheck { + site = sitePkg + "/dist"; + remapUrl = "https://example.com"; + }; + + failure = testers.testBuildFailure linkCheck; + +in + runCommand "link-check-fail" { inherit failure; } '' + grep -F butwhere $failure/testBuildFailure.log >/dev/null + touch $out + '' diff --git a/pkgs/tools/networking/lychee/tests/ok.nix b/pkgs/tools/networking/lychee/tests/ok.nix new file mode 100644 index 000000000000..80e4d6c227b5 --- /dev/null +++ b/pkgs/tools/networking/lychee/tests/ok.nix @@ -0,0 +1,12 @@ +{ runCommand, testers }: +let + sitePkg = runCommand "site" { } '' + dist=$out/dist + mkdir -p $dist + echo "foo" > $dist/index.html + echo "index" > $dist/foo.html + ''; +in testers.lycheeLinkCheck { + site = sitePkg + "/dist"; + remapUrl = "https://example.com"; +} From 8567fac5050b10dda3ce192a1eb531fdc9994d95 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 24 Mar 2024 20:49:31 +0100 Subject: [PATCH 09/78] testers.lycheeLinkCheck: Add online attribute for nix run (cherry picked from commit c2ebd3ea6028c4f364638eec942fab24db8eaa04) --- doc/build-helpers/testers.chapter.md | 8 +++++++- pkgs/build-support/testers/lychee.nix | 14 +++++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/doc/build-helpers/testers.chapter.md b/doc/build-helpers/testers.chapter.md index 6b93531d8000..e664d12341d2 100644 --- a/doc/build-helpers/testers.chapter.md +++ b/doc/build-helpers/testers.chapter.md @@ -44,7 +44,13 @@ If the `moduleNames` argument is omitted, `hasPkgConfigModules` will use `meta.p Check that internal hyperlinks are correct, using the [`lychee` package](https://search.nixos.org/packages?show=lychee&type=packages&query=lychee). -Only an offline check is performed, so that network access is not required. +When building the check, only an offline check is performed, so that network access is not required. + +If you'd like to run the check with network access, the returned attribute `online` can be invoked with [`nix run`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-run) ([experimental](https://nixos.org/manual/nix/stable/contributing/experimental-features#xp-feature-nix-command)). For example: + +```shell +nix run nixpkgs#lychee.tests.ok.online +``` :::{.example #ex-lycheelinkcheck} diff --git a/pkgs/build-support/testers/lychee.nix b/pkgs/build-support/testers/lychee.nix index 1aa7db1584f6..7de375c2f45c 100644 --- a/pkgs/build-support/testers/lychee.nix +++ b/pkgs/build-support/testers/lychee.nix @@ -1,4 +1,4 @@ -deps@{ formats, lib, lychee, stdenv }: +deps@{ formats, lib, lychee, stdenv, writeShellApplication }: let # See https://nixos.org/manual/nixpkgs/unstable/#tester-lycheeLinkCheck @@ -23,6 +23,18 @@ let } // lib.optionalAttrs (finalAttrs.passthru.remapUrl != null) { remap = [ "${remapUrl} file://${finalAttrs.site}" ]; } // extraConfig; + online = writeShellApplication { + name = "run-lychee-online"; + runtimeInputs = [ finalAttrs.passthru.lychee ]; + # Comment out to run shellcheck: + checkPhase = ""; + text = '' + site=${finalAttrs.site} + configFile=${finalAttrs.configFile} + echo Checking links on $site + exec lychee --config $configFile $site "$@" + ''; + }; }; buildCommand = '' echo Checking internal links on $site From e2a9d4f64d8f284b2f8d33117b6b20f78dd12757 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 24 Mar 2024 22:12:50 +0100 Subject: [PATCH 10/78] doc/testers: Make lycheeLinkCheck section more accessible - Explain the use case for audience who's new to the concept - Be more explicit about what the return value "does" (cherry picked from commit 444f8bf6eba05a44912d85ea5007d183a9fe7885) --- doc/build-helpers/testers.chapter.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/doc/build-helpers/testers.chapter.md b/doc/build-helpers/testers.chapter.md index e664d12341d2..a008dd358d93 100644 --- a/doc/build-helpers/testers.chapter.md +++ b/doc/build-helpers/testers.chapter.md @@ -42,15 +42,11 @@ If the `moduleNames` argument is omitted, `hasPkgConfigModules` will use `meta.p ## `lycheeLinkCheck` {#tester-lycheeLinkCheck} -Check that internal hyperlinks are correct, using the [`lychee` package](https://search.nixos.org/packages?show=lychee&type=packages&query=lychee). +Check a packaged static site's links with the [`lychee` package](https://search.nixos.org/packages?show=lychee&type=packages&query=lychee). -When building the check, only an offline check is performed, so that network access is not required. +You may use Nix to reproducibly build documentation sites and other static sites. Some packages will install documentation in their `out` or `doc` outputs, or maybe you have dedicated package where you've made your static site reproducible by running a generator (like [Hugo](https://gohugo.io/), or [mdBook](https://rust-lang.github.io/mdBook/)) in a derivation. -If you'd like to run the check with network access, the returned attribute `online` can be invoked with [`nix run`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-run) ([experimental](https://nixos.org/manual/nix/stable/contributing/experimental-features#xp-feature-nix-command)). For example: - -```shell -nix run nixpkgs#lychee.tests.ok.online -``` +If you have a static site that is buildable in Nix, you can use `lycheeLinkCheck` to check that the hyperlinks in your site are correct, and do so as part of your Nix workflow and CI. :::{.example #ex-lycheelinkcheck} @@ -64,6 +60,20 @@ testers.lycheeLinkCheck { ::: +### Return value {#tester-lycheeLinkCheck-return} + +This tester produces a package that does not produce useful outputs, but only succeeds if the hyperlinks in your site are correct. The build log will list the broken links. + +You may use it in two modes: + +- Use the returned package directly, and the build process will check that internal hyperlinks are correct. This runs in the sandbox, so it will not check external hyperlinks, but it is quick and reliable. + +- Invoke the `.online` with [`nix run`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-run) ([experimental](https://nixos.org/manual/nix/stable/contributing/experimental-features#xp-feature-nix-command)). This runs outside the sandbox, and check that bith internal and external hyperlinks are correct. Example: + + ```shell + nix run nixpkgs#lychee.tests.ok.online + ``` + ### Parameters {#tester-lycheeLinkCheck-params} #### `site` (required) {#tester-lycheeLinkCheck-param-site} From 3363b4e759e588184ba51dafda3a2694a6c0454f Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 6 May 2024 17:32:53 +0200 Subject: [PATCH 11/78] testers.lycheeLinkCheck: Test `online` runner (cherry picked from commit 0291ebf782027267e7f29e098660675c01c6c48a) --- pkgs/tools/networking/lychee/default.nix | 2 + .../tools/networking/lychee/tests/network.nix | 66 +++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 pkgs/tools/networking/lychee/tests/network.nix diff --git a/pkgs/tools/networking/lychee/default.nix b/pkgs/tools/networking/lychee/default.nix index a85c2eb6765a..ede57b7470c1 100644 --- a/pkgs/tools/networking/lychee/default.nix +++ b/pkgs/tools/networking/lychee/default.nix @@ -7,6 +7,7 @@ , openssl , Security , SystemConfiguration +, testers }: rustPlatform.buildRustPackage rec { @@ -47,6 +48,7 @@ rustPlatform.buildRustPackage rec { # Which is true most of the time, but not necessarily after overriding. ok = callPackage ./tests/ok.nix { }; fail = callPackage ./tests/fail.nix { }; + network = testers.runNixOSTest ./tests/network.nix; }; meta = with lib; { diff --git a/pkgs/tools/networking/lychee/tests/network.nix b/pkgs/tools/networking/lychee/tests/network.nix new file mode 100644 index 000000000000..8d7f908a5805 --- /dev/null +++ b/pkgs/tools/networking/lychee/tests/network.nix @@ -0,0 +1,66 @@ +{ config, hostPkgs, lib, ... }: +let + sitePkg = hostPkgs.runCommand "site" { } '' + dist=$out/dist + mkdir -p $dist + echo "foo" > $dist/index.html + echo "index" > $dist/foo.html + ''; + check = config.node.pkgs.testers.lycheeLinkCheck { + site = sitePkg; + }; +in +{ + name = "testers-lychee-link-check-run"; + nodes.client = { ... }: { }; + nodes.example = { + networking.firewall.allowedTCPPorts = [ 80 ]; + services.nginx = { + enable = true; + virtualHosts."example" = { + locations."/" = { + root = "/var/www/example"; + index = "index.html"; + }; + }; + }; + + }; + testScript = '' + start_all() + + # SETUP + + example.succeed(""" + mkdir -p /var/www/example + echo '

hi

' > /var/www/example/index.html + """) + client.wait_until_succeeds(""" + curl --fail -v http://example + """) + + # FAILURE CASE + + client.succeed(""" + exec 1>&2 + r=0 + ${lib.getExe check.online} || { + r=$? + } + if [[ $r -ne 2 ]]; then + echo "lycheeLinkCheck unexpected exit code $r" + exit 1 + fi + """) + + # SUCCESS CASE + + example.succeed(""" + echo '

foo

' > /var/www/example/foo.html + """) + + client.succeed(""" + ${lib.getExe check.online} + """) + ''; +} From 8bfb6afca9f0fa1ac854cf0f7126fc1bbca26a8f Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 26 May 2024 17:03:18 +0200 Subject: [PATCH 12/78] testers.lycheeLinkCheck: Edit documentation Co-authored-by: Valentin Gagarin (cherry picked from commit 984b11685db649ae2b52b09aa941e644b8cae492) --- doc/build-helpers/testers.chapter.md | 33 +++++++++++++--------------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/doc/build-helpers/testers.chapter.md b/doc/build-helpers/testers.chapter.md index a008dd358d93..83b102a395ce 100644 --- a/doc/build-helpers/testers.chapter.md +++ b/doc/build-helpers/testers.chapter.md @@ -44,9 +44,10 @@ If the `moduleNames` argument is omitted, `hasPkgConfigModules` will use `meta.p Check a packaged static site's links with the [`lychee` package](https://search.nixos.org/packages?show=lychee&type=packages&query=lychee). -You may use Nix to reproducibly build documentation sites and other static sites. Some packages will install documentation in their `out` or `doc` outputs, or maybe you have dedicated package where you've made your static site reproducible by running a generator (like [Hugo](https://gohugo.io/), or [mdBook](https://rust-lang.github.io/mdBook/)) in a derivation. +You may use Nix to reproducibly build documentation sites and other static sites. +Some packages will install documentation in their `out` or `doc` outputs, or maybe you have dedicated package where you've made your static site reproducible by running a generator, such as [Hugo](https://gohugo.io/) or [mdBook](https://rust-lang.github.io/mdBook/), in a derivation. -If you have a static site that is buildable in Nix, you can use `lycheeLinkCheck` to check that the hyperlinks in your site are correct, and do so as part of your Nix workflow and CI. +If you have a static site that can be built with Nix, you can use `lycheeLinkCheck` to check that the hyperlinks in your site are correct, and do so as part of your Nix workflow and CI. :::{.example #ex-lycheelinkcheck} @@ -64,37 +65,33 @@ testers.lycheeLinkCheck { This tester produces a package that does not produce useful outputs, but only succeeds if the hyperlinks in your site are correct. The build log will list the broken links. -You may use it in two modes: +It has two modes: - Use the returned package directly, and the build process will check that internal hyperlinks are correct. This runs in the sandbox, so it will not check external hyperlinks, but it is quick and reliable. -- Invoke the `.online` with [`nix run`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-run) ([experimental](https://nixos.org/manual/nix/stable/contributing/experimental-features#xp-feature-nix-command)). This runs outside the sandbox, and check that bith internal and external hyperlinks are correct. Example: +- Invoke the `.online` attribute with [`nix run`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-run) ([experimental](https://nixos.org/manual/nix/stable/contributing/experimental-features#xp-feature-nix-command)). This runs outside the sandbox, and check that both internal and external hyperlinks are correct. + Example: ```shell nix run nixpkgs#lychee.tests.ok.online ``` -### Parameters {#tester-lycheeLinkCheck-params} +### Inputs {#tester-lycheeLinkCheck-inputs} -#### `site` (required) {#tester-lycheeLinkCheck-param-site} +`site` (path or derivation) {#tester-lycheeLinkCheck-param-site} -The path to the files to check. +: The path to the files to check. -#### `extraConfig` (optional) {#tester-lycheeLinkCheck-param-extraConfig} +`extraConfig` (attribute set) {#tester-lycheeLinkCheck-param-extraConfig} -Extra configuration to pass to `lychee` in its [config file](https://github.com/lycheeverse/lychee/blob/master/lychee.example.toml). It is automatically [translated](https://nixos.org/manual/nixos/stable/index.html#sec-settings-nix-representable) to TOML. +: Extra configuration to pass to `lychee` in its [configuration file](https://github.com/lycheeverse/lychee/blob/master/lychee.example.toml). + It is automatically [translated](https://nixos.org/manual/nixos/stable/index.html#sec-settings-nix-representable) to TOML. -Example: `{ "include_verbatim" = true; }` + Example: `{ "include_verbatim" = true; }` -#### `lychee` (optional) {#tester-lycheeLinkCheck-param-lychee} - -The `lychee` package to use. - -#### `remapUrl` (optional) {#tester-lycheeLinkCheck-param-remapUrl} - -A URL to which the files may be deployed. -Instead of ignoring this URL because the check is offline, `lychee` will check that the links to this URL are correct, by pretending `site` is deployed there. +`lychee` (derivation, optional) {#tester-lycheeLinkCheck-param-lychee} +: The `lychee` package to use. ## `testVersion` {#tester-testVersion} Checks that the output from running a command contains the specified version string in it as a whole word. From 25a5fced3c24c42b05c02a9a8e3bf3924af82c85 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 26 May 2024 17:45:46 +0200 Subject: [PATCH 13/78] testers.lycheeLinkCheck: Generalize remapUrl convenience feature (cherry picked from commit f6b78913688bf7096b474923fbdad00e55b23511) --- doc/build-helpers/testers.chapter.md | 14 ++++++++++++++ pkgs/build-support/testers/lychee.nix | 16 ++++++++++++---- pkgs/tools/networking/lychee/tests/fail.nix | 4 ++-- pkgs/tools/networking/lychee/tests/ok.nix | 4 ++-- 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/doc/build-helpers/testers.chapter.md b/doc/build-helpers/testers.chapter.md index 83b102a395ce..bf00de8c41d3 100644 --- a/doc/build-helpers/testers.chapter.md +++ b/doc/build-helpers/testers.chapter.md @@ -82,6 +82,19 @@ It has two modes: : The path to the files to check. +`remap` (attribe set, optional) {#tester-lycheeLinkCheck-param-remap} + +: An attribute set where the attribute names are the URLs to remap. + + The values should be store path strings, derivations or path values. + + Before checking the existence of URLs, if it is equal to the attribute name, it is replaced by the value of the attribute. + If it is a subpath of the attribute name, it is replaced by a subpath of the value. + + This is useful for remapping URLs that are not accessible from the build environment. + + Example: `{ "https://blog.example.com" = site; }` + `extraConfig` (attribute set) {#tester-lycheeLinkCheck-param-extraConfig} : Extra configuration to pass to `lychee` in its [configuration file](https://github.com/lycheeverse/lychee/blob/master/lychee.example.toml). @@ -92,6 +105,7 @@ It has two modes: `lychee` (derivation, optional) {#tester-lycheeLinkCheck-param-lychee} : The `lychee` package to use. + ## `testVersion` {#tester-testVersion} Checks that the output from running a command contains the specified version string in it as a whole word. diff --git a/pkgs/build-support/testers/lychee.nix b/pkgs/build-support/testers/lychee.nix index 7de375c2f45c..35cf84da9e53 100644 --- a/pkgs/build-support/testers/lychee.nix +++ b/pkgs/build-support/testers/lychee.nix @@ -1,11 +1,19 @@ deps@{ formats, lib, lychee, stdenv, writeShellApplication }: let + inherit (lib) concatLists isPath mapAttrsToList; + inherit (lib.strings) hasPrefix; + + toURL = v: + if builtins.isString v && hasPrefix builtins.storeDir v + || isPath v + then "file://${v}" + else "${v}"; # See https://nixos.org/manual/nixpkgs/unstable/#tester-lycheeLinkCheck # or doc/builders/testers.chapter.md lycheeLinkCheck = { site, - remapUrl ? null, + remap ? { }, lychee ? deps.lychee, extraConfig ? { }, }: @@ -17,11 +25,11 @@ let # These can be overriden with overrideAttrs if needed. passthru = { - inherit lychee remapUrl; + inherit lychee remap; config = { include_fragments = true; - } // lib.optionalAttrs (finalAttrs.passthru.remapUrl != null) { - remap = [ "${remapUrl} file://${finalAttrs.site}" ]; + } // lib.optionalAttrs (finalAttrs.passthru.remap != { }) { + remap = mapAttrsToList (name: value: "${name} ${toURL value}") finalAttrs.passthru.remap; } // extraConfig; online = writeShellApplication { name = "run-lychee-online"; diff --git a/pkgs/tools/networking/lychee/tests/fail.nix b/pkgs/tools/networking/lychee/tests/fail.nix index 3eece61c75ef..970cc6976da1 100644 --- a/pkgs/tools/networking/lychee/tests/fail.nix +++ b/pkgs/tools/networking/lychee/tests/fail.nix @@ -7,9 +7,9 @@ let echo "index" > $dist/foo.html ''; - linkCheck = testers.lycheeLinkCheck { + linkCheck = testers.lycheeLinkCheck rec { site = sitePkg + "/dist"; - remapUrl = "https://example.com"; + remap = { "https://example.com"= site; }; }; failure = testers.testBuildFailure linkCheck; diff --git a/pkgs/tools/networking/lychee/tests/ok.nix b/pkgs/tools/networking/lychee/tests/ok.nix index 80e4d6c227b5..326cf0c6885e 100644 --- a/pkgs/tools/networking/lychee/tests/ok.nix +++ b/pkgs/tools/networking/lychee/tests/ok.nix @@ -6,7 +6,7 @@ let echo "foo" > $dist/index.html echo "index" > $dist/foo.html ''; -in testers.lycheeLinkCheck { +in testers.lycheeLinkCheck rec { site = sitePkg + "/dist"; - remapUrl = "https://example.com"; + remap = { "https://example.com" = site; }; } From 20fccd7b6c16a614cddd4665e6f0eed02eb0e4c0 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 26 May 2024 21:48:28 +0200 Subject: [PATCH 14/78] testers.lycheeLinkCheck: Update docs A deep dive reveals that the needles in our haystack are actually regular expressions. (cherry picked from commit 076c5afd209e76c4da9d379115e95ef0550d5741) --- doc/build-helpers/testers.chapter.md | 19 +++++++++++-------- pkgs/build-support/testers/lychee.nix | 5 +++-- pkgs/tools/networking/lychee/tests/fail.nix | 2 +- pkgs/tools/networking/lychee/tests/ok.nix | 2 +- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/doc/build-helpers/testers.chapter.md b/doc/build-helpers/testers.chapter.md index bf00de8c41d3..0373a14c7fa9 100644 --- a/doc/build-helpers/testers.chapter.md +++ b/doc/build-helpers/testers.chapter.md @@ -67,9 +67,9 @@ This tester produces a package that does not produce useful outputs, but only su It has two modes: -- Use the returned package directly, and the build process will check that internal hyperlinks are correct. This runs in the sandbox, so it will not check external hyperlinks, but it is quick and reliable. +- Build the returned derivation; its build process will check that internal hyperlinks are correct. This runs in the sandbox, so it will not check external hyperlinks, but it is quick and reliable. -- Invoke the `.online` attribute with [`nix run`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-run) ([experimental](https://nixos.org/manual/nix/stable/contributing/experimental-features#xp-feature-nix-command)). This runs outside the sandbox, and check that both internal and external hyperlinks are correct. +- Invoke the `.online` attribute with [`nix run`](https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-run) ([experimental](https://nixos.org/manual/nix/stable/contributing/experimental-features#xp-feature-nix-command)). This runs outside the sandbox, and checks that both internal and external hyperlinks are correct. Example: ```shell @@ -84,16 +84,19 @@ It has two modes: `remap` (attribe set, optional) {#tester-lycheeLinkCheck-param-remap} -: An attribute set where the attribute names are the URLs to remap. +: An attribute set where the attribute names are regular expressions. + The values should be strings, derivations or path values. - The values should be store path strings, derivations or path values. + In the returned check's default configuration, external URLs are only checked when you run the `.online` attribute. - Before checking the existence of URLs, if it is equal to the attribute name, it is replaced by the value of the attribute. - If it is a subpath of the attribute name, it is replaced by a subpath of the value. + By adding remappings, you can check offline that URLs to external resources are correct, by providing a file system based stand-in. - This is useful for remapping URLs that are not accessible from the build environment. + Before checking the existence of a URL, the regular expressions are matched and replaced by their corresponding values. - Example: `{ "https://blog.example.com" = site; }` + Example: `{ "https://blog\\.example\\.com" = site; }` + + Store path in the attribute values are automatically prefixed with `file://`, because lychee requires this for paths in the file system. + If this is a problem, or if you need to control the order in which replacements are performed, use `extraConfig.remap` instead. `extraConfig` (attribute set) {#tester-lycheeLinkCheck-param-extraConfig} diff --git a/pkgs/build-support/testers/lychee.nix b/pkgs/build-support/testers/lychee.nix index 35cf84da9e53..89925c920147 100644 --- a/pkgs/build-support/testers/lychee.nix +++ b/pkgs/build-support/testers/lychee.nix @@ -1,12 +1,13 @@ deps@{ formats, lib, lychee, stdenv, writeShellApplication }: let - inherit (lib) concatLists isPath mapAttrsToList; + inherit (lib) isPath mapAttrsToList; inherit (lib.strings) hasPrefix; toURL = v: if builtins.isString v && hasPrefix builtins.storeDir v || isPath v - then "file://${v}" + then # lychee requires that paths on the file system are prefixed with file:// + "file://${v}" else "${v}"; # See https://nixos.org/manual/nixpkgs/unstable/#tester-lycheeLinkCheck diff --git a/pkgs/tools/networking/lychee/tests/fail.nix b/pkgs/tools/networking/lychee/tests/fail.nix index 970cc6976da1..cd98dd383146 100644 --- a/pkgs/tools/networking/lychee/tests/fail.nix +++ b/pkgs/tools/networking/lychee/tests/fail.nix @@ -9,7 +9,7 @@ let linkCheck = testers.lycheeLinkCheck rec { site = sitePkg + "/dist"; - remap = { "https://example.com"= site; }; + remap = { "https://exampl[e]\\.com" = site; }; }; failure = testers.testBuildFailure linkCheck; diff --git a/pkgs/tools/networking/lychee/tests/ok.nix b/pkgs/tools/networking/lychee/tests/ok.nix index 326cf0c6885e..6a6c0b9c87b4 100644 --- a/pkgs/tools/networking/lychee/tests/ok.nix +++ b/pkgs/tools/networking/lychee/tests/ok.nix @@ -3,7 +3,7 @@ let sitePkg = runCommand "site" { } '' dist=$out/dist mkdir -p $dist - echo "foo" > $dist/index.html + echo "foobar" > $dist/index.html echo "index" > $dist/foo.html ''; in testers.lycheeLinkCheck rec { From 5a51f54ec416ed15c7b8f242ef077df49a03dbe4 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 26 May 2024 22:57:03 +0200 Subject: [PATCH 15/78] testers.lycheeLinkCheck: Fix plain derivation remap, showcase emptyDirectory (cherry picked from commit 60536f85a3b967b0ee866b2fe5264d1faa774030) --- doc/build-helpers/testers.chapter.md | 9 +++++- pkgs/build-support/testers/lychee.nix | 8 +++--- pkgs/tools/networking/lychee/default.nix | 1 + .../lychee/tests/fail-emptyDirectory.nix | 28 +++++++++++++++++++ 4 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 pkgs/tools/networking/lychee/tests/fail-emptyDirectory.nix diff --git a/doc/build-helpers/testers.chapter.md b/doc/build-helpers/testers.chapter.md index 0373a14c7fa9..dd6989916156 100644 --- a/doc/build-helpers/testers.chapter.md +++ b/doc/build-helpers/testers.chapter.md @@ -93,7 +93,14 @@ It has two modes: Before checking the existence of a URL, the regular expressions are matched and replaced by their corresponding values. - Example: `{ "https://blog\\.example\\.com" = site; }` + Example: + + ```nix + { + "https://nix\\.dev/manual/nix/[a-z0-9.-]*" = "${nix.doc}/share/doc/nix/manual"; + "https://nixos\\.org/manual/nix/(un)?stable" = "${emptyDirectory}/placeholder-to-disallow-old-nix-docs-urls"; + } + ``` Store path in the attribute values are automatically prefixed with `file://`, because lychee requires this for paths in the file system. If this is a problem, or if you need to control the order in which replacements are performed, use `extraConfig.remap` instead. diff --git a/pkgs/build-support/testers/lychee.nix b/pkgs/build-support/testers/lychee.nix index 89925c920147..b8ce3e1014a7 100644 --- a/pkgs/build-support/testers/lychee.nix +++ b/pkgs/build-support/testers/lychee.nix @@ -4,11 +4,11 @@ let inherit (lib.strings) hasPrefix; toURL = v: - if builtins.isString v && hasPrefix builtins.storeDir v - || isPath v + let s = "${v}"; + in if hasPrefix builtins.storeDir s then # lychee requires that paths on the file system are prefixed with file:// - "file://${v}" - else "${v}"; + "file://${s}" + else s; # See https://nixos.org/manual/nixpkgs/unstable/#tester-lycheeLinkCheck # or doc/builders/testers.chapter.md diff --git a/pkgs/tools/networking/lychee/default.nix b/pkgs/tools/networking/lychee/default.nix index ede57b7470c1..0763ee302109 100644 --- a/pkgs/tools/networking/lychee/default.nix +++ b/pkgs/tools/networking/lychee/default.nix @@ -48,6 +48,7 @@ rustPlatform.buildRustPackage rec { # Which is true most of the time, but not necessarily after overriding. ok = callPackage ./tests/ok.nix { }; fail = callPackage ./tests/fail.nix { }; + fail-emptyDirectory = callPackage ./tests/fail-emptyDirectory.nix { }; network = testers.runNixOSTest ./tests/network.nix; }; diff --git a/pkgs/tools/networking/lychee/tests/fail-emptyDirectory.nix b/pkgs/tools/networking/lychee/tests/fail-emptyDirectory.nix new file mode 100644 index 000000000000..9db4b23b1bc9 --- /dev/null +++ b/pkgs/tools/networking/lychee/tests/fail-emptyDirectory.nix @@ -0,0 +1,28 @@ +{ runCommand, testers, emptyDirectory }: +let + sitePkg = runCommand "site" { } '' + dist=$out/dist + mkdir -p $dist + echo "foo" > $dist/index.html + echo "" > $dist/foo.html + ''; + check = testers.lycheeLinkCheck { + site = sitePkg + "/dist"; + remap = { + # Normally would recommend to append a subpath that hints why it's forbidden; see example in docs. + # However, we also want to test that a package is converted to a string *before* + # it's tested whether it's a store path. Mistake made during development caused: + # cannot check URI: InvalidUrlRemap("The remapping pattern must produce a valid URL, but it is not: /nix/store/4d0ix...empty-directory/foo + "https://example.com" = emptyDirectory; + }; + }; + + failure = testers.testBuildFailure check; +in + runCommand "link-check-fail" { inherit failure; } '' + # The details of the message might change, but we have to make sure the + # correct error is reported, so that we know it's not something else that + # went wrong. + grep 'empty-directory/foo.*Cannot find file' $failure/testBuildFailure.log >/dev/null + touch $out + '' From 871a6e453644f7fc0ca808690f5e92d5ab69390e Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 26 May 2024 23:24:27 +0200 Subject: [PATCH 16/78] testers.lycheeLinkCheck: Validate regex... ... because of the odd choice of config syntax. (cherry picked from commit 89092532e7992954abf05d25ea0578efa65889f7) --- pkgs/build-support/testers/lychee.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/testers/lychee.nix b/pkgs/build-support/testers/lychee.nix index b8ce3e1014a7..f74137e17f45 100644 --- a/pkgs/build-support/testers/lychee.nix +++ b/pkgs/build-support/testers/lychee.nix @@ -1,7 +1,7 @@ deps@{ formats, lib, lychee, stdenv, writeShellApplication }: let - inherit (lib) isPath mapAttrsToList; - inherit (lib.strings) hasPrefix; + inherit (lib) mapAttrsToList throwIf; + inherit (lib.strings) hasInfix hasPrefix escapeNixString; toURL = v: let s = "${v}"; @@ -10,6 +10,11 @@ let "file://${s}" else s; + withCheckedName = name: + throwIf + (hasInfix " " name) + "lycheeLinkCheck: remap patterns must not contain spaces. A space marks the end of the regex in lychee.toml. Please change attribute name remap.${escapeNixString name}"; + # See https://nixos.org/manual/nixpkgs/unstable/#tester-lycheeLinkCheck # or doc/builders/testers.chapter.md lycheeLinkCheck = { @@ -30,7 +35,10 @@ let config = { include_fragments = true; } // lib.optionalAttrs (finalAttrs.passthru.remap != { }) { - remap = mapAttrsToList (name: value: "${name} ${toURL value}") finalAttrs.passthru.remap; + remap = + mapAttrsToList + (name: value: withCheckedName name "${name} ${toURL value}") + finalAttrs.passthru.remap; } // extraConfig; online = writeShellApplication { name = "run-lychee-online"; From 912abfa907933d18ffd3ea28939f6ae7878bf158 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 27 May 2024 00:56:05 +0200 Subject: [PATCH 17/78] testers.lycheeLinkCheck: Edit documentation and messages Co-authored-by: Valentin Gagarin (cherry picked from commit 984b45c60921e5c46435a5dbfe3fe872cdb5066b) --- doc/build-helpers/testers.chapter.md | 8 ++++---- pkgs/build-support/testers/lychee.nix | 9 ++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/doc/build-helpers/testers.chapter.md b/doc/build-helpers/testers.chapter.md index dd6989916156..80d293cf1c70 100644 --- a/doc/build-helpers/testers.chapter.md +++ b/doc/build-helpers/testers.chapter.md @@ -44,7 +44,7 @@ If the `moduleNames` argument is omitted, `hasPkgConfigModules` will use `meta.p Check a packaged static site's links with the [`lychee` package](https://search.nixos.org/packages?show=lychee&type=packages&query=lychee). -You may use Nix to reproducibly build documentation sites and other static sites. +You may use Nix to reproducibly build static websites, such as for software documentation. Some packages will install documentation in their `out` or `doc` outputs, or maybe you have dedicated package where you've made your static site reproducible by running a generator, such as [Hugo](https://gohugo.io/) or [mdBook](https://rust-lang.github.io/mdBook/), in a derivation. If you have a static site that can be built with Nix, you can use `lycheeLinkCheck` to check that the hyperlinks in your site are correct, and do so as part of your Nix workflow and CI. @@ -85,11 +85,11 @@ It has two modes: `remap` (attribe set, optional) {#tester-lycheeLinkCheck-param-remap} : An attribute set where the attribute names are regular expressions. - The values should be strings, derivations or path values. + The values should be strings, derivations, or path values. In the returned check's default configuration, external URLs are only checked when you run the `.online` attribute. - By adding remappings, you can check offline that URLs to external resources are correct, by providing a file system based stand-in. + By adding remappings, you can check offline that URLs to external resources are correct, by providing a stand-in from the file system. Before checking the existence of a URL, the regular expressions are matched and replaced by their corresponding values. @@ -102,7 +102,7 @@ It has two modes: } ``` - Store path in the attribute values are automatically prefixed with `file://`, because lychee requires this for paths in the file system. + Store paths in the attribute values are automatically prefixed with `file://`, because lychee requires this for paths in the file system. If this is a problem, or if you need to control the order in which replacements are performed, use `extraConfig.remap` instead. `extraConfig` (attribute set) {#tester-lycheeLinkCheck-param-extraConfig} diff --git a/pkgs/build-support/testers/lychee.nix b/pkgs/build-support/testers/lychee.nix index f74137e17f45..80088dc4f963 100644 --- a/pkgs/build-support/testers/lychee.nix +++ b/pkgs/build-support/testers/lychee.nix @@ -11,9 +11,12 @@ let else s; withCheckedName = name: - throwIf - (hasInfix " " name) - "lycheeLinkCheck: remap patterns must not contain spaces. A space marks the end of the regex in lychee.toml. Please change attribute name remap.${escapeNixString name}"; + throwIf (hasInfix " " name) '' + lycheeLinkCheck: remap patterns must not contain spaces. + A space marks the end of the regex in lychee.toml. + + Please change attribute name 'remap.${escapeNixString name}' + ''; # See https://nixos.org/manual/nixpkgs/unstable/#tester-lycheeLinkCheck # or doc/builders/testers.chapter.md From 6a668b71eec7d2f2dce76975fa316ea81de3b88c Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Mon, 27 May 2024 00:59:02 +0200 Subject: [PATCH 18/78] testers.lycheeLinkCheck: Clarify test data (cherry picked from commit 5acbed79ee55233dfb4e803473783a85bdbb5666) --- pkgs/tools/networking/lychee/tests/fail.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/lychee/tests/fail.nix b/pkgs/tools/networking/lychee/tests/fail.nix index cd98dd383146..5a83814d3c44 100644 --- a/pkgs/tools/networking/lychee/tests/fail.nix +++ b/pkgs/tools/networking/lychee/tests/fail.nix @@ -3,7 +3,7 @@ let sitePkg = runCommand "site" { } '' dist=$out/dist mkdir -p $dist - echo "foo" > $dist/index.html + echo "foo" > $dist/index.html echo "index" > $dist/foo.html ''; @@ -16,6 +16,6 @@ let in runCommand "link-check-fail" { inherit failure; } '' - grep -F butwhere $failure/testBuildFailure.log >/dev/null + grep -F foos-missing-anchor $failure/testBuildFailure.log >/dev/null touch $out '' From f265769617d1b094b8dcb26fe0f608c55ce4c90c Mon Sep 17 00:00:00 2001 From: Yongun Seong Date: Mon, 27 May 2024 11:08:47 +0900 Subject: [PATCH 19/78] unison-fsmonitor: 0.3.3 -> 0.3.4 (cherry picked from commit 3b1b7987af4c3ac94c90f8f7a0e4a317d7d03353) --- pkgs/by-name/un/unison-fsmonitor/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/un/unison-fsmonitor/package.nix b/pkgs/by-name/un/unison-fsmonitor/package.nix index 6cc8913d3982..b351071b6d30 100644 --- a/pkgs/by-name/un/unison-fsmonitor/package.nix +++ b/pkgs/by-name/un/unison-fsmonitor/package.nix @@ -7,15 +7,15 @@ rustPlatform.buildRustPackage rec { pname = "unison-fsmonitor"; - version = "0.3.3"; + version = "0.3.4"; src = fetchFromGitHub { owner = "autozimu"; repo = "unison-fsmonitor"; rev = "v${version}"; - hash = "sha256-JA0WcHHDNuQOal/Zy3yDb+O3acZN3rVX1hh0rOtRR+8="; + hash = "sha256-U/KMKYqYVSeYBmW+PnXtvjnyUTjTJgtpwy1GPefqJOk="; }; - cargoHash = "sha256-aqAa0F1NSJI1nckTjG5C7VLxaLjJgD+9yK/IpclSMqs="; + cargoHash = "sha256-eKRayFU3xq2uo6YeFqcTPLInZYlympH6Z01vOCVsVqQ="; buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreServices From bdbbbc2c74f81c484cdc0f2a5ea5f554b8618af5 Mon Sep 17 00:00:00 2001 From: Ludovico Piero Date: Mon, 27 May 2024 11:36:29 +0900 Subject: [PATCH 20/78] samrewritten: change platforms to only x86_64-linux Signed-off-by: Ludovico Piero (cherry picked from commit 8259c8bd4d201d82a86fd008e7a15eff2dd972e6) --- pkgs/by-name/sa/samrewritten/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/sa/samrewritten/package.nix b/pkgs/by-name/sa/samrewritten/package.nix index 1cbaf4b79db8..375e3be3385a 100644 --- a/pkgs/by-name/sa/samrewritten/package.nix +++ b/pkgs/by-name/sa/samrewritten/package.nix @@ -43,6 +43,6 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/PaulCombal/SamRewritten"; license = lib.licenses.gpl3Plus; maintainers = with lib.maintainers; [ ludovicopiero ]; - platforms = lib.platforms.linux; + platforms = [ "x86_64-linux" ]; }; }) From 512a3fd04ac01d7a64866bfe56931dc16ea4a569 Mon Sep 17 00:00:00 2001 From: Aaron Andersen Date: Mon, 27 May 2024 20:21:08 -0400 Subject: [PATCH 21/78] kodi.packages.invidious: add missing infotagger dependency (cherry picked from commit ee947a38e298139386ad6bb86f66d8ba38c93a54) --- pkgs/applications/video/kodi/addons/invidious/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/video/kodi/addons/invidious/default.nix b/pkgs/applications/video/kodi/addons/invidious/default.nix index 36ae8608837d..b975bf48f9d4 100644 --- a/pkgs/applications/video/kodi/addons/invidious/default.nix +++ b/pkgs/applications/video/kodi/addons/invidious/default.nix @@ -1,4 +1,4 @@ -{ lib, rel, buildKodiAddon, fetchzip, addonUpdateScript, requests, inputstream-adaptive, inputstreamhelper }: +{ lib, rel, buildKodiAddon, fetchzip, addonUpdateScript, infotagger, requests, inputstream-adaptive, inputstreamhelper }: buildKodiAddon rec { pname = "invidious"; @@ -11,6 +11,7 @@ buildKodiAddon rec { }; propagatedBuildInputs = [ + infotagger requests inputstream-adaptive inputstreamhelper From 0b15e543c6f96070bfb5f954b282caf92ff12543 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Mon, 27 May 2024 14:27:24 +0530 Subject: [PATCH 22/78] nixos/hyprlock: init module (cherry picked from commit 07a0b79ed1c8422d92f87ab7291ea409b92c4355) --- nixos/modules/module-list.nix | 1 + nixos/modules/programs/wayland/hyprlock.nix | 32 +++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 nixos/modules/programs/wayland/hyprlock.nix diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 70482bffed56..a8edc16bcb69 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -293,6 +293,7 @@ ./programs/virt-manager.nix ./programs/wavemon.nix ./programs/wayland/cardboard.nix + ./programs/wayland/hyprlock.nix ./programs/wayland/hyprland.nix ./programs/wayland/labwc.nix ./programs/wayland/river.nix diff --git a/nixos/modules/programs/wayland/hyprlock.nix b/nixos/modules/programs/wayland/hyprlock.nix new file mode 100644 index 000000000000..9eecb6b9bb8e --- /dev/null +++ b/nixos/modules/programs/wayland/hyprlock.nix @@ -0,0 +1,32 @@ +{ lib, pkgs, config, ... }: + +let + cfg = config.programs.hyprlock; +in +{ + options.programs.hyprlock = { + enable = lib.mkEnableOption "hyprlock, Hyprland's GPU-accelerated screen locking utility"; + package = lib.mkPackageOption pkgs "hyprlock" { }; + hypridlePackage = lib.mkPackageOption pkgs "hypridle" { }; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = [ + cfg.package + cfg.hypridlePackage + ]; + + # Hyprlock needs Hypridle systemd service to be running to detect idle time + systemd.user.services.hypridle = { + description = "Hypridle idle daemon"; + wantedBy = [ "graphical-session.target" ]; + partOf = [ "graphical-session.target" ]; + script = lib.getExe cfg.hypridlePackage; + }; + + # Hyprlock needs PAM access to authenticate, else it fallbacks to su + security.pam.services.hyprlock = {}; + }; + + meta.maintainers = with lib.maintainers; [ johnrtitor ]; +} From d318a15bcadf732a9ddeda0fff5bebeda3c0522d Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Mon, 27 May 2024 17:41:36 +0530 Subject: [PATCH 23/78] nixos/hypridle: init (cherry picked from commit 353aa124467c324bb7f8293544683fae0770222f) --- nixos/modules/module-list.nix | 1 + nixos/modules/programs/wayland/hyprlock.nix | 9 +------ nixos/modules/services/wayland/hypridle.nix | 26 +++++++++++++++++++++ 3 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 nixos/modules/services/wayland/hypridle.nix diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index a8edc16bcb69..3a59e1245505 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -1326,6 +1326,7 @@ ./services/video/unifi-video.nix ./services/video/v4l2-relayd.nix ./services/wayland/cage.nix + ./services/wayland/hypridle.nix ./services/web-apps/akkoma.nix ./services/web-apps/alps.nix ./services/web-apps/anuko-time-tracker.nix diff --git a/nixos/modules/programs/wayland/hyprlock.nix b/nixos/modules/programs/wayland/hyprlock.nix index 9eecb6b9bb8e..6c60765e80cc 100644 --- a/nixos/modules/programs/wayland/hyprlock.nix +++ b/nixos/modules/programs/wayland/hyprlock.nix @@ -7,22 +7,15 @@ in options.programs.hyprlock = { enable = lib.mkEnableOption "hyprlock, Hyprland's GPU-accelerated screen locking utility"; package = lib.mkPackageOption pkgs "hyprlock" { }; - hypridlePackage = lib.mkPackageOption pkgs "hypridle" { }; }; config = lib.mkIf cfg.enable { environment.systemPackages = [ cfg.package - cfg.hypridlePackage ]; # Hyprlock needs Hypridle systemd service to be running to detect idle time - systemd.user.services.hypridle = { - description = "Hypridle idle daemon"; - wantedBy = [ "graphical-session.target" ]; - partOf = [ "graphical-session.target" ]; - script = lib.getExe cfg.hypridlePackage; - }; + services.hypridle.enable = true; # Hyprlock needs PAM access to authenticate, else it fallbacks to su security.pam.services.hyprlock = {}; diff --git a/nixos/modules/services/wayland/hypridle.nix b/nixos/modules/services/wayland/hypridle.nix new file mode 100644 index 000000000000..5442802df987 --- /dev/null +++ b/nixos/modules/services/wayland/hypridle.nix @@ -0,0 +1,26 @@ +{ lib, pkgs, config, ... }: + +let + cfg = config.services.hypridle; +in +{ + options.services.hypridle = { + enable = lib.mkEnableOption "hypridle, Hyprland's idle daemon"; + package = lib.mkPackageOption pkgs "hypridle" { }; + }; + + config = lib.mkIf cfg.enable { + environment.systemPackages = [ + cfg.package + ]; + + systemd.user.services.hypridle = { + description = "Hypridle idle daemon"; + wantedBy = [ "graphical-session.target" ]; + partOf = [ "graphical-session.target" ]; + script = lib.getExe cfg.package; + }; + }; + + meta.maintainers = with lib.maintainers; [ johnrtitor ]; +} From e5c147151a127f20a88d8277373660c70289a091 Mon Sep 17 00:00:00 2001 From: Nano Twerpus Date: Mon, 27 May 2024 16:12:31 -0400 Subject: [PATCH 24/78] jellyfin: 10.9.1 -> 10.9.3 The `default.nix` was also formatted with `nixfmt-rfc-style` to be `RFC 166`-compliant. (cherry picked from commit a7441feb23f2ba370fb3ae130f51113c5c72b8f2) --- pkgs/servers/jellyfin/default.nix | 38 +++++++++++++++++-------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/pkgs/servers/jellyfin/default.nix b/pkgs/servers/jellyfin/default.nix index ce59d31ce303..b122231c1f28 100644 --- a/pkgs/servers/jellyfin/default.nix +++ b/pkgs/servers/jellyfin/default.nix @@ -1,30 +1,29 @@ -{ lib -, fetchFromGitHub -, nixosTests -, stdenv -, dotnetCorePackages -, buildDotnetModule -, ffmpeg -, fontconfig -, freetype -, jellyfin-web -, sqlite +{ + lib, + fetchFromGitHub, + nixosTests, + stdenv, + dotnetCorePackages, + buildDotnetModule, + ffmpeg, + fontconfig, + freetype, + jellyfin-web, + sqlite, }: buildDotnetModule rec { pname = "jellyfin"; - version = "10.9.1"; # ensure that jellyfin-web has matching version + version = "10.9.3"; # ensure that jellyfin-web has matching version src = fetchFromGitHub { owner = "jellyfin"; repo = "jellyfin"; rev = "v${version}"; - sha256 = "sha256-ZvXz4gnpYE9bMvOHbmLhqJLUomPmk1K9ysw+Wlsyhr4="; + sha256 = "sha256-gJMz2LfxC0JXqGYNKNz1zRbWZOH1UxbcoGtmdymZ/Oo="; }; - propagatedBuildInputs = [ - sqlite - ]; + propagatedBuildInputs = [ sqlite ]; projectFile = "Jellyfin.Server/Jellyfin.Server.csproj"; executables = [ "jellyfin" ]; @@ -56,7 +55,12 @@ buildDotnetModule rec { homepage = "https://jellyfin.org/"; # https://github.com/jellyfin/jellyfin/issues/610#issuecomment-537625510 license = licenses.gpl2Plus; - maintainers = with maintainers; [ nyanloutre minijackson purcell jojosch ]; + maintainers = with maintainers; [ + nyanloutre + minijackson + purcell + jojosch + ]; mainProgram = "jellyfin"; platforms = dotnet-runtime.meta.platforms; }; From 0ef09bf23d51eb0036ed47bf5f4940b703abc531 Mon Sep 17 00:00:00 2001 From: Nano Twerpus Date: Mon, 27 May 2024 16:13:02 -0400 Subject: [PATCH 25/78] jellyfin-web: 10.9.2 -> 10.9.3 (cherry picked from commit 5cd7bbe6fef246db9c1e3cbbd4e26c45f8c13074) --- pkgs/servers/jellyfin/web.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/jellyfin/web.nix b/pkgs/servers/jellyfin/web.nix index 73bae649e834..16e83e1f6217 100644 --- a/pkgs/servers/jellyfin/web.nix +++ b/pkgs/servers/jellyfin/web.nix @@ -4,6 +4,7 @@ overrideSDK, fetchFromGitHub, buildNpmPackage, + jellyfin, nix-update-script, pkg-config, xcbuild, @@ -26,16 +27,16 @@ let in buildNpmPackage' rec { pname = "jellyfin-web"; - version = "10.9.2"; + version = "10.9.3"; src = fetchFromGitHub { owner = "jellyfin"; repo = "jellyfin-web"; rev = "v${version}"; - hash = "sha256-0MBVcMajRk+CR0nZ8Dtd3Mg4tKdLiHGs3AhI8BEqZyE="; + hash = "sha256-duq2tilUDEzj7o3Nq3Ku5qVJm4XDqVmqkQQIK/dlTpE="; }; - npmDepsHash = "sha256-aN+EXHRXez26oS4Ad1d9HSBkwVKnvYQMJvJVypDCk+0="; + npmDepsHash = "sha256-nKA/mR1ug1yq4+jJGhWGtAL9Zsx3KjDPqt5rkCE4LFU="; npmBuildScript = [ "build:production" ]; From 62f30688dcd1c1d99e6162b46b056a5f51e734b8 Mon Sep 17 00:00:00 2001 From: Nano Twerpus Date: Mon, 27 May 2024 16:32:54 -0400 Subject: [PATCH 26/78] jellyfin-web: add `assert version == jellyfin.version` to `src` (cherry picked from commit 30dac56dab94c3dfbf50cd18c0003cf2d87839c1) --- pkgs/servers/jellyfin/web.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/servers/jellyfin/web.nix b/pkgs/servers/jellyfin/web.nix index 16e83e1f6217..f5d65ae05983 100644 --- a/pkgs/servers/jellyfin/web.nix +++ b/pkgs/servers/jellyfin/web.nix @@ -29,12 +29,14 @@ buildNpmPackage' rec { pname = "jellyfin-web"; version = "10.9.3"; - src = fetchFromGitHub { - owner = "jellyfin"; - repo = "jellyfin-web"; - rev = "v${version}"; - hash = "sha256-duq2tilUDEzj7o3Nq3Ku5qVJm4XDqVmqkQQIK/dlTpE="; - }; + src = + assert version == jellyfin.version; + fetchFromGitHub { + owner = "jellyfin"; + repo = "jellyfin-web"; + rev = "v${version}"; + hash = "sha256-duq2tilUDEzj7o3Nq3Ku5qVJm4XDqVmqkQQIK/dlTpE="; + }; npmDepsHash = "sha256-nKA/mR1ug1yq4+jJGhWGtAL9Zsx3KjDPqt5rkCE4LFU="; From 268c53b55a6ab4d6a1d35893e301398395c9236a Mon Sep 17 00:00:00 2001 From: Honnip Date: Mon, 27 May 2024 01:28:16 +0900 Subject: [PATCH 27/78] nixosTests.gnome-extensions: `emoji-selector` has been removed (cherry picked from commit d7062ba870086eca86f903774e190ae0aa982ac7) --- nixos/tests/gnome-extensions.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/nixos/tests/gnome-extensions.nix b/nixos/tests/gnome-extensions.nix index 51ccabd7e6a6..b2b54e4b13a1 100644 --- a/nixos/tests/gnome-extensions.nix +++ b/nixos/tests/gnome-extensions.nix @@ -84,7 +84,6 @@ import ./make-test-python.nix ( "dash-to-dock" "dash-to-panel" "ddterm" - "emoji-selector" "gsconnect" "system-monitor-next" "desktop-icons-ng-ding" From 3fe54eb8514f319a28a92b7f3b3782b9fcda5f31 Mon Sep 17 00:00:00 2001 From: Honnip Date: Mon, 27 May 2024 18:02:14 +0900 Subject: [PATCH 28/78] nixosTests.gnome-extensions: `ENABLED` and `DISABLED` states are renamed https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/01e9724d75a273ca43a7c268302d6c3802c8f850 Fix the test failure caused by the renaming of the states name from `ENABLED`, `DISABLED` to `ACTIVE` and `INACTIVE` (cherry picked from commit b2069e7fc72f542f65e2b8802b26fffffff5de69) --- nixos/tests/gnome-extensions.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/tests/gnome-extensions.nix b/nixos/tests/gnome-extensions.nix index b2b54e4b13a1..332cf44b0ed4 100644 --- a/nixos/tests/gnome-extensions.nix +++ b/nixos/tests/gnome-extensions.nix @@ -137,11 +137,11 @@ import ./make-test-python.nix ( # Enable and optionally disable machine.succeed(f"${run "gnome-extensions enable {extension}"}") - checkState("ENABLED", extension) + checkState("ACTIVE", extension) if disable: machine.succeed(f"${run "gnome-extensions disable {extension}"}") - checkState("DISABLED", extension) + checkState("INACTIVE", extension) '' + lib.concatLines (map (e: ''checkExtension("${e}", False)'') alwaysOnExtensions) + lib.concatLines (map (e: ''checkExtension("${e}", True)'') testExtensions) From 8175851944484b8bfd88413e04ab4a8f896a92fa Mon Sep 17 00:00:00 2001 From: Honnip Date: Mon, 27 May 2024 01:23:40 +0900 Subject: [PATCH 29/78] gnomeExtensions.mullvad-indicator: remove outdated patch (cherry picked from commit 709d32685862eef770bc7586d4a41f9465ab791d) --- .../gnome/extensions/extensionOverrides.nix | 10 -------- ...ullvadindicator_at_pobega.github.com.patch | 25 ------------------- 2 files changed, 35 deletions(-) delete mode 100644 pkgs/desktops/gnome/extensions/extensionOverridesPatches/mullvadindicator_at_pobega.github.com.patch diff --git a/pkgs/desktops/gnome/extensions/extensionOverrides.nix b/pkgs/desktops/gnome/extensions/extensionOverrides.nix index 373715d357ed..572f937738ed 100644 --- a/pkgs/desktops/gnome/extensions/extensionOverrides.nix +++ b/pkgs/desktops/gnome/extensions/extensionOverrides.nix @@ -14,8 +14,6 @@ , netcat-gnu , nvme-cli , procps -, pulseaudio -, python3 , smartmontools , substituteAll , touchegg @@ -106,14 +104,6 @@ super: lib.trivial.pipe super [ ]; })) - (patchExtension "mullvadindicator@pobega.github.com" (old: { - patches = [ - # Patch from https://github.com/Pobega/gnome-shell-extension-mullvad-indicator/pull/36 - # tweaked to drop the Makefile changes to fix application - ./extensionOverridesPatches/mullvadindicator_at_pobega.github.com.patch - ]; - })) - (patchExtension "pano@elhan.io" (old: { patches = [ (substituteAll { diff --git a/pkgs/desktops/gnome/extensions/extensionOverridesPatches/mullvadindicator_at_pobega.github.com.patch b/pkgs/desktops/gnome/extensions/extensionOverridesPatches/mullvadindicator_at_pobega.github.com.patch deleted file mode 100644 index 772da9427110..000000000000 --- a/pkgs/desktops/gnome/extensions/extensionOverridesPatches/mullvadindicator_at_pobega.github.com.patch +++ /dev/null @@ -1,25 +0,0 @@ -From ea472538fc73e9ab81e50183444dbb256d32ecc0 Mon Sep 17 00:00:00 2001 -From: Sergio Rubio -Date: Wed, 27 Mar 2024 20:43:38 +0100 -Subject: [PATCH] Bump GNOME desktop version - -The extension is 46 compatible. - ---- - metadata.json | 3 ++- - 1 file changed, 2 insertions(+), 1 deletions(-) - -diff --git a/metadata.json b/metadata.json -index bc0e272..e647258 100644 ---- a/metadata.json -+++ b/metadata.json -@@ -3,7 +3,8 @@ - "description": "Mullvad connection status indicator", - "uuid": "mullvadindicator@pobega.github.com", - "shell-version": [ -- "45" -+ "45", -+ "46" - ], - "url": "https://github.com/Pobega/gnome-shell-extension-mullvad-indicator", - "settings-schema": "org.gnome.shell.extensions.MullvadIndicator", From a6d2eba009ac68b19b5a61d2e024425d23276c1d Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Sat, 25 May 2024 00:06:44 +0000 Subject: [PATCH 30/78] python312Packages.ax: disable tests on Python 3.12 The test suite has a number of failures (not limited to): FAILED ax/analysis/helpers/tests/test_cross_validation_helpers.py::TestCrossValidationHelpers::test_get_min_max_with_errors - SystemError: returned a... FAILED ax/analysis/helpers/tests/test_cross_validation_helpers.py::TestCrossValidationHelpers::test_obs_vs_pred_dropdown_plot - SystemError: returned a... FAILED ax/analysis/helpers/tests/test_cross_validation_helpers.py::TestCrossValidationHelpers::test_store_df_to_file - SystemError: returned a... FAILED ax/analysis/helpers/tests/test_cross_validation_helpers.py::TestCrossValidationHelpers::test_store_plot_as_dict - SystemError: returned a... FAILED ax/analysis/helpers/tests/test_cv_consistency_checks.py::TestCVConsistencyCheck::test_error_scatter_data_branin - SystemError: returned a... FAILED ax/analysis/helpers/tests/test_cv_consistency_checks.py::TestCVConsistencyCheck::test_error_scatter_trace_branin - SystemError: returned a... Irritatingly enough, disabling those tests causes (or allows?) different tests to fail. After chasing these for some time, it proved easier to disable the test suite for Python 3.12. (cherry picked from commit 13e2dcabbc871b8d83793747d43ed43cf7a13d95) --- pkgs/development/python-modules/ax/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/ax/default.nix b/pkgs/development/python-modules/ax/default.nix index ac6f96e48f2a..dddcc6e1ebeb 100644 --- a/pkgs/development/python-modules/ax/default.nix +++ b/pkgs/development/python-modules/ax/default.nix @@ -2,11 +2,13 @@ lib, buildPythonPackage, fetchFromGitHub, + ax, botorch, ipywidgets, jinja2, pandas, plotly, + python, setuptools, setuptools-scm, typeguard, @@ -79,6 +81,11 @@ buildPythonPackage rec { ]; pythonImportsCheck = [ "ax" ]; + # Many portions of the test suite fail under Python 3.12 + doCheck = lib.versions.majorMinor python.version != "3.12"; + + passthru.tests.check = ax.overridePythonAttrs { doCheck = true; }; + meta = with lib; { description = "Ax is an accessible, general-purpose platform for understanding, managing, deploying, and automating adaptive experiments"; homepage = "https://ax.dev/"; From 9c8cced0fa7aab570f71f1736375223c4682e3d2 Mon Sep 17 00:00:00 2001 From: luoch Date: Mon, 27 May 2024 16:35:09 +0800 Subject: [PATCH 31/78] dbeaver-bin: add `wrapGAppsHook3` (cherry picked from commit 4082d7e1153ec015299bda271c5909eef476ea42) --- pkgs/by-name/db/dbeaver-bin/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/db/dbeaver-bin/package.nix b/pkgs/by-name/db/dbeaver-bin/package.nix index c4998ec7ce90..4f516930c313 100644 --- a/pkgs/by-name/db/dbeaver-bin/package.nix +++ b/pkgs/by-name/db/dbeaver-bin/package.nix @@ -5,6 +5,7 @@ , openjdk17 , gnused , autoPatchelfHook +, wrapGAppsHook3 }: stdenvNoCC.mkDerivation (finalAttrs: { @@ -15,6 +16,7 @@ stdenvNoCC.mkDerivation (finalAttrs: { makeWrapper gnused autoPatchelfHook + wrapGAppsHook3 ]; src = From 79feebc8e0d827135f586eee488d16d5e26706db Mon Sep 17 00:00:00 2001 From: Mauricio Collares Date: Mon, 27 May 2024 11:42:55 +0200 Subject: [PATCH 32/78] sageWithDoc: add sphinx 7.3 update patch (cherry picked from commit 544465ef9820c0a0569a675265a0bd05f899a158) --- pkgs/applications/science/math/sage/sage-src.nix | 11 +++++++++-- pkgs/applications/science/math/sage/sagedoc.nix | 4 ---- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/science/math/sage/sage-src.nix b/pkgs/applications/science/math/sage/sage-src.nix index b1c9c62a5748..de0c2e3b1e20 100644 --- a/pkgs/applications/science/math/sage/sage-src.nix +++ b/pkgs/applications/science/math/sage/sage-src.nix @@ -61,12 +61,19 @@ stdenv.mkDerivation rec { hash = "sha256-uCXchYx26DdxTjR1k2748KCEHPnekKS2fAM7SpyhNvM="; }) - # https://github.com/sagemath/sage/pull/37763 + # https://github.com/sagemath/sage/pull/37763, landed in 10.4.beta2 (fetchpatch { name = "scipy-fault-tolerance.patch"; - url = "https://github.com/sagemath/sage/commit/547d502ed56f9fd44eb5d9b4ee0824746c60fef7.diff"; + url = "https://github.com/sagemath/sage/commit/551139c09f26a5da96b1187c3f0dd17b8d80ef84.diff"; hash = "sha256-PR4przrZ3ieHaW2nSY7l7VhNfrUupu9yCIrXpeyoAgg="; }) + + # first two commits from https://github.com/sagemath/sage/pull/38100 + (fetchpatch { + name = "sphinx-7.3-update.patch"; + url = "https://github.com/sagemath/sage/compare/10.4.beta7...d2932e142991b442a3eee5dc4f8949e3f7e6fe5c.patch"; + hash = "sha256-g6w0ImE0d2ocKnbGMQikcz9eI9r3/gESlA1NrQfGimk="; + }) ]; # Patches needed because of package updates. We could just pin the versions of diff --git a/pkgs/applications/science/math/sage/sagedoc.nix b/pkgs/applications/science/math/sage/sagedoc.nix index 5e2191486bf0..cbf593398ac4 100644 --- a/pkgs/applications/science/math/sage/sagedoc.nix +++ b/pkgs/applications/science/math/sage/sagedoc.nix @@ -24,10 +24,6 @@ stdenv.mkDerivation rec { export HOME="$TMPDIR/sage_home" mkdir -p "$HOME" - # adapted from src/doc/Makefile (doc-src target), which tries to call Sage from PATH - mkdir -p $SAGE_DOC_SRC_OVERRIDE/en/reference/repl - ${sage-with-env}/bin/sage -advanced > $SAGE_DOC_SRC_OVERRIDE/en/reference/repl/options.txt - # needed to link them in the sage docs using intersphinx export PPLPY_DOCS=${python3.pkgs.pplpy.doc}/share/doc/pplpy From d74975e8e2467bcaa8b55c47097255530fbd53f3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 09:01:17 +0000 Subject: [PATCH 33/78] vinegar: 1.7.3 -> 1.7.4; Add childwindow patch; pinned Wine to 9.2-staging (#315297) This PR adds the following: - Updates the hash and version for vinegar - Adds the childwindow patch (from the vinegar flatpak) - Ping the WINE version to 9.2-staging (this is the version of WINE vinegar ships with in their flatpak) and with this, the nix package will be the same functionally as the official Flatpak. (cherry picked from commit 03eddf9906401be18a9d37a0ff8215629a8c7ea0) Co-authored-by: Liquidovski <109692107+liquidovski@users.noreply.github.com> --- pkgs/by-name/vi/vinegar/package.nix | 64 ++++++++++++++++++++--------- 1 file changed, 45 insertions(+), 19 deletions(-) diff --git a/pkgs/by-name/vi/vinegar/package.nix b/pkgs/by-name/vi/vinegar/package.nix index 19dd30209443..f77d8127367b 100644 --- a/pkgs/by-name/vi/vinegar/package.nix +++ b/pkgs/by-name/vi/vinegar/package.nix @@ -10,40 +10,66 @@ , vulkan-headers , wine64Packages , fetchpatch +, fetchFromGitLab +, fetchurl +, }: let - # wine-staging doesn't support overrideAttrs for now + stagingPatch = fetchFromGitLab { + sha256 = "sha256-VQ4j4PuXRoXbCUZ16snVO+jRvuKD4Rjn14R7bhwdAco="; + domain = "gitlab.winehq.org"; + owner = "wine"; + repo = "wine-staging"; + rev = "v9.2"; + }; + wine = wine64Packages.staging.overrideDerivation (oldAttrs: { - patches = - (oldAttrs.patches or []) + prePatch = '' + patchShebangs tools + cp -r ${stagingPatch}/patches ${stagingPatch}/staging . + chmod +w patches + patchShebangs ./patches/gitapply.sh + python3 ./staging/patchinstall.py --destdir="$PWD" --all + ''; + patches = (oldAttrs.patches or [ ]) ++ [ - # upstream issue: https://bugs.winehq.org/show_bug.cgi?id=55604 - # Here are the currently applied patches for Roblox to run under WINE: - (fetchpatch { - name = "vinegar-wine-segregrevert.patch"; - url = "https://raw.githubusercontent.com/flathub/org.vinegarhq.Vinegar/e24cb9dfa996bcfeaa46504c0375660fe271148d/patches/wine/segregrevert.patch"; - hash = "sha256-+3Nld81nG3GufI4jAF6yrWfkJmsSCOku39rx0Hov29c="; - }) - (fetchpatch { - name = "vinegar-wine-mouselock.patch"; - url = "https://raw.githubusercontent.com/flathub/org.vinegarhq.Vinegar/e24cb9dfa996bcfeaa46504c0375660fe271148d/patches/wine/mouselock.patch"; - hash = "sha256-0AGA4AQbxTL5BGVbm072moav7xVA3zpotYqM8pcEDa4="; - }) - ]; + (fetchurl { + name = "childwindow.patch"; + hash = "sha256-u3mDvlbhQnfh2tUKb8jNJA0tTcLIaKVLfY8ktJmeRns="; + url = "https://raw.githubusercontent.com/flathub/org.vinegarhq.Vinegar/9f43ce33a691afb50562d95adfc6719a3b58ddb7/patches/wine/childwindow.patch"; + }) + (fetchpatch { + name = "mouselock.patch"; + hash = "sha256-0AGA4AQbxTL5BGVbm072moav7xVA3zpotYqM8pcEDa4="; + url = "https://raw.githubusercontent.com/flathub/org.vinegarhq.Vinegar/9f43ce33a691afb50562d95adfc6719a3b58ddb7/patches/wine/mouselock.patch"; + }) + (fetchpatch { + name = "segregrevert.patch"; + hash = "sha256-+3Nld81nG3GufI4jAF6yrWfkJmsSCOku39rx0Hov29c="; + url = "https://raw.githubusercontent.com/flathub/org.vinegarhq.Vinegar/9f43ce33a691afb50562d95adfc6719a3b58ddb7/patches/wine/segregrevert.patch"; + }) + ]; + src = fetchFromGitLab rec { + sha256 = "sha256-GlPH34dr9aHx7xvlcbtDMn/wrY//DP58ilXjhQXgihQ="; + domain = "gitlab.winehq.org"; + owner = "wine"; + repo = "wine"; + rev = "wine-9.2"; + }; }); in buildGoModule rec { pname = "vinegar"; - version = "1.7.3"; + version = "1.7.4"; src = fetchFromGitHub { owner = "vinegarhq"; repo = "vinegar"; rev = "v${version}"; - hash = "sha256-aKL+4jw/uMbbvLRCBHstCTrcQ1PTYSCwMNgXTvSvMeY="; + hash = "sha256-4tkcrUzW8la5WiDtGUvvsRzFqZM1gqnWWAzXc82hirM="; }; - vendorHash = "sha256-OaMfWecOPQh6quXjYkZLyBDHZ9TINSA7Ue/Y0sz5ZYY="; + vendorHash = "sha256-pi9FjKYXH8cqTx2rTRCyT4+pOM5HnIKosEcmcpbuywQ="; nativeBuildInputs = [ pkg-config makeBinaryWrapper ]; buildInputs = [ libGL libxkbcommon xorg.libX11 xorg.libXcursor xorg.libXfixes wayland vulkan-headers wine ]; From 7f2547a15b45db19a21d099cb4caad2695f28d7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 12 May 2024 23:20:40 +0200 Subject: [PATCH 34/78] tailscale: fix tailscale ssh Closes #310950 (cherry picked from commit d2eeeb450a8d9c2e02d8d2e2c2101b39df07e17d) --- pkgs/servers/tailscale/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/servers/tailscale/default.nix b/pkgs/servers/tailscale/default.nix index 9e1a31873e46..216add099af5 100644 --- a/pkgs/servers/tailscale/default.nix +++ b/pkgs/servers/tailscale/default.nix @@ -2,6 +2,7 @@ , stdenv , buildGoModule , fetchFromGitHub +, fetchpatch , makeWrapper , getent , iproute2 @@ -24,6 +25,16 @@ buildGoModule { rev = "v${version}"; hash = "sha256-ETBca3qKO2iS30teIF5sr/oyJdRSKFqLFVO3+mmm7bo="; }; + + patches = [ + # Fix "tailscale ssh" when built with ts_include_cli tag + # https://github.com/tailscale/tailscale/pull/12109 + (fetchpatch { + url = "https://github.com/tailscale/tailscale/commit/325ca13c4549c1af58273330744d160602218af9.patch"; + hash = "sha256-SMwqZiGNVflhPShlHP+7Gmn0v4b6Gr4VZGIF/oJAY8M="; + }) + ]; + vendorHash = "sha256-Hd77xy8stw0Y6sfk3/ItqRIbM/349M/4uf0iNy1xJGw="; nativeBuildInputs = lib.optionals stdenv.isLinux [ makeWrapper ]; From e0fa66fd9566809a8d7f26c0d6a2cd54f8d44e67 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 09:13:32 +0000 Subject: [PATCH 35/78] grype: unbreak build (#315281) (cherry picked from commit 9d97550a5562a5ff714679337e6650f1d0db19d9) Co-authored-by: sveitser --- pkgs/by-name/gr/grype/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/gr/grype/package.nix b/pkgs/by-name/gr/grype/package.nix index 25cf7d472839..2394ba246572 100644 --- a/pkgs/by-name/gr/grype/package.nix +++ b/pkgs/by-name/gr/grype/package.nix @@ -93,6 +93,11 @@ buildGoModule rec { substituteInPlace grype/presenter/sarif/presenter_test.go \ --replace-fail "Test_SarifIsValid" "SkipTest_SarifIsValid" + # May fail on NixOS, probably due bug in how syft handles tmpfs. + # See https://github.com/anchore/grype/issues/1822 + substituteInPlace grype/distro/distro_test.go \ + --replace-fail "Test_NewDistroFromRelease_Coverage" "SkipTest_NewDistroFromRelease_Coverage" + # segfault rm grype/db/v5/namespace/cpe/namespace_test.go ''; From e0d79f2bfb589b4ec89e1ae3c1d27b0a410c748c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 May 2024 09:17:09 +0000 Subject: [PATCH 36/78] python3Packages.zconfig: 4.0 -> 4.1 (#315284) The pypi artifact has been renamed from ZConfig to zconfig. Unbreaks the build. (cherry picked from commit cdda685ca98d59074ecdc8b074e34e1967d388e2) Co-authored-by: Mathis Antony --- pkgs/development/python-modules/zconfig/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/zconfig/default.nix b/pkgs/development/python-modules/zconfig/default.nix index 3fc0d7946757..ee8eb919c3eb 100644 --- a/pkgs/development/python-modules/zconfig/default.nix +++ b/pkgs/development/python-modules/zconfig/default.nix @@ -14,15 +14,14 @@ buildPythonPackage rec { pname = "zconfig"; - version = "4.0"; + version = "4.1"; pyproject = true; disabled = pythonOlder "3.7"; src = fetchPypi { - pname = "ZConfig"; - inherit version; - hash = "sha256-+NZC+6a6mNCGMb4sH3GtGVfAUf70qj0/ufHgjcYdAVY="; + inherit pname version; + hash = "sha256-tqed2hV/NpjIdo0s7cJjIW6K8kDTz50JoCpkKREU6yA="; }; patches = lib.optional stdenv.hostPlatform.isMusl ./remove-setlocale-test.patch; From 3380d2a9bf667c0466674232f13a7c9b64c23294 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 28 May 2024 09:05:35 +0200 Subject: [PATCH 37/78] gnome-control-center: Add missing dependency This was previously propagated by mutter. (e6719289cdd68c290fa076a6409a2d89535ade5e) (cherry picked from commit 63197e9e3d123ec27dbaa7a1696c04e30cab1ccb) --- pkgs/desktops/gnome/core/gnome-control-center/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/desktops/gnome/core/gnome-control-center/default.nix b/pkgs/desktops/gnome/core/gnome-control-center/default.nix index b3b5d2594d21..338fa59a2a80 100644 --- a/pkgs/desktops/gnome/core/gnome-control-center/default.nix +++ b/pkgs/desktops/gnome/core/gnome-control-center/default.nix @@ -28,6 +28,7 @@ , gst_all_1 , gtk4 , ibus +, json-glib , libgtop , libgudev , libadwaita @@ -122,6 +123,7 @@ stdenv.mkDerivation (finalAttrs: { gsound gtk4 ibus + json-glib libepoxy libgtop libgudev From bd077e83f329f4a395792af16aad06f0f51d99b7 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 28 May 2024 09:25:39 +0200 Subject: [PATCH 38/78] phoc: Add missing dependency This was previously propagated by mutter. (e6719289cdd68c290fa076a6409a2d89535ade5e) (cherry picked from commit b53ea07f5ce927636a1fa5d45aa8e0f5b15cc99c) --- pkgs/applications/misc/phoc/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/misc/phoc/default.nix b/pkgs/applications/misc/phoc/default.nix index 534556e231de..7f75f856e7fd 100644 --- a/pkgs/applications/misc/phoc/default.nix +++ b/pkgs/applications/misc/phoc/default.nix @@ -13,6 +13,7 @@ , gnome-desktop , glib , gtk3 +, json-glib , wayland , libdrm , libxkbcommon @@ -51,6 +52,7 @@ stdenv.mkDerivation (finalAttrs: { gnome-desktop # For keybindings settings schemas gnome.mutter + json-glib wayland finalAttrs.wlroots xorg.xcbutilwm From 880c51aadc7858457ce95409eb81a3a994e26bbf Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:48:30 +0000 Subject: [PATCH 39/78] =?UTF-8?q?evince:=2046.1=20=E2=86=92=2046.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/evince/-/compare/46.1...46.3 (cherry picked from commit 1e5cbf80383f7fa4d4ba423ef942512b1ff04fb9) --- pkgs/desktops/gnome/core/evince/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/desktops/gnome/core/evince/default.nix b/pkgs/desktops/gnome/core/evince/default.nix index daf912e2a7c1..a9192f33d000 100644 --- a/pkgs/desktops/gnome/core/evince/default.nix +++ b/pkgs/desktops/gnome/core/evince/default.nix @@ -40,15 +40,15 @@ , withLibsecret ? true }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "evince"; - version = "46.1"; + version = "46.3"; outputs = [ "out" "dev" "devdoc" ]; src = fetchurl { - url = "mirror://gnome/sources/evince/${lib.versions.major version}/${pname}-${version}.tar.xz"; - hash = "sha256-lLtSU2WwYKKML2AX0iy/KvURVQclSqQum/wAC7wYq2I="; + url = "mirror://gnome/sources/evince/${lib.versions.major finalAttrs.version}/evince-${finalAttrs.version}.tar.xz"; + hash = "sha256-vA0dQbnX/8di6Z0qv6+sv3RRgvCzHYbbXuyMZ/XzAGs="; }; depsBuildBuild = [ @@ -121,7 +121,7 @@ stdenv.mkDerivation rec { passthru = { updateScript = gnome.updateScript { - packageName = pname; + packageName = "evince"; }; }; @@ -141,4 +141,4 @@ stdenv.mkDerivation rec { mainProgram = "evince"; maintainers = teams.gnome.members ++ teams.pantheon.members; }; -} +}) From 3ce3aded9f1a009e42fb823c1591b244427deac1 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:49:38 +0000 Subject: [PATCH 40/78] =?UTF-8?q?gnome.file-roller:=2044.2=20=E2=86=92=204?= =?UTF-8?q?4.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/file-roller/-/compare/44.2...44.3 (cherry picked from commit aa2d96b2b865121583665344b4839f8539a7e2ad) --- pkgs/desktops/gnome/apps/file-roller/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/apps/file-roller/default.nix b/pkgs/desktops/gnome/apps/file-roller/default.nix index 27c189af64cb..3c6cb7264dc3 100644 --- a/pkgs/desktops/gnome/apps/file-roller/default.nix +++ b/pkgs/desktops/gnome/apps/file-roller/default.nix @@ -26,11 +26,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "file-roller"; - version = "44.2"; + version = "44.3"; src = fetchurl { url = "mirror://gnome/sources/file-roller/${lib.versions.major finalAttrs.version}/file-roller-${finalAttrs.version}.tar.xz"; - hash = "sha256-LFcXzn8F+6sTyEe2zjGxsCSIYfp6uPD/Hx4dRdHizfk="; + hash = "sha256-BMinRiX+yEJn/exAMGr7QQS9My2FBh4NNtSrBTOt+ko="; }; nativeBuildInputs = [ From 92e004ec2da244500ac4782ae0995e835207871a Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:50:27 +0000 Subject: [PATCH 41/78] =?UTF-8?q?gnome.gnome-initial-setup:=2046.0=20?= =?UTF-8?q?=E2=86=92=2046.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-initial-setup/-/compare/46.0...46.2 (cherry picked from commit dd7db60d7bf346f0a8db37e60d26c8b640dd809c) --- .../gnome/core/gnome-initial-setup/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/desktops/gnome/core/gnome-initial-setup/default.nix b/pkgs/desktops/gnome/core/gnome-initial-setup/default.nix index 055c811263db..19280b1bff92 100644 --- a/pkgs/desktops/gnome/core/gnome-initial-setup/default.nix +++ b/pkgs/desktops/gnome/core/gnome-initial-setup/default.nix @@ -34,13 +34,13 @@ , gsettings-desktop-schemas }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "gnome-initial-setup"; - version = "46.0"; + version = "46.2"; src = fetchurl { - url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; - hash = "sha256-+O6dzqfjXnNeqjvI0QQdBrtk6/HhBG5ejkjx+0QVGEc="; + url = "mirror://gnome/sources/gnome-initial-setup/${lib.versions.major finalAttrs.version}/gnome-initial-setup-${finalAttrs.version}.tar.xz"; + hash = "sha256-bHktiSrbYLDeC33oglwUlD0c0nmvT5x2So9UEbYKjyc="; }; patches = [ @@ -94,8 +94,8 @@ stdenv.mkDerivation rec { passthru = { updateScript = gnome.updateScript { - packageName = pname; - attrPath = "gnome.${pname}"; + packageName = "gnome-initial-setup"; + attrPath = "gnome.gnome-initial-setup"; }; }; @@ -106,4 +106,4 @@ stdenv.mkDerivation rec { platforms = platforms.linux; maintainers = teams.gnome.members; }; -} +}) From bf5da9a4e79d2e2b3f10945c6f07d43c86f55b31 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:50:41 +0000 Subject: [PATCH 42/78] =?UTF-8?q?gnome.gnome-maps:=2046.10=20=E2=86=92=204?= =?UTF-8?q?6.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-maps/-/compare/v46.10...v46.11 (cherry picked from commit c130d93c68aee5e2373826ef5f45035d53342cde) --- pkgs/desktops/gnome/apps/gnome-maps/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/apps/gnome-maps/default.nix b/pkgs/desktops/gnome/apps/gnome-maps/default.nix index 99815109624c..074c40e691f9 100644 --- a/pkgs/desktops/gnome/apps/gnome-maps/default.nix +++ b/pkgs/desktops/gnome/apps/gnome-maps/default.nix @@ -29,11 +29,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-maps"; - version = "46.10"; + version = "46.11"; src = fetchurl { url = "mirror://gnome/sources/gnome-maps/${lib.versions.major finalAttrs.version}/gnome-maps-${finalAttrs.version}.tar.xz"; - hash = "sha256-XyXul6DC/t+E8M8DkrTvi+GT4/bOJfl1RntvzsBUIa8="; + hash = "sha256-lAtBuXQLCBMyXjkWdYcWz4+g7k4MkZHyYM7AbZITWDU="; }; doCheck = !stdenv.isDarwin; From 7e3b2c6af2d7f623841dc4646f4e24c830834c62 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:51:12 +0000 Subject: [PATCH 43/78] =?UTF-8?q?gnome.gnome-software:=2046.1=20=E2=86=92?= =?UTF-8?q?=2046.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-software/-/compare/46.1...46.2 (cherry picked from commit 15024190f5681e7c9d08d6ddd019dc8e882f07ed) --- pkgs/desktops/gnome/core/gnome-software/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/desktops/gnome/core/gnome-software/default.nix b/pkgs/desktops/gnome/core/gnome-software/default.nix index 43adcd092ffb..bca1ea13b5e3 100644 --- a/pkgs/desktops/gnome/core/gnome-software/default.nix +++ b/pkgs/desktops/gnome/core/gnome-software/default.nix @@ -43,13 +43,13 @@ let withFwupd = stdenv.hostPlatform.isx86; in -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "gnome-software"; - version = "46.1"; + version = "46.2"; src = fetchurl { - url = "mirror://gnome/sources/gnome-software/${lib.versions.major version}/${pname}-${version}.tar.xz"; - hash = "sha256-tu63iRAN6UtQ6+Lnfxaya+TC2xVImQXxmNBgxCXhkHY="; + url = "mirror://gnome/sources/gnome-software/${lib.versions.major finalAttrs.version}/gnome-software-${finalAttrs.version}.tar.xz"; + hash = "sha256-5wDLood2T14iVVFOMS4WBVD9v3pdP+FjWLtve2cyuXQ="; }; patches = [ @@ -110,7 +110,7 @@ stdenv.mkDerivation rec { passthru = { updateScript = gnome.updateScript { - packageName = pname; + packageName = "gnome-software"; attrPath = "gnome.gnome-software"; }; }; @@ -123,4 +123,4 @@ stdenv.mkDerivation rec { maintainers = teams.gnome.members; platforms = platforms.linux; }; -} +}) From 00e12ebb5ad77b0c4e80967f1877c0c883dfdf23 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:51:33 +0000 Subject: [PATCH 44/78] =?UTF-8?q?gvfs:=201.54.0=20=E2=86=92=201.54.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gvfs/-/compare/1.54.0...1.54.1 (cherry picked from commit 1886558b274e70dc1466787439dc3c6d77953481) --- pkgs/development/libraries/gvfs/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/gvfs/default.nix b/pkgs/development/libraries/gvfs/default.nix index aba944becf76..6c79fc49c26b 100644 --- a/pkgs/development/libraries/gvfs/default.nix +++ b/pkgs/development/libraries/gvfs/default.nix @@ -46,13 +46,13 @@ , gsettings-desktop-schemas }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "gvfs"; - version = "1.54.0"; + version = "1.54.1"; src = fetchurl { - url = "mirror://gnome/sources/gvfs/${lib.versions.majorMinor version}/gvfs-${version}.tar.xz"; - hash = "sha256-9T2B34bC6GzdJRgsLYpmmiI3HoNiPe0bnVQW3Pxt42Y="; + url = "mirror://gnome/sources/gvfs/${lib.versions.majorMinor finalAttrs.version}/gvfs-${finalAttrs.version}.tar.xz"; + hash = "sha256-rEo7zLf+FQIVjvD95cl5q0RxJVfQKKjk8wop8PvZ0Z8="; }; patches = [ @@ -138,13 +138,13 @@ stdenv.mkDerivation rec { ]; doCheck = false; # fails with "ModuleNotFoundError: No module named 'gi'" - doInstallCheck = doCheck; + doInstallCheck = finalAttrs.doCheck; separateDebugInfo = true; passthru = { updateScript = gnome.updateScript { - packageName = pname; + packageName = "gvfs"; versionPolicy = "odd-unstable"; }; }; @@ -155,4 +155,4 @@ stdenv.mkDerivation rec { platforms = platforms.unix; maintainers = teams.gnome.members; }; -} +}) From 272535f59829a941d0c9e4a2b800d8b2ef1954b2 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:51:59 +0000 Subject: [PATCH 45/78] =?UTF-8?q?gnome.rygel:=200.42.5=20=E2=86=92=200.42.?= =?UTF-8?q?6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/rygel/-/compare/rygel-0.42.5...rygel-0.42.6 (cherry picked from commit 46f9348479b395644d04570f3d14a67f2c4b143f) --- pkgs/desktops/gnome/core/rygel/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/desktops/gnome/core/rygel/default.nix b/pkgs/desktops/gnome/core/rygel/default.nix index 9cc4e1ee8d71..10e805371398 100644 --- a/pkgs/desktops/gnome/core/rygel/default.nix +++ b/pkgs/desktops/gnome/core/rygel/default.nix @@ -26,16 +26,16 @@ , gnome }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "rygel"; - version = "0.42.5"; + version = "0.42.6"; # TODO: split out lib outputs = [ "out" "dev" ]; src = fetchurl { - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - sha256 = "ETNgLS5nEKreayKqmNkzhMjVY5bzRHY0E+luARC32J8="; + url = "mirror://gnome/sources/rygel/${lib.versions.majorMinor finalAttrs.version}/rygel-${finalAttrs.version}.tar.xz"; + sha256 = "R9JXBLYQiDdeJqq6Vr5HwXGJRy5vgMdSq+hvAu9OMwQ="; }; patches = [ @@ -92,8 +92,8 @@ stdenv.mkDerivation rec { passthru = { updateScript = gnome.updateScript { - packageName = pname; - attrPath = "gnome.${pname}"; + packageName = "rygel"; + attrPath = "gnome.rygel"; versionPolicy = "odd-unstable"; }; }; @@ -105,4 +105,4 @@ stdenv.mkDerivation rec { maintainers = teams.gnome.members; platforms = platforms.linux; }; -} +}) From b4d510e4ad7c759d0665557f1d565b8e47a7a844 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:52:24 +0000 Subject: [PATCH 46/78] =?UTF-8?q?gnome-builder:=2046.1=20=E2=86=92=2046.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-builder/-/compare/46.1...46.2 (cherry picked from commit fa4611e465e6b55ac1bb85ea00ed40220f6b66e6) --- pkgs/applications/editors/gnome-builder/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix index f0e7b272f8a7..f2d138489224 100644 --- a/pkgs/applications/editors/gnome-builder/default.nix +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -40,15 +40,15 @@ , xvfb-run }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "gnome-builder"; - version = "46.1"; + version = "46.2"; outputs = [ "out" "devdoc" ]; src = fetchurl { - url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; - hash = "sha256-lhaWbVIqLIUCizPAm605cudp6fkK91VNXnGDfb3HiHE="; + url = "mirror://gnome/sources/gnome-builder/${lib.versions.major finalAttrs.version}/gnome-builder-${finalAttrs.version}.tar.xz"; + hash = "sha256-DIV7iQA7JHh/Kx0qrhLSdaB0xmhLSIA7SMACdtk3GWM="; }; patches = [ @@ -154,7 +154,7 @@ stdenv.mkDerivation rec { ''; passthru.updateScript = gnome.updateScript { - packageName = pname; + packageName = "gnome-builder"; }; meta = with lib; { @@ -175,4 +175,4 @@ stdenv.mkDerivation rec { platforms = platforms.linux; mainProgram = "gnome-builder"; }; -} +}) From 4cbfdb3f4ce8a0e6a73688a330ec834217d96052 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:52:39 +0000 Subject: [PATCH 47/78] =?UTF-8?q?gnome-online-accounts:=203.50.1=20?= =?UTF-8?q?=E2=86=92=203.50.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/compare/3.50.1...3.50.2 (cherry picked from commit 62ee5cadbe423982b7b00107e7361589dfedc898) --- pkgs/development/libraries/gnome-online-accounts/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gnome-online-accounts/default.nix b/pkgs/development/libraries/gnome-online-accounts/default.nix index 740f7d94f1d9..43ce34ec2ed4 100644 --- a/pkgs/development/libraries/gnome-online-accounts/default.nix +++ b/pkgs/development/libraries/gnome-online-accounts/default.nix @@ -31,13 +31,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-online-accounts"; - version = "3.50.1"; + version = "3.50.2"; outputs = [ "out" "dev" ] ++ lib.optionals enableBackend [ "man" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/gnome-online-accounts/${lib.versions.majorMinor finalAttrs.version}/gnome-online-accounts-${finalAttrs.version}.tar.xz"; - hash = "sha256-Qu5D/R4pQrn/YQYlLM3INGAoFVCL96OlLAvf/6Vur0A="; + hash = "sha256-3xatl10TnGv8TrsuyLuDJyl6eR7yvwuXfHgHavX6qY4="; }; mesonFlags = [ From 08cac94c9cab30843dc0cbab081f2a8c40a8212b Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:54:00 +0000 Subject: [PATCH 48/78] =?UTF-8?q?libadwaita:=201.5.0=20=E2=86=92=201.5.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/libadwaita/-/compare/1.5.0...1.5.1 (cherry picked from commit 4653e5d070eb404d91ff9cc5705b65ff55c0f47b) --- pkgs/development/libraries/libadwaita/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libadwaita/default.nix b/pkgs/development/libraries/libadwaita/default.nix index 1301f9fe923d..7f7f93c37949 100644 --- a/pkgs/development/libraries/libadwaita/default.nix +++ b/pkgs/development/libraries/libadwaita/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "libadwaita"; - version = "1.5.0"; + version = "1.5.1"; outputs = [ "out" "dev" "devdoc" ]; outputBin = "devdoc"; # demo app @@ -32,7 +32,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "GNOME"; repo = "libadwaita"; rev = finalAttrs.version; - hash = "sha256-uEaBI2jHlMdVprMGRZe/8HszO3nEBUJaJtvJjrMOjE4="; + hash = "sha256-dH0VPIt6SGTDcb1I72cKnNlyqZ3dptvKmMDjOd17BfA="; }; depsBuildBuild = [ From dcc604f5b3fe3ecbb25da7cf272df09e7ec2f2e2 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:54:35 +0000 Subject: [PATCH 49/78] =?UTF-8?q?libmsgraph:=200.2.1=20=E2=86=92=200.2.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/msgraph/-/compare/0.2.1...0.2.2 (cherry picked from commit 8a08782e4dfc5b8d31063e2eb5d047f030bf9c79) --- pkgs/by-name/li/libmsgraph/package.nix | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/li/libmsgraph/package.nix b/pkgs/by-name/li/libmsgraph/package.nix index a3cb929f8041..011d4bab9a81 100644 --- a/pkgs/by-name/li/libmsgraph/package.nix +++ b/pkgs/by-name/li/libmsgraph/package.nix @@ -7,23 +7,23 @@ , ninja , pkg-config , uhttpmock_1_0 +, libxml2 , glib , gnome-online-accounts , json-glib -, librest_1_0 , libsoup_3 , gnome }: stdenv.mkDerivation (finalAttrs: { pname = "libmsgraph"; - version = "0.2.1"; + version = "0.2.2"; outputs = [ "out" "dev" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/msgraph/${lib.versions.majorMinor finalAttrs.version}/msgraph-${finalAttrs.version}.tar.xz"; - hash = "sha256-4OWeqorj4KSOwKbC/tBHCFanCSSOkhK2odA33leS7Ls="; + hash = "sha256-EsyVT3ULsTes6FAP6TVdJubgDvbMqrKVDp02DpJ1gzU="; }; nativeBuildInputs = [ @@ -36,21 +36,16 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ uhttpmock_1_0 + libxml2 ]; propagatedBuildInputs = [ glib gnome-online-accounts json-glib - librest_1_0 libsoup_3 ]; - mesonFlags = [ - # https://gitlab.gnome.org/GNOME/msgraph/-/merge_requests/9 - "-Dc_args=-Wno-error=format-security" - ]; - postFixup = '' # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. moveToOutput "share/doc/msgraph-0" "$devdoc" From 35aeffc07668e7a913afa5b1f3f3f367bc9155ac Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:54:51 +0000 Subject: [PATCH 50/78] =?UTF-8?q?libshumate:=201.2.1=20=E2=86=92=201.2.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/libshumate/-/compare/1.2.1...1.2.2 (cherry picked from commit a90ad835fdfed0c0393e9a1c8b5ee24ea8b0f0fc) --- .../libraries/libshumate/default.nix | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/pkgs/development/libraries/libshumate/default.nix b/pkgs/development/libraries/libshumate/default.nix index cc6723162a08..d0e6e95ad0c7 100644 --- a/pkgs/development/libraries/libshumate/default.nix +++ b/pkgs/development/libraries/libshumate/default.nix @@ -1,7 +1,6 @@ { lib , stdenv , fetchurl -, fetchpatch2 , gi-docgen , meson , ninja @@ -21,26 +20,18 @@ , gnome }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "libshumate"; - version = "1.2.1"; + version = "1.2.2"; outputs = [ "out" "dev" "devdoc" ]; outputBin = "devdoc"; # demo app src = fetchurl { - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - hash = "sha256-EQXuB34hR/KgOc3fphb6XLlDiIPdlAQn4RaZ3NZUnBE="; + url = "mirror://gnome/sources/libshumate/${lib.versions.majorMinor finalAttrs.version}/libshumate-${finalAttrs.version}.tar.xz"; + hash = "sha256-b1h1effy1gs40/RyfrGo0v6snL3AGOU/9fdyqGCPpEs="; }; - patches = [ - (fetchpatch2 { - # Fix tests https://gitlab.gnome.org/GNOME/libshumate/-/merge_requests/236 - url = "https://gitlab.gnome.org/GNOME/libshumate/-/commit/852615b0df2252ea67f4f82e9ace2fc2794467b3.patch"; - hash = "sha256-Ksye3zNNYmzP4O+QFDVODXUkFJOLDVMEZNfGXwbxWhs="; - }) - ]; - depsBuildBuild = [ # required to find native gi-docgen when cross compiling pkg-config @@ -95,7 +86,7 @@ stdenv.mkDerivation rec { passthru = { updateScript = gnome.updateScript { - packageName = pname; + packageName = "libshumate"; }; }; @@ -107,4 +98,4 @@ stdenv.mkDerivation rec { maintainers = teams.gnome.members; platforms = platforms.unix; }; -} +}) From d323d9cdb8af599d0dcf3f22d690e9a869c4e781 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 26 May 2024 11:25:36 +0000 Subject: [PATCH 51/78] =?UTF-8?q?gnome.aisleriot:=203.22.32=20=E2=86=92=20?= =?UTF-8?q?3.22.33?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/aisleriot/-/compare/3.22.32...3.22.33 (cherry picked from commit 2b0062f5fa7b6c625258dccf7ff476759ec61997) --- pkgs/desktops/gnome/games/aisleriot/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/desktops/gnome/games/aisleriot/default.nix b/pkgs/desktops/gnome/games/aisleriot/default.nix index dfba82308d1a..0263cfe97d34 100644 --- a/pkgs/desktops/gnome/games/aisleriot/default.nix +++ b/pkgs/desktops/gnome/games/aisleriot/default.nix @@ -16,16 +16,16 @@ , yelp-tools }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "aisleriot"; - version = "3.22.32"; + version = "3.22.33"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; owner = "GNOME"; repo = "aisleriot"; - rev = version; - sha256 = "sha256-+U/EsKTZjWa05DbILWAxqIpMcZ0DP0l4LIYxM2wCFdM="; + rev = finalAttrs.version; + sha256 = "sha256-HylhDBgkAJrrs/r42v3aDNR8mBJaqnJHyY7T3QW1eWg="; }; nativeBuildInputs = [ @@ -70,4 +70,4 @@ stdenv.mkDerivation rec { license = licenses.gpl3Plus; platforms = platforms.linux; }; -} +}) From 57f58f14378bb3b52aa19999b2c8e13bfa5643a0 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 26 May 2024 11:49:22 +0000 Subject: [PATCH 52/78] =?UTF-8?q?gnome.gucharmap:=2015.1.2=20=E2=86=92=201?= =?UTF-8?q?5.1.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gucharmap/-/compare/15.1.2...15.1.5 (cherry picked from commit 184ffd7bee330f13af1244246d03f81086821fdf) --- pkgs/desktops/gnome/core/gucharmap/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/desktops/gnome/core/gucharmap/default.nix b/pkgs/desktops/gnome/core/gucharmap/default.nix index 2d0dd7553965..17f8465f380b 100644 --- a/pkgs/desktops/gnome/core/gucharmap/default.nix +++ b/pkgs/desktops/gnome/core/gucharmap/default.nix @@ -43,9 +43,9 @@ let unicode-character-database ]; }; -in stdenv.mkDerivation rec { +in stdenv.mkDerivation (finalAttrs: { pname = "gucharmap"; - version = "15.1.2"; + version = "15.1.5"; outputs = [ "out" "lib" "dev" "devdoc" ]; @@ -53,8 +53,8 @@ in stdenv.mkDerivation rec { domain = "gitlab.gnome.org"; owner = "GNOME"; repo = "gucharmap"; - rev = version; - sha256 = "sha256-tvFw2k5xCl+QE6cHvLj5KKdYFSghN7PVgHPmd27wh7k="; + rev = finalAttrs.version; + sha256 = "sha256-PG86D8QvqHdmo3aJseCerngmuWUqtSMdWzbixWE2HOQ="; }; strictDeps = true; @@ -107,8 +107,8 @@ in stdenv.mkDerivation rec { description = "GNOME Character Map, based on the Unicode Character Database"; mainProgram = "gucharmap"; homepage = "https://gitlab.gnome.org/GNOME/gucharmap"; - license = licenses.gpl3; + license = licenses.gpl3Plus; maintainers = teams.gnome.members; platforms = platforms.linux; }; -} +}) From 1e909227109e453f4f2c22d3e3d7a52a8784e48c Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 26 May 2024 11:49:53 +0000 Subject: [PATCH 53/78] =?UTF-8?q?gnome.gnome-shell-extensions:=2046.1=20?= =?UTF-8?q?=E2=86=92=2046.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/compare/46.1...46.2 (cherry picked from commit 8c463bfeb0437447b31d3fa0cae5e89ebb08f0be) --- pkgs/desktops/gnome/core/gnome-shell-extensions/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/core/gnome-shell-extensions/default.nix b/pkgs/desktops/gnome/core/gnome-shell-extensions/default.nix index 2fd711266938..9887f7f11c52 100644 --- a/pkgs/desktops/gnome/core/gnome-shell-extensions/default.nix +++ b/pkgs/desktops/gnome/core/gnome-shell-extensions/default.nix @@ -13,11 +13,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "gnome-shell-extensions"; - version = "46.1"; + version = "46.2"; src = fetchurl { url = "mirror://gnome/sources/gnome-shell-extensions/${lib.versions.major finalAttrs.version}/gnome-shell-extensions-${finalAttrs.version}.tar.xz"; - hash = "sha256-xbpQcA2nephvAGC+7az8AX5+yCKD8qY4SEKggHvEVT8="; + hash = "sha256-1ELp0mklEl/yFaXBNCkElWVTgHQdqvuzejqZ1vDH2G8="; }; patches = [ From a70853f968d0a7e32c4cb57f9c42c49d45ebc966 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 26 May 2024 11:50:24 +0000 Subject: [PATCH 54/78] =?UTF-8?q?gnome.gnome-terminal:=203.52.1=20?= =?UTF-8?q?=E2=86=92=203.52.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-terminal/-/compare/3.52.1...3.52.2 (cherry picked from commit 41e94d87d8a6b758354bae651d61856e2c6b905a) --- pkgs/desktops/gnome/core/gnome-terminal/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/desktops/gnome/core/gnome-terminal/default.nix b/pkgs/desktops/gnome/core/gnome-terminal/default.nix index 7b3306df5719..89448159287e 100644 --- a/pkgs/desktops/gnome/core/gnome-terminal/default.nix +++ b/pkgs/desktops/gnome/core/gnome-terminal/default.nix @@ -27,16 +27,16 @@ , nixosTests }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "gnome-terminal"; - version = "3.52.1"; + version = "3.52.2"; src = fetchFromGitLab { domain = "gitlab.gnome.org"; owner = "GNOME"; repo = "gnome-terminal"; - rev = version; - hash = "sha256-npoQfe5+HTn7CsrW6MuOoiYBc3rYMAMv4apC6dFR8O4="; + rev = finalAttrs.version; + hash = "sha256-c6xMUyhQnJiIrFnnUEx6vGVvFghGvLjTxiAFq+nSj2A="; }; nativeBuildInputs = [ @@ -94,4 +94,4 @@ stdenv.mkDerivation rec { license = licenses.gpl3Plus; maintainers = teams.gnome.members; }; -} +}) From 710deda4d0f7cdde6e72f5fb3bf121fdb3e1722d Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 26 May 2024 11:55:52 +0000 Subject: [PATCH 55/78] =?UTF-8?q?gnome.mutter:=2046.1=20=E2=86=92=2046.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/mutter/-/compare/46.1...46.2 (cherry picked from commit 49097abda92e0e5444c70687067ab288ea2a42b4) --- pkgs/desktops/gnome/core/mutter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/core/mutter/default.nix b/pkgs/desktops/gnome/core/mutter/default.nix index 0efd14124a37..9ce1638f8541 100644 --- a/pkgs/desktops/gnome/core/mutter/default.nix +++ b/pkgs/desktops/gnome/core/mutter/default.nix @@ -68,13 +68,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "mutter"; - version = "46.1"; + version = "46.2"; outputs = [ "out" "dev" "man" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/mutter/${lib.versions.major finalAttrs.version}/mutter-${finalAttrs.version}.tar.xz"; - hash = "sha256-Y7JmDdD6GT+mYsgO4S64sW8rjDvDiWNmIAx5lDgk1R0="; + hash = "sha256-AJuqd/g2JhLKouGMM4obPIqtO1/ilkwv73gk0yEiiYM="; }; mesonFlags = [ From e8c18689041bc643fbf3b68781f67ca5a3bc01cf Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 19:26:28 +0200 Subject: [PATCH 56/78] gnome.mutter: remove unneeded dependencies json-glib was removed in https://gitlab.gnome.org/GNOME/mutter/-/commit/03235773be11073efba0a98cffca635f8b6678a6 (part of bump in fde899eefdbe30a2d371560374a179d40454e914). libcap-ng is not used at all. It was added in 9742df15950a4c53e89fcc79feabd3a1a78827e2 required by an older version of the patch from https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/460 which was dropped in 8c5884ef4e9e5268bc1c2e5d35a87e5068a0868c. Also update comment since mutter-clutter no longer depends on graphene, -cogl and -mtk libraries do. (cherry picked from commit e6719289cdd68c290fa076a6409a2d89535ade5e) --- pkgs/desktops/gnome/core/mutter/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/desktops/gnome/core/mutter/default.nix b/pkgs/desktops/gnome/core/mutter/default.nix index 9ce1638f8541..19ba5f1924cc 100644 --- a/pkgs/desktops/gnome/core/mutter/default.nix +++ b/pkgs/desktops/gnome/core/mutter/default.nix @@ -10,7 +10,6 @@ , colord , lcms2 , pango -, json-glib , libstartup_notification , libcanberra , ninja @@ -59,7 +58,6 @@ , sysprof , libsysprof-capture , desktop-file-utils -, libcap_ng , egl-wayland , graphene , wayland @@ -91,9 +89,7 @@ stdenv.mkDerivation (finalAttrs: { ]; propagatedBuildInputs = [ - # required for pkg-config to detect mutter-clutter - json-glib - libcap_ng + # required for pkg-config to detect mutter-mtk graphene ]; From 460c0b9522fb574f6872393a235dd38ed0aa4df2 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 26 May 2024 11:57:42 +0000 Subject: [PATCH 57/78] =?UTF-8?q?xdg-desktop-portal-gnome:=2046.1=20?= =?UTF-8?q?=E2=86=92=2046.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/compare/46.1...46.2 (cherry picked from commit 891e0fb10bc0e3a6e1adecce210b5608f0639ce7) --- .../libraries/xdg-desktop-portal-gnome/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/xdg-desktop-portal-gnome/default.nix b/pkgs/development/libraries/xdg-desktop-portal-gnome/default.nix index e28ea0da6b0a..00af282c5277 100644 --- a/pkgs/development/libraries/xdg-desktop-portal-gnome/default.nix +++ b/pkgs/development/libraries/xdg-desktop-portal-gnome/default.nix @@ -19,13 +19,13 @@ , webp-pixbuf-loader }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "xdg-desktop-portal-gnome"; - version = "46.1"; + version = "46.2"; src = fetchurl { - url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; - hash = "sha256-fo2WI+nZaonAiXYWgnzUQdzygykn048TXHIlUrEXKqE="; + url = "mirror://gnome/sources/xdg-desktop-portal-gnome/${lib.versions.major finalAttrs.version}/xdg-desktop-portal-gnome-${finalAttrs.version}.tar.xz"; + hash = "sha256-tcZeol6Eg1AtAzphO+bca3GIOsB/Gj5HStGAScR9FtY="; }; nativeBuildInputs = [ @@ -64,7 +64,7 @@ stdenv.mkDerivation rec { passthru = { updateScript = gnome.updateScript { - packageName = pname; + packageName = "xdg-desktop-portal-gnome"; }; }; @@ -75,4 +75,4 @@ stdenv.mkDerivation rec { platforms = platforms.linux; license = licenses.lgpl21Plus; }; -} +}) From 75420cc6aae42de18a59123dce3a763220eb7177 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 26 May 2024 11:58:17 +0000 Subject: [PATCH 58/78] =?UTF-8?q?gnome.nautilus:=2046.1=20=E2=86=92=2046.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/nautilus/-/compare/46.1...46.2 (cherry picked from commit ca3b765cfbb69f5324ce07266ad471522c7423bb) --- pkgs/desktops/gnome/core/nautilus/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/core/nautilus/default.nix b/pkgs/desktops/gnome/core/nautilus/default.nix index 063914060dfe..874190417a3c 100644 --- a/pkgs/desktops/gnome/core/nautilus/default.nix +++ b/pkgs/desktops/gnome/core/nautilus/default.nix @@ -38,13 +38,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "nautilus"; - version = "46.1"; + version = "46.2"; outputs = [ "out" "dev" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/nautilus/${lib.versions.major finalAttrs.version}/nautilus-${finalAttrs.version}.tar.xz"; - hash = "sha256-zBpf3x3XL5Lp4/PHrSY3CaDeU5Golb6TRPamf0OIe9c="; + hash = "sha256-bujJkBm540R/aRjWgjKiDeyonlUlwFgFQyt9iEDKcfo="; }; patches = [ From 19c420aae89d4cc834df663eb65f57ff31b4cd08 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 26 May 2024 12:17:29 +0000 Subject: [PATCH 59/78] =?UTF-8?q?gnome.gnome-shell:=2046.1=20=E2=86=92=204?= =?UTF-8?q?6.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/gnome-shell/-/compare/46.1...46.2 (cherry picked from commit 1cf80c71d4c6c2a2a0d59e200ffca9baec9ddba5) --- pkgs/desktops/gnome/core/gnome-shell/default.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkgs/desktops/gnome/core/gnome-shell/default.nix b/pkgs/desktops/gnome/core/gnome-shell/default.nix index 7b94533f7b60..3f91cddc2052 100644 --- a/pkgs/desktops/gnome/core/gnome-shell/default.nix +++ b/pkgs/desktops/gnome/core/gnome-shell/default.nix @@ -66,13 +66,13 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "gnome-shell"; - version = "46.1"; + version = "46.2"; outputs = [ "out" "devdoc" ]; src = fetchurl { url = "mirror://gnome/sources/gnome-shell/${lib.versions.major finalAttrs.version}/gnome-shell-${finalAttrs.version}.tar.xz"; - hash = "sha256-ZPmZhEwQHmO/KU1FsTjeVjGa0vMmKCchqtD6hgZTs2k="; + hash = "sha256-a1hxAcBL+zZKsJzTi12T6+60JUdUyAfPcS+8juP94jg="; }; patches = [ @@ -102,13 +102,6 @@ stdenv.mkDerivation (finalAttrs: { url = "https://src.fedoraproject.org/rpms/gnome-shell/raw/dcd112d9708954187e7490564c2229d82ba5326f/f/0001-gdm-Work-around-failing-fingerprint-auth.patch"; hash = "sha256-mgXty5HhiwUO1UV3/eDgWtauQKM0cRFQ0U7uocST25s="; }) - - # screencast: Correct expected bus name for streams - # https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3303 - (fetchpatch { - url = "https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/50a011a19dcc6997ea6173c07bb80b2d9888d363.patch"; - hash = "sha256-ccEpdWgDxwnj7ouzFekpoln5Y2PtgRikWetwK+0U9Fg="; - }) ]; nativeBuildInputs = [ From 14f4653027cab8cc034306c4d79348a5dc363c59 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 26 May 2024 12:18:09 +0000 Subject: [PATCH 60/78] =?UTF-8?q?vte:=200.76.1=20=E2=86=92=200.76.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/vte/-/compare/0.76.1...0.76.2 (cherry picked from commit c989059161765aa4b9fe298a9b12696d08e93047) --- pkgs/development/libraries/vte/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/vte/default.nix b/pkgs/development/libraries/vte/default.nix index 89af6e847a88..1d93b6e6adec 100644 --- a/pkgs/development/libraries/vte/default.nix +++ b/pkgs/development/libraries/vte/default.nix @@ -32,14 +32,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "vte"; - version = "0.76.1"; + version = "0.76.2"; outputs = [ "out" "dev" ] ++ lib.optional (gtkVersion != null) "devdoc"; src = fetchurl { url = "mirror://gnome/sources/vte/${lib.versions.majorMinor finalAttrs.version}/vte-${finalAttrs.version}.tar.xz"; - hash = "sha256-CE6D73ZXdCaaSynfl8oi7cNDuaHYFDPTALjLLQh6HsI="; + hash = "sha256-49xggtW9cPiq+qrSzfyvflHaa6AKkZsR3axu+gnHKEc="; }; patches = [ From 9365420af60351abcabe4071cd9e28a21293892a Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sun, 26 May 2024 12:45:30 +0000 Subject: [PATCH 61/78] =?UTF-8?q?libgtop:=202.41.2=20=E2=86=92=202.41.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/libgtop/-/compare/2.41.2...2.41.3 (cherry picked from commit f4df7f0e7e98452f3dd83669fe8f8839fdd8f8ca) --- pkgs/development/libraries/libgtop/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/libgtop/default.nix b/pkgs/development/libraries/libgtop/default.nix index ae4938483590..b7ad5c8bd241 100644 --- a/pkgs/development/libraries/libgtop/default.nix +++ b/pkgs/development/libraries/libgtop/default.nix @@ -10,15 +10,15 @@ , deterministic-uname }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "libgtop"; - version = "2.41.2"; + version = "2.41.3"; outputs = [ "out" "dev" ]; src = fetchurl { - url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - hash = "sha256-2QJs2KSNJ83/0zL41gqSdktWQk5SLEIM0ToB9A2vksM="; + url = "mirror://gnome/sources/libgtop/${lib.versions.majorMinor finalAttrs.version}/libgtop-${finalAttrs.version}.tar.xz"; + hash = "sha256-d1Z235WOLqJFL3Vo8osupYEGPTEnc91cC3Ykwbmy2ow="; }; nativeBuildInputs = [ @@ -37,7 +37,7 @@ stdenv.mkDerivation rec { passthru = { updateScript = gnome.updateScript { - packageName = pname; + packageName = "libgtop"; versionPolicy = "odd-unstable"; }; }; @@ -48,4 +48,4 @@ stdenv.mkDerivation rec { maintainers = teams.gnome.members; platforms = platforms.unix; }; -} +}) From 32344320da8eb5047027c7e98d0728ab5536ca50 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Sat, 25 May 2024 17:49:56 +0000 Subject: [PATCH 62/78] =?UTF-8?q?gnome.geary:=2044.1=20=E2=86=92=2046.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://gitlab.gnome.org/GNOME/geary/-/compare/44.1...46.0 (cherry picked from commit 07ae3d806bd308b1d9ac46dbbd24a88518e615d7) --- pkgs/desktops/gnome/misc/geary/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/desktops/gnome/misc/geary/default.nix b/pkgs/desktops/gnome/misc/geary/default.nix index e2cbaaa6da89..461402dda8b3 100644 --- a/pkgs/desktops/gnome/misc/geary/default.nix +++ b/pkgs/desktops/gnome/misc/geary/default.nix @@ -47,11 +47,11 @@ stdenv.mkDerivation rec { pname = "geary"; - version = "44.1"; + version = "46.0"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz"; - sha256 = "fRHLbhxQThCMLckaoiVqRATcq+fRyHPY1glOLfM1onc="; + sha256 = "r60VEwKBfd8Ji15BbnrH8tXupWejuAu5C9PGKv0TuaE="; }; nativeBuildInputs = [ From a71637856e5246c5d313a10a434cb62378b49b47 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 24 May 2024 05:57:48 +0000 Subject: [PATCH 63/78] semgrep: 1.73.0 -> 1.74.0 (cherry picked from commit 5e7a0de3b626bfae65d2be1eb0aba3aa14ed260d) --- pkgs/tools/security/semgrep/common.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/security/semgrep/common.nix b/pkgs/tools/security/semgrep/common.nix index 1ae95ed6572a..d51853953bf4 100644 --- a/pkgs/tools/security/semgrep/common.nix +++ b/pkgs/tools/security/semgrep/common.nix @@ -1,9 +1,9 @@ { lib }: rec { - version = "1.73.0"; + version = "1.74.0"; - srcHash = "sha256-INgc1rTN5K5mcV3u4Jktn7cqu87Z5sLnn70CxuZlbPA="; + srcHash = "sha256-PH0fTT6n6o3Jtuq+cyyRb048Tuv3VGNduCZCEKTXMrE="; # submodule dependencies # these are fetched so we: @@ -25,19 +25,19 @@ rec { core = { x86_64-linux = { platform = "any"; - hash = "sha256-NSleztCh9+VEsezypbIS74Ll+KP/Nb/zqAWum7tdoMc="; + hash = "sha256-ZA5KlbSLkC0IJGqyK0XhuDKRx53987vf53vSM0zwD9k="; }; aarch64-linux = { platform = "musllinux_1_0_aarch64.manylinux2014_aarch64"; - hash = "sha256-tySsh+CLciJRXpr4oJa/h6Zh0Fw8c+EDdSNNRwOfKpg="; + hash = "sha256-aHq87uzk9TtnlMDfAS6492ocXRJSHdBinng0hu2xLas="; }; x86_64-darwin = { platform = "macosx_10_14_x86_64"; - hash = "sha256-jO8H0wSjW34ynx+WN0oP8mpuAsfMva7H86gg72WrsBY="; + hash = "sha256-OorDXQ0oYHV8aPu9o1dQAd22u78/EjpUWA2yPYG0S9E="; }; aarch64-darwin = { platform = "macosx_11_0_arm64"; - hash = "sha256-EizxrTI7b4qSp8nLwXCnvJqKwZje7+WXyw5z+Yk6bvQ="; + hash = "sha256-g8sFLh2V9NDIvAZOaDhMpFxKqbS/S1eKep4v1vlOOo8="; }; }; From 45cbc299bb62da00dd60524ef97eff2cce6311a3 Mon Sep 17 00:00:00 2001 From: Artturin Date: Sat, 25 May 2024 18:32:09 +0300 Subject: [PATCH 64/78] Update discord packages discord-ptb: 0.0.84 -> 0.0.85 discord-canary: 0.0.382 -> 0.0.402 discord-development: 0.0.18 -> 0.0.19 pkgsCross.aarch64-darwin.discord: 0.0.303 -> 0.0.305 pkgsCross.aarch64-darwin.discord-ptb: 0.0.113 -> 0.0.114 pkgsCross.aarch64-darwin.discord-canary: 0.0.492 -> 0.0.510 pkgsCross.aarch64-darwin.discord-development: 0.0.40 -> 0.0.41 (cherry picked from commit 8d3e378f97a52faf3b18d6380818104f5b08bed7) --- .../instant-messengers/discord/default.nix | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/discord/default.nix b/pkgs/applications/networking/instant-messengers/discord/default.nix index 863e27823bf5..09840fbe6139 100644 --- a/pkgs/applications/networking/instant-messengers/discord/default.nix +++ b/pkgs/applications/networking/instant-messengers/discord/default.nix @@ -3,14 +3,14 @@ let versions = if stdenv.isLinux then { stable = "0.0.54"; - ptb = "0.0.84"; - canary = "0.0.382"; - development = "0.0.18"; + ptb = "0.0.85"; + canary = "0.0.402"; + development = "0.0.19"; } else { - stable = "0.0.303"; - ptb = "0.0.113"; - canary = "0.0.492"; - development = "0.0.40"; + stable = "0.0.305"; + ptb = "0.0.114"; + canary = "0.0.510"; + development = "0.0.41"; }; version = versions.${branch}; srcs = rec { @@ -21,33 +21,33 @@ let }; ptb = fetchurl { url = "https://dl-ptb.discordapp.net/apps/linux/${version}/discord-ptb-${version}.tar.gz"; - hash = "sha256-0bOsmy2ldZT7S4tVOkihE5eLiujXC/ugF8CKXfBXHNU="; + hash = "sha256-2RyilxldJX2wqKlEcrp6srj0O7UNHMxySRJD1xBfqMk="; }; canary = fetchurl { url = "https://dl-canary.discordapp.net/apps/linux/${version}/discord-canary-${version}.tar.gz"; - hash = "sha256-MXMq4V+21KPHoCUs5x1rNRbkfw6+3cF7xSSNguiqOfc="; + hash = "sha256-YE+sHmEkUCHLflSUgf4aotWWdzhbFyzozc3vLcJ96yA="; }; development = fetchurl { url = "https://dl-development.discordapp.net/apps/linux/${version}/discord-development-${version}.tar.gz"; - hash = "sha256-SoJ4/jXl0axQyeqv8CPSzM+lBsYq/QelHctRAeoscdA="; + hash = "sha256-RP6SUM4DW3JhddSbJX6Xg8EE4iqCkSOgBL1oa7Zwp/E="; }; }; x86_64-darwin = { stable = fetchurl { url = "https://dl.discordapp.net/apps/osx/${version}/Discord.dmg"; - hash = "sha256-B4r0W//d3761ufQr4PAt4ZuPMrOC7Zfo8Q3lHqKxkJ0="; + hash = "sha256-UEKsweUvtVKXZDrdIYuo3FPSPrnY3ECIilntBs9ZrGU="; }; ptb = fetchurl { url = "https://dl-ptb.discordapp.net/apps/osx/${version}/DiscordPTB.dmg"; - hash = "sha256-hdT33jK0nHvY3rIh9i1eDq5j46xS9xInRxzGCUP/hi8="; + hash = "sha256-ahCgJ1aSLL7Mhx5Jjkeuqqlis8gqxHbIhQvlbUK2wIU="; }; canary = fetchurl { url = "https://dl-canary.discordapp.net/apps/osx/${version}/DiscordCanary.dmg"; - hash = "sha256-74XQu4PGW3eW4wPICGsAVlR4SQkDXJWZ1p/G7Bwq950="; + hash = "sha256-viWOmu1+6tpzNDN/q0kXRMo+rohOP6/L7ke2EeBEADg="; }; development = fetchurl { url = "https://dl-development.discordapp.net/apps/osx/${version}/DiscordDevelopment.dmg"; - hash = "sha256-uPz3uWPAqp3JeL9E+coMrb2Hc+Zn0YGF9Jw3BTKYRlw="; + hash = "sha256-RiGyca/zjPpENgcq9KnRh5G4YArrUOQeueUdUBgZgjo="; }; }; aarch64-darwin = x86_64-darwin; From 5a4bc7ddebf7a8561556f914bd9273a2a3eace19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Fern=C3=A1ndez=20L=C3=B3pez?= Date: Sun, 26 May 2024 14:24:55 +0200 Subject: [PATCH 65/78] hardware/nvidia-container-toolkit: mount `nvidia-driver/share` (cherry picked from commit 79c79671a7f16915cdf1585839e2abf16ff5e143) --- .../hardware/nvidia-container-toolkit/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/hardware/nvidia-container-toolkit/default.nix b/nixos/modules/services/hardware/nvidia-container-toolkit/default.nix index 6c6bc667e649..bd12667a5647 100644 --- a/nixos/modules/services/hardware/nvidia-container-toolkit/default.nix +++ b/nixos/modules/services/hardware/nvidia-container-toolkit/default.nix @@ -69,14 +69,18 @@ virtualisation.docker.daemon.settings = lib.mkIf (config.hardware.nvidia-container-toolkit.enable && (lib.versionAtLeast config.virtualisation.docker.package.version "25")) { - features.cdi = true; - }; + features.cdi = true; + }; hardware.nvidia-container-toolkit.mounts = let nvidia-driver = config.hardware.nvidia.package; in (lib.mkMerge [ [{ hostPath = pkgs.addDriverRunpath.driverLink; containerPath = pkgs.addDriverRunpath.driverLink; } + { hostPath = "${lib.getLib nvidia-driver}/etc"; + containerPath = "${lib.getLib nvidia-driver}/etc"; } + { hostPath = "${lib.getLib nvidia-driver}/share"; + containerPath = "${lib.getLib nvidia-driver}/share"; } { hostPath = "${lib.getLib pkgs.glibc}/lib"; containerPath = "${lib.getLib pkgs.glibc}/lib"; } { hostPath = "${lib.getLib pkgs.glibc}/lib64"; From c4e01c7a3630e67ce7033b14c035ef2468875d8a Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 28 May 2024 20:24:10 +0200 Subject: [PATCH 66/78] apptainer: 1.3.1 -> 1.3.2 Changelog: https://github.com/apptainer/apptainer/releases/tag/v1.3.2 (cherry picked from commit 315b8a0466244c43a901a41799622de7f42b7a85) --- pkgs/applications/virtualization/singularity/packages.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/virtualization/singularity/packages.nix b/pkgs/applications/virtualization/singularity/packages.nix index 8711ab197fa7..eca8c914e6aa 100644 --- a/pkgs/applications/virtualization/singularity/packages.nix +++ b/pkgs/applications/virtualization/singularity/packages.nix @@ -9,20 +9,20 @@ let callPackage (import ./generic.nix rec { pname = "apptainer"; - version = "1.3.1"; + version = "1.3.2"; projectName = "apptainer"; src = fetchFromGitHub { owner = "apptainer"; repo = "apptainer"; rev = "refs/tags/v${version}"; - hash = "sha256-XhJecINx8jC6pRzIoM4nC6Aunj40xL8EmYIA4UizfAY="; + hash = "sha256-NseigaPmRKDsBk8v7RpYf+uoEGvQHVnqOMO49kP0mQ8="; }; # Update by running # nix-prefetch -E "{ sha256 }: ((import ./. { }).apptainer.override { vendorHash = sha256; }).goModules" # at the root directory of the Nixpkgs repository - vendorHash = "sha256-MXW1U13uDRAx4tqZvqsuJvoD22nEL2gcxiGaa/6zwU0="; + vendorHash = "sha256-W853++SSvkAYYUczbl8vnoBQZnimUdsAEXp4MCkLPBU="; extraDescription = " (previously known as Singularity)"; extraMeta.homepage = "https://apptainer.org"; From 770d2011f14b407d4cf6c8e217ff1a1b6fe96aca Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Tue, 28 May 2024 09:36:56 +0200 Subject: [PATCH 67/78] photofield: add patch for Go 1.22 support (cherry picked from commit c4252653c15285a13d6550dd8d17e966e0812365) --- pkgs/servers/photofield/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/photofield/default.nix b/pkgs/servers/photofield/default.nix index ffb647c03be5..3c9cf8245022 100644 --- a/pkgs/servers/photofield/default.nix +++ b/pkgs/servers/photofield/default.nix @@ -1,5 +1,6 @@ { lib , fetchFromGitHub +, fetchpatch , buildGoModule , buildNpmPackage , makeWrapper @@ -10,7 +11,6 @@ }: let - pname = "photofield-ui"; version = "0.13.0"; src = fetchFromGitHub { @@ -35,11 +35,20 @@ let }; in -buildGoModule rec { +buildGoModule { pname = "photofield"; inherit version src; - vendorHash = "sha256-4JFP3vs/Z8iSKgcwfxpdnQpO9kTF68XQArFHYP8IoDQ="; + patches = [ + # Needed for Go 1.22 build support + (fetchpatch { + name = "upgrade-pyroscope-go.patch"; + url = "https://github.com/SmilyOrg/photofield/commit/681dcd48ab4113b0e99fe1a0d3638f0dfe985c05.patch"; + hash = "sha256-JGb5KAI/SmR1kiiaPoSsAF7G4YWDFXj0K3Gjw0zA3Ro="; + }) + ]; + + vendorHash = "sha256-BnImE4wK2MDO21N5tT9Q9w+NkDpdBCEqUwzuH/xb6fg="; preBuild = '' cp -r ${webui}/share/photofield-ui ui/dist From 57d839e7b89a397e67a21c362eb6adca2efa66a1 Mon Sep 17 00:00:00 2001 From: Jonas Meurer Date: Mon, 27 May 2024 23:38:37 +0200 Subject: [PATCH 68/78] fricas: 1.3.9 -> 1.3.10 Previous builds refused to build due to memory exhaustion. This was already fixed by upstream in 759272d834538c54d69d3dbb9f31a2b1e51cf9a8. (cherry picked from commit 4a2bbf27a8f68e08fbfb7333214decba4bdc7745) --- .../science/math/fricas/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/science/math/fricas/default.nix b/pkgs/applications/science/math/fricas/default.nix index 355238ace15c..41dc9d66b8a7 100644 --- a/pkgs/applications/science/math/fricas/default.nix +++ b/pkgs/applications/science/math/fricas/default.nix @@ -1,20 +1,27 @@ -{ lib, stdenv, fetchurl, sbcl, libX11, libXpm, libICE, libSM, libXt, libXau, libXdmcp }: +{ lib, stdenv, fetchFromGitHub, sbcl, libX11, libXpm, libICE, libSM, libXt, libXau, libXdmcp }: stdenv.mkDerivation rec { pname = "fricas"; - version = "1.3.9"; + version = "1.3.10"; - src = fetchurl { - url = "mirror://sourceforge/fricas/fricas/${version}/fricas-${version}-full.tar.bz2"; - sha256 = "sha256-5RPcffM0GN0l6r8IgHJlwdxwwp2y4kIdJ5M3JnGZCzc="; + src = fetchFromGitHub { + owner = "fricas"; + repo = "fricas"; + rev = version; + sha256 = "sha256-T1xDndDnHq/hmhTWWO3Eu0733u8+C8sJMCF6pbLU2GI="; }; buildInputs = [ sbcl libX11 libXpm libICE libSM libXt libXau libXdmcp ]; + # Remove when updating to next version + configurePhase = '' + ./configure --prefix=$out --with-lisp='sbcl --dynamic-space-size 3072' + ''; + dontStrip = true; meta = { - homepage = "https://fricas.sourceforge.net/"; + homepage = "https://fricas.github.io"; description = "An advanced computer algebra system"; license = lib.licenses.bsd3; From 522856c02877005499ff3de19892030c6940ad7f Mon Sep 17 00:00:00 2001 From: paparodeo <170618376+paparodeo@users.noreply.github.com> Date: Tue, 28 May 2024 10:24:48 +0000 Subject: [PATCH 69/78] xqilla: fix clang build use std=c++14 due to use of register storage specifier (cherry picked from commit c398cede576cd8464decb41240b5013697f9a7eb) --- pkgs/development/tools/xqilla/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/xqilla/default.nix b/pkgs/development/tools/xqilla/default.nix index 352f41f47bb4..37f16d8da4bd 100644 --- a/pkgs/development/tools/xqilla/default.nix +++ b/pkgs/development/tools/xqilla/default.nix @@ -17,7 +17,11 @@ stdenv.mkDerivation rec { }) ]; - configureFlags = [ "--with-xerces=${xercesc}" ]; + configureFlags = [ + "--with-xerces=${xercesc}" + # code uses register storage specifier + "CXXFLAGS=-std=c++14" + ]; meta = with lib; { description = "An XQuery and XPath 2 library and command line utility written in C++, implemented on top of the Xerces-C library"; From 1448866ccc3fd22548146fa88f32614661bed611 Mon Sep 17 00:00:00 2001 From: paparodeo <170618376+paparodeo@users.noreply.github.com> Date: Tue, 28 May 2024 10:49:39 +0000 Subject: [PATCH 70/78] xqilla: unbreak darwin; add required frameworks (cherry picked from commit d32beebac23f7f237de24a9ba8c0ccc039566b6d) --- pkgs/development/tools/xqilla/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/xqilla/default.nix b/pkgs/development/tools/xqilla/default.nix index 37f16d8da4bd..ad568f42673c 100644 --- a/pkgs/development/tools/xqilla/default.nix +++ b/pkgs/development/tools/xqilla/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fetchpatch, xercesc }: +{ lib, stdenv, fetchurl, fetchpatch, darwin, xercesc }: stdenv.mkDerivation rec { pname = "xqilla"; @@ -23,6 +23,13 @@ stdenv.mkDerivation rec { "CXXFLAGS=-std=c++14" ]; + buildInputs = [ + xercesc + ] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [ + CoreServices + SystemConfiguration + ]); + meta = with lib; { description = "An XQuery and XPath 2 library and command line utility written in C++, implemented on top of the Xerces-C library"; mainProgram = "xqilla"; From 1d71d996738780dba980d4b639c1350d85a8701a Mon Sep 17 00:00:00 2001 From: paparodeo <170618376+paparodeo@users.noreply.github.com> Date: Tue, 28 May 2024 11:12:38 +0000 Subject: [PATCH 71/78] dbxml: fix clang build use std=c++14 due to use of register storage specifier (cherry picked from commit 7343dde6d33981ff6ceb1d3d374aa83d414ae3ed) --- pkgs/development/libraries/dbxml/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/dbxml/default.nix b/pkgs/development/libraries/dbxml/default.nix index b6dcf908c4f9..f50b53d47e05 100644 --- a/pkgs/development/libraries/dbxml/default.nix +++ b/pkgs/development/libraries/dbxml/default.nix @@ -28,6 +28,8 @@ stdenv.mkDerivation rec { "--with-berkeleydb=${db62.out}" "--with-xerces=${xercesc}" "--with-xqilla=${xqilla}" + # code uses register storage specifier + "CXXFLAGS=-std=c++14" ]; preConfigure = '' From 7bf05cd98437edac730f046fde045c227d8771bf Mon Sep 17 00:00:00 2001 From: paparodeo <170618376+paparodeo@users.noreply.github.com> Date: Tue, 28 May 2024 10:53:26 +0000 Subject: [PATCH 72/78] netsurf.libparserutils: use libiconv for darwin (cherry picked from commit 7546fd6123cb17ede0dc4014ab4aebb40ff4b7ee) --- .../networking/browsers/netsurf/libparserutils.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/browsers/netsurf/libparserutils.nix b/pkgs/applications/networking/browsers/netsurf/libparserutils.nix index a7db88925768..73c8448f2604 100644 --- a/pkgs/applications/networking/browsers/netsurf/libparserutils.nix +++ b/pkgs/applications/networking/browsers/netsurf/libparserutils.nix @@ -3,7 +3,7 @@ , fetchurl , perl , buildsystem -, iconv +, libiconv }: stdenv.mkDerivation (finalAttrs: { @@ -18,7 +18,8 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ perl buildsystem - iconv + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + libiconv ]; makeFlags = [ From f87e54303cc3eb95052758fbfa2a0110136c4a31 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 29 May 2024 01:08:02 +0200 Subject: [PATCH 73/78] python312Packages.amcrest: replace distutils usage (cherry picked from commit 5f294ad0274c12f5f9125a89bdd8786d69cf05bd) --- .../python-modules/amcrest/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/amcrest/default.nix b/pkgs/development/python-modules/amcrest/default.nix index 4fffb467ef73..0a217c6f7832 100644 --- a/pkgs/development/python-modules/amcrest/default.nix +++ b/pkgs/development/python-modules/amcrest/default.nix @@ -3,11 +3,10 @@ argcomplete, buildPythonPackage, fetchFromGitHub, + fetchpatch2, httpx, mock, pytestCheckHook, - pythonAtLeast, - pythonOlder, requests, responses, setuptools, @@ -20,9 +19,6 @@ buildPythonPackage rec { version = "1.9.8"; pyproject = true; - # Still uses distutils, https://github.com/tchellomello/python-amcrest/issues/234 - disabled = pythonOlder "3.7" || pythonAtLeast "3.12"; - src = fetchFromGitHub { owner = "tchellomello"; repo = "python-amcrest"; @@ -30,6 +26,15 @@ buildPythonPackage rec { hash = "sha256-v0jWEZo06vltEq//suGrvJ/AeeDxUG5CCFhbf03q34w="; }; + patches = [ + (fetchpatch2 { + # https://github.com/tchellomello/python-amcrest/pull/235 + name = "replace-distutils.patch"; + url = "https://github.com/tchellomello/python-amcrest/commit/ec56049c0f5b49bc4c5bcf0acb7fea89ec1c1df4.patch"; + hash = "sha256-ym+Bn795y+JqhNMk4NPnOVr3DwO9DkUV0d9LEaz3CMo="; + }) + ]; + build-system = [ setuptools ]; dependencies = [ From 62a9913e5625e4cb893e58851f87020c7c187438 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 May 2024 10:24:19 +0200 Subject: [PATCH 74/78] python312Packages.pyswitchbot: 0.45.0 -> 0.46.1 Diff: https://github.com/Danielhiversen/pySwitchbot/compare/refs/tags/0.45.0...0.46.1 Changelog: https://github.com/Danielhiversen/pySwitchbot/releases/tag/0.46.1 (cherry picked from commit 0eb6ab0e62443e52be4f55159538a78c60205abd) --- .../development/python-modules/pyswitchbot/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/pyswitchbot/default.nix b/pkgs/development/python-modules/pyswitchbot/default.nix index 335f0b8239a7..ce0b59dcfa86 100644 --- a/pkgs/development/python-modules/pyswitchbot/default.nix +++ b/pkgs/development/python-modules/pyswitchbot/default.nix @@ -15,21 +15,21 @@ buildPythonPackage rec { pname = "pyswitchbot"; - version = "0.45.0"; + version = "0.46.1"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "Danielhiversen"; repo = "pySwitchbot"; rev = "refs/tags/${version}"; - hash = "sha256-lQVUHZvAZ4J0DLlUl30dSz2wwXKb9MK5prkXvub0yNI="; + hash = "sha256-fiWjChr7NATkO6jNBlt5kqxaLSSZWcdd7TjQwMP6klY="; }; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ bleak bleak-retry-connector boto3 From 3716399b3967f5934e3a099b3e327952231f8e72 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 23 May 2024 00:58:01 +0200 Subject: [PATCH 75/78] python312Packages.wled: 0.17.1 -> 0.18.0 Diff: https://github.com/frenck/python-wled/compare/refs/tags/v0.17.1...v0.18.0 Changelog: https://github.com/frenck/python-wled/releases/tag/v0.18.0 (cherry picked from commit ae18e3e998761659c485b7221a8949ed2a43480a) --- pkgs/development/python-modules/wled/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/wled/default.nix b/pkgs/development/python-modules/wled/default.nix index c8eaedc38340..3dbdef76f1fb 100644 --- a/pkgs/development/python-modules/wled/default.nix +++ b/pkgs/development/python-modules/wled/default.nix @@ -17,7 +17,7 @@ buildPythonPackage rec { pname = "wled"; - version = "0.17.1"; + version = "0.18.0"; format = "pyproject"; disabled = pythonOlder "3.11"; @@ -26,7 +26,7 @@ buildPythonPackage rec { owner = "frenck"; repo = "python-wled"; rev = "refs/tags/v${version}"; - hash = "sha256-9682AbcADhd9m5XrYeDFiX+sJCCe+pnuvntJDnpzJ+U="; + hash = "sha256-0BJgbyDhCPFlHxlEry7Rh/j0nv3D3kRhIqCSW+Irhqk="; }; postPatch = '' From 8ff499b1d9fc3fd70ee4c5f4ecee15aede6e97b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 23 May 2024 01:03:42 +0200 Subject: [PATCH 76/78] python312Packages.wled: refactor - add optional-dependencies (cherry picked from commit 4e30caab80e639b961bfdad21c956507ff03f947) --- .../python-modules/wled/default.nix | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/wled/default.nix b/pkgs/development/python-modules/wled/default.nix index 3dbdef76f1fb..0836376c679d 100644 --- a/pkgs/development/python-modules/wled/default.nix +++ b/pkgs/development/python-modules/wled/default.nix @@ -1,24 +1,26 @@ { lib, aiohttp, + aresponses, awesomeversion, backoff, buildPythonPackage, cachetools, fetchFromGitHub, poetry-core, - yarl, - aresponses, pytest-asyncio, pytest-xdist, pytestCheckHook, pythonOlder, + typer, + yarl, + zeroconf, }: buildPythonPackage rec { pname = "wled"; version = "0.18.0"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.11"; @@ -32,13 +34,13 @@ buildPythonPackage rec { postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ - --replace "0.0.0" "${version}" \ - --replace "--cov" "" + --replace-fail "0.0.0" "${version}" \ + --replace-fail "--cov" "" ''; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp awesomeversion backoff @@ -46,6 +48,13 @@ buildPythonPackage rec { yarl ]; + passthru.optional-dependencies = { + cli = [ + typer + zeroconf + ]; + }; + nativeCheckInputs = [ aresponses pytest-asyncio From 2ca40f4f4a11d6ce2764915f385100137b58188d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 23 May 2024 00:30:41 +0200 Subject: [PATCH 77/78] python312Packages.ha-philipsjs: 3.1.1 -> 3.2.1 Diff: https://github.com/danielperna84/ha-philipsjs/compare/refs/tags/3.1.1...3.2.1 Changelog: https://github.com/danielperna84/ha-philipsjs/releases/tag/3.2.1 (cherry picked from commit f0246f77963f3f184c8d4d5363f4b9e935993799) --- pkgs/development/python-modules/ha-philipsjs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/ha-philipsjs/default.nix b/pkgs/development/python-modules/ha-philipsjs/default.nix index 939dfdd8afca..be6a4de5d40a 100644 --- a/pkgs/development/python-modules/ha-philipsjs/default.nix +++ b/pkgs/development/python-modules/ha-philipsjs/default.nix @@ -13,7 +13,7 @@ buildPythonPackage rec { pname = "ha-philipsjs"; - version = "3.1.1"; + version = "3.2.1"; format = "setuptools"; disabled = pythonOlder "3.8"; @@ -22,7 +22,7 @@ buildPythonPackage rec { owner = "danielperna84"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-r8uqToxkJg9j89UUZpxsPXutWPefAYDW95zFBKU9Al4="; + hash = "sha256-gN7TPbNGw1vT0oAE6+Kg4V3J5dhYH+Gvv3JwptQ2aMk="; }; propagatedBuildInputs = [ From 0aa0ff6949b1826b975b89b646c488d966968850 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 23 May 2024 00:32:25 +0200 Subject: [PATCH 78/78] python312Packages.ha-philipsjs: refactor (cherry picked from commit 1896b9a5b861d116583a20b2bad85ed3b4268293) --- .../python-modules/ha-philipsjs/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/ha-philipsjs/default.nix b/pkgs/development/python-modules/ha-philipsjs/default.nix index be6a4de5d40a..805665b2b756 100644 --- a/pkgs/development/python-modules/ha-philipsjs/default.nix +++ b/pkgs/development/python-modules/ha-philipsjs/default.nix @@ -9,23 +9,26 @@ pytestCheckHook, pythonOlder, respx, + setuptools, }: buildPythonPackage rec { pname = "ha-philipsjs"; version = "3.2.1"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "danielperna84"; - repo = pname; + repo = "ha-philipsjs"; rev = "refs/tags/${version}"; hash = "sha256-gN7TPbNGw1vT0oAE6+Kg4V3J5dhYH+Gvv3JwptQ2aMk="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ cryptography httpx ]; @@ -40,7 +43,7 @@ buildPythonPackage rec { pythonImportsCheck = [ "haphilipsjs" ]; meta = with lib; { - description = "Python library to interact with Philips TVs with jointSPACE API"; + description = "Library to interact with Philips TVs with jointSPACE API"; homepage = "https://github.com/danielperna84/ha-philipsjs"; changelog = "https://github.com/danielperna84/ha-philipsjs/releases/tag/${version}"; license = licenses.mit;