From 475bce53557ad338d6ca0c1c689adaa5f80f4906 Mon Sep 17 00:00:00 2001 From: Vikram Narayanan Date: Sun, 13 Nov 2022 16:59:10 -0800 Subject: [PATCH 01/41] osc-lib: Mark as unbroken on darwin --- pkgs/development/python-modules/osc-lib/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/development/python-modules/osc-lib/default.nix b/pkgs/development/python-modules/osc-lib/default.nix index 9d2a4929a6e7..1e86f11e4147 100644 --- a/pkgs/development/python-modules/osc-lib/default.nix +++ b/pkgs/development/python-modules/osc-lib/default.nix @@ -56,7 +56,6 @@ buildPythonPackage rec { pythonImportsCheck = [ "osc_lib" ]; meta = with lib; { - broken = stdenv.isDarwin; description = "OpenStackClient Library"; homepage = "https://github.com/openstack/osc-lib"; license = licenses.asl20; From 9fd8c4c6ef06c7a336919aa6fa88f2561880afef Mon Sep 17 00:00:00 2001 From: ckie Date: Mon, 12 Dec 2022 02:38:43 +0200 Subject: [PATCH 02/41] blockbench-electron: 4.1.1 -> 4.5.2; cleanup; fix --- .../graphics/blockbench-electron/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/graphics/blockbench-electron/default.nix b/pkgs/applications/graphics/blockbench-electron/default.nix index 1968756496bb..5afd0f1d876f 100644 --- a/pkgs/applications/graphics/blockbench-electron/default.nix +++ b/pkgs/applications/graphics/blockbench-electron/default.nix @@ -1,12 +1,12 @@ -{ lib, stdenv, fetchurl, appimageTools, makeWrapper, electron_16 }: +{ lib, stdenv, fetchurl, appimageTools, makeWrapper, electron_22 }: stdenv.mkDerivation rec { pname = "blockbench-electron"; - version = "4.1.1"; + version = "4.5.2"; src = fetchurl { url = "https://github.com/JannisX11/blockbench/releases/download/v${version}/Blockbench_${version}.AppImage"; - sha256 = "0mqdkjhmylrjjfrm05jv1967qqka5263fgcn9qzax08gcq93s18f"; + sha256 = "sha256-uUgVBdYMCF31+L/FV4ADIpUdEAmnW59KfscQxUStPWM="; name = "${pname}-${version}.AppImage"; }; @@ -33,7 +33,7 @@ stdenv.mkDerivation rec { ''; postFixup = '' - makeWrapper ${electron_16}/bin/electron $out/bin/${pname} \ + makeWrapper ${electron_22}/bin/electron $out/bin/${pname} \ --add-flags $out/share/${pname}/resources/app.asar \ --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc ]}" ''; @@ -42,7 +42,7 @@ stdenv.mkDerivation rec { description = "A boxy 3D model editor powered by Electron"; homepage = "https://blockbench.net/"; license = licenses.gpl3Only; - maintainers = [ maintainers.ckie ]; + maintainers = with maintainers; [ ckie ]; platforms = [ "x86_64-linux" ]; }; } From d45b01a9852c757f7ca783c4d0c9d4f6db19f1c9 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Tue, 13 Dec 2022 00:18:40 +0000 Subject: [PATCH 03/41] xrdp: add many knownVulnerabilities --- .../networking/remote/xrdp/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/applications/networking/remote/xrdp/default.nix b/pkgs/applications/networking/remote/xrdp/default.nix index feb8252c7eda..3744451f3e28 100644 --- a/pkgs/applications/networking/remote/xrdp/default.nix +++ b/pkgs/applications/networking/remote/xrdp/default.nix @@ -100,6 +100,20 @@ let license = licenses.asl20; maintainers = [ ]; platforms = platforms.linux; + knownVulnerabilities = [ + "CVE-2020-4044" + "CVE-2022-23468" + "CVE-2022-23477" + "CVE-2022-23478" + "CVE-2022-23479" + "CVE-2022-23480" + "CVE-2022-23481" + "CVE-2022-23482" + "CVE-2022-23483" + "CVE-2022-23484" + "CVE-2022-23493" + "CVE-2022-23613" + ]; }; }; in xrdp From 617806713853c8e22b0a946317bcc632eb4459d3 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sun, 18 Dec 2022 02:10:24 +0000 Subject: [PATCH 04/41] devd: 0.9 -> unstable-2020-04-27 --- pkgs/development/tools/devd/default.nix | 26 +++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/pkgs/development/tools/devd/default.nix b/pkgs/development/tools/devd/default.nix index 0789850a4945..05ed14dfcd6e 100644 --- a/pkgs/development/tools/devd/default.nix +++ b/pkgs/development/tools/devd/default.nix @@ -1,16 +1,30 @@ -{ buildGoPackage, fetchFromGitHub, lib }: +{ buildGoModule, fetchFromGitHub, fetchpatch, lib }: -buildGoPackage rec { +buildGoModule rec { pname = "devd"; - version = "0.9"; + version = "unstable-2020-04-27"; + src = fetchFromGitHub { owner = "cortesi"; repo = "devd"; - rev = "v${version}"; - sha256 = "1b02fj821k68q7xl48wc194iinqw9jiavzfl136hlzvg4m07p1wf"; + rev = "c1a3bfba27d8e028de90fb24452374412a4cffb3"; + hash = "sha256-k0zj7fiYbaHnNUUI7ruD0vXiT4c1bxPuR4I0dRouCbU="; }; - goPackagePath = "github.com/cortesi/devd"; + + vendorHash = "sha256-o7MbN/6n7fkp/yqYyQbfWBUqI09/JYh5jtV31gjNf6w="; + + patches = [ + # Update x/sys to support go 1.17. + (fetchpatch { + url = "https://github.com/cortesi/devd/commit/5f4720bf41399736b4e7e1a493da6c87a583d0b2.patch"; + hash = "sha256-WDN08XNsDPuZwBCE8iDXgGAWFwx2UTwqRkhzKMtPKR8="; + }) + ]; + subPackages = [ "cmd/devd" ]; + + ldflags = [ "-s" "-w" ]; + meta = with lib; { description = "A local webserver for developers"; homepage = "https://github.com/cortesi/devd"; From b1acd65415bd5210c83a9e093c124a149fadc52b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 22 Dec 2022 06:43:18 +0000 Subject: [PATCH 05/41] librewolf-unwrapped: 108.0-1 -> 108.0.1-1 --- .../networking/browsers/librewolf/src.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/browsers/librewolf/src.json b/pkgs/applications/networking/browsers/librewolf/src.json index 4070556cdce6..9955fd0a936c 100644 --- a/pkgs/applications/networking/browsers/librewolf/src.json +++ b/pkgs/applications/networking/browsers/librewolf/src.json @@ -1,11 +1,11 @@ { - "packageVersion": "108.0-1", + "packageVersion": "108.0.1-1", "source": { - "rev": "108.0-1", - "sha256": "1gfqxlcgf7qxgisbj565ndrfhkk68py2jpwrx7k2j7zpszkb2f4m" + "rev": "108.0.1-1", + "sha256": "0ix8ri2s8rnpd9nqvwlk50x9hp51y70gb3r6f7lh4ldg2bay08n0" }, "firefox": { - "version": "108.0", - "sha512": "fa800f62cca395a51b9a04373a27be48fc3860208e34ecf74d908127638d1eb8c41cf9898be6896777d408127d5c4b7104d9ee89c97da923b2dc6ea32186187e" + "version": "108.0.1", + "sha512": "e6219ed6324422ec293ed96868738e056582bb9f7fb82e59362541f3465c6ebca806d26ecd801156b074c3675bd5a22507b1f1fa53eebf82b7dd35f2b1ff0625" } } From 6054e49c022871b913f0ec68e5351cb6f067b131 Mon Sep 17 00:00:00 2001 From: riceicetea <104317939+riceicetea@users.noreply.github.com> Date: Fri, 7 Oct 2022 15:56:41 +0200 Subject: [PATCH 06/41] dm-sans: init at 1.002 Co-authored-by: wegank <9713184+wegank@users.noreply.github.com> Co-authored-by: Sandro --- maintainers/maintainer-list.nix | 6 ++++++ pkgs/data/fonts/dm-sans/default.nix | 21 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 3 files changed, 28 insertions(+) create mode 100644 pkgs/data/fonts/dm-sans/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 2f0eb281950b..3076008f8ec9 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -5111,6 +5111,12 @@ githubId = 15957973; name = "Jeffry Molanus"; }; + gilice = { + email = "gilice@proton.me"; + github = "gilice"; + githubId = 104317939; + name = "gilice"; + }; gilligan = { email = "tobias.pflug@gmail.com"; github = "gilligan"; diff --git a/pkgs/data/fonts/dm-sans/default.nix b/pkgs/data/fonts/dm-sans/default.nix new file mode 100644 index 000000000000..f7b556fe538d --- /dev/null +++ b/pkgs/data/fonts/dm-sans/default.nix @@ -0,0 +1,21 @@ +{ lib, fetchzip }: +let version = "1.002"; in +fetchzip { + inherit version; + pname = "dm-sans"; + url = "https://github.com/googlefonts/dm-fonts/releases/download/v${version}/DeepMindSans_v${version}.zip"; + stripRoot = false; + hash = "sha256-zyS0gz7CGn39HCiyeN5cAP63v9nG6jffGSsI1vr84EQ="; + + postFetch = '' + mkdir -p $out/share/fonts/truetype + mv $out/*.ttf $out/share/fonts/truetype + ''; + + meta = { + description = "A geometric sans-serif typeface"; + homepage = "https://github.com/googlefonts/dm-fonts"; + license = lib.licenses.ofl; + maintainers = with lib.maintainers; [ gilice ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f6ee2814f487..95f9a26cf77a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -26498,6 +26498,7 @@ with pkgs; dina-font = callPackage ../data/fonts/dina { }; + dm-sans = callPackage ../data/fonts/dm-sans { }; dns-root-data = callPackage ../data/misc/dns-root-data { }; docbook5 = callPackage ../data/sgml+xml/schemas/docbook-5.0 { }; From 056100ec277c5b1e737de306191558f3b9693198 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 29 Dec 2022 12:00:57 +0100 Subject: [PATCH 07/41] python3Packages.hassil: 0.1.3 -> 0.1.4 Changelog: https://github.com/home-assistant/hassil/releases/tag/v0.1.4 --- pkgs/development/python-modules/hassil/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/hassil/default.nix b/pkgs/development/python-modules/hassil/default.nix index bbbe26faccb9..9e5d3116e01f 100644 --- a/pkgs/development/python-modules/hassil/default.nix +++ b/pkgs/development/python-modules/hassil/default.nix @@ -13,7 +13,7 @@ let pname = "hassil"; - version = "0.1.3"; + version = "0.1.4"; in buildPythonPackage { inherit pname version; @@ -21,7 +21,7 @@ buildPythonPackage { src = fetchPypi { inherit pname version; - hash = "sha256-KWkzHWMo50OIrZ2kwFhhqDSleFFkAD7/JugjvSyCkww="; + hash = "sha256-ygaPdfH2jBk2xvlgt7V8/VcZAtv6Lwsi8g+stK/DdT8="; }; postPatch = '' From d050d9d91d83d07a6e2e73589316b5ca1b6726d2 Mon Sep 17 00:00:00 2001 From: Robert James Hernandez Date: Thu, 29 Dec 2022 10:10:08 +0000 Subject: [PATCH 08/41] ax25-apps: init at 0.0.8-rc5 --- pkgs/applications/radio/ax25-apps/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/applications/radio/ax25-apps/default.nix diff --git a/pkgs/applications/radio/ax25-apps/default.nix b/pkgs/applications/radio/ax25-apps/default.nix new file mode 100644 index 000000000000..4f9ecd3580f8 --- /dev/null +++ b/pkgs/applications/radio/ax25-apps/default.nix @@ -0,0 +1,33 @@ +{ lib +, stdenv +, fetchurl +, libax25 +, ncurses +}: + +stdenv.mkDerivation rec { + pname = "ax25-apps"; + version = "0.0.8-rc5"; + + buildInputs = [ libax25 ncurses ]; + + # Due to recent unsolvable administrative domain problems with linux-ax25.org, + # the new domain is linux-ax25.in-berlin.de + src = fetchurl { + url = "https://linux-ax25.in-berlin.de/pub/ax25-apps/ax25-apps-${version}.tar.gz"; + sha256 = "sha256-MzQOIyy5tbJKmojMrgtOcsaQTFJvs3rqt2hUgholz5Y="; + }; + + configureFlags = [ + "--sysconfdir=/etc" + "--program-transform-name=s@^call$@ax&@;s@^listen$@ax&@" + ]; + + meta = with lib; { + description = "AX.25 ham radio applications"; + homepage = "https://linux-ax25.in-berlin.de/wiki/Main_Page"; + license = licenses.lgpl21Only; + maintainers = with maintainers; [ sarcasticadmin ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 543c4eb77454..31c4c516e3b5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27747,6 +27747,8 @@ with pkgs; avocode = callPackage ../applications/graphics/avocode {}; + ax25-apps = callPackage ../applications/radio/ax25-apps {}; + ax25-tools = callPackage ../applications/radio/ax25-tools {}; azpainter = callPackage ../applications/graphics/azpainter { }; From cb8de6b9103498e188afff5f26018a1174574963 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Thu, 29 Dec 2022 22:56:06 +0200 Subject: [PATCH 09/41] yubioath-flutter: slight refactor and cleanup --- .../misc/yubioath-flutter/default.nix | 72 +++++++++++-------- .../misc/yubioath-flutter/helper.nix | 2 +- 2 files changed, 43 insertions(+), 31 deletions(-) diff --git a/pkgs/applications/misc/yubioath-flutter/default.nix b/pkgs/applications/misc/yubioath-flutter/default.nix index d858605e9044..11e414677cd6 100644 --- a/pkgs/applications/misc/yubioath-flutter/default.nix +++ b/pkgs/applications/misc/yubioath-flutter/default.nix @@ -5,20 +5,60 @@ , stdenv , pcre2 }: - let vendorHashes = { x86_64-linux = "sha256-BwhWA8N0S55XkljDKPNkDhsj0QSpmJJ5MwEnrPjymS8="; aarch64-linux = "sha256-T1aGz3+2Sls+rkUVDUo39Ky2igg+dxGSUaf3qpV7ovQ="; }; - +in +flutter.mkFlutterApp rec { + pname = "yubioath-flutter"; version = "6.0.2"; + src = fetchFromGitHub { owner = "Yubico"; repo = "yubioath-flutter"; rev = version; sha256 = "13nh5qpq02c6azfdh4cbzhlrq0hs9is45q5z5cnxg84hrx26hd4k"; }; + + passthru.helper = python3.pkgs.callPackage ./helper.nix { inherit src version meta; }; + + vendorHash = vendorHashes.${stdenv.system}; + + postPatch = '' + substituteInPlace linux/CMakeLists.txt \ + --replace "../build/linux/helper" "${passthru.helper}/libexec/helper" + ''; + + preInstall = '' + # Make sure we have permission to delete things CMake has copied in to our build directory from elsewhere. + chmod -R +w build + ''; + + postInstall = '' + # Swap the authenticator-helper symlink with the correct symlink. + ln -fs "${passthru.helper}/bin/authenticator-helper" "$out/app/helper/authenticator-helper" + + # Cleanup. + rm -rf \ + "$out/app/README.adoc" \ + "$out/app/desktop_integration.sh" \ + "$out/app/linux_support" \ + $out/bin/* # We will repopulate this directory later. + + # Symlink binary. + ln -sf "$out/app/authenticator" "$out/bin/yubioath-flutter" + + # Set the correct path to the binary in desktop file. + substituteInPlace "$out/share/applications/com.yubico.authenticator.desktop" \ + --replace "@EXEC_PATH/authenticator" "$out/bin/yubioath-flutter" + ''; + + buildInputs = [ + pcre2 + ]; + meta = with lib; { description = "Yubico Authenticator for Desktop"; homepage = "https://github.com/Yubico/yubioath-flutter"; @@ -26,32 +66,4 @@ let maintainers = with maintainers; [ lukegb ]; platforms = builtins.attrNames vendorHashes; }; - - helper = python3.pkgs.callPackage ./helper.nix { inherit src version meta; }; -in -flutter.mkFlutterApp rec { - pname = "yubioath-flutter"; - inherit src version meta; - - passthru.helper = helper; - - vendorHash = vendorHashes."${stdenv.system}"; - - postPatch = '' - substituteInPlace linux/CMakeLists.txt \ - --replace "../build/linux/helper" "${helper}/libexec/helper" - ''; - - preInstall = '' - # Make sure we have permission to delete things CMake has copied in to our build directory from elsewhere. - chmod -R +w build/ - ''; - postInstall = '' - # Swap the authenticator-helper symlink with the correct symlink. - ln -fs "${helper}/bin/authenticator-helper" "$out/app/helper/authenticator-helper" - ''; - - buildInputs = [ - pcre2 - ]; } diff --git a/pkgs/applications/misc/yubioath-flutter/helper.nix b/pkgs/applications/misc/yubioath-flutter/helper.nix index a37ae01990ab..12e5f52d6b2e 100644 --- a/pkgs/applications/misc/yubioath-flutter/helper.nix +++ b/pkgs/applications/misc/yubioath-flutter/helper.nix @@ -12,7 +12,7 @@ , meta }: -buildPythonApplication rec { +buildPythonApplication { pname = "yubioath-flutter-helper"; inherit src version meta; From aca0d40720e63a0089d0f7744da56f599ebd314e Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Sat, 31 Dec 2022 15:39:49 -0800 Subject: [PATCH 10/41] libplacebo: remove redundant glslang dependency src/glsl/meson.build says: "we only need one or the other, and shaderc is preferred". Reduces fragility due to glslang updates. --- pkgs/development/libraries/libplacebo/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libplacebo/default.nix b/pkgs/development/libraries/libplacebo/default.nix index 73d97a476559..754ac2097b95 100644 --- a/pkgs/development/libraries/libplacebo/default.nix +++ b/pkgs/development/libraries/libplacebo/default.nix @@ -7,7 +7,6 @@ , vulkan-headers , vulkan-loader , shaderc -, glslang , lcms2 , libepoxy , libGL @@ -38,7 +37,6 @@ stdenv.mkDerivation rec { vulkan-headers vulkan-loader shaderc - glslang lcms2 libepoxy libGL @@ -50,6 +48,7 @@ stdenv.mkDerivation rec { "-Dvulkan-registry=${vulkan-headers}/share/vulkan/registry/vk.xml" "-Ddemos=false" # Don't build and install the demo programs "-Dd3d11=disabled" # Disable the Direct3D 11 based renderer + "-Dglslang=disabled" # rely on shaderc for GLSL compilation instead ] ++ lib.optionals stdenv.isDarwin [ "-Dunwind=disabled" # libplacebo doesn’t build with `darwin.libunwind` ]; From b03bf9b29e9d381d484569a36c8c11b0e3da1770 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Sun, 18 Dec 2022 12:18:56 -0800 Subject: [PATCH 11/41] shaderc: 2021.0 -> 2022.4 --- pkgs/development/compilers/shaderc/default.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/development/compilers/shaderc/default.nix b/pkgs/development/compilers/shaderc/default.nix index 65938fcc2265..3a75c9b8c959 100644 --- a/pkgs/development/compilers/shaderc/default.nix +++ b/pkgs/development/compilers/shaderc/default.nix @@ -8,25 +8,25 @@ let glslang = fetchFromGitHub { owner = "KhronosGroup"; repo = "glslang"; - rev = "18eef33bd7a4bf5ad8c69f99cb72022608cf6e73"; - sha256 = "sha256-tkWVvYmSpJPaZ8VJOkAWndDWhA0PiHAkR3feBAo+knM="; + rev = "728c689574fba7e53305b475cd57f196c1a21226"; + hash = "sha256-BAgDQosiO3e4yy2DpQ6SjrJNrHTUDSduHFRvzWvd4v0="; }; spirv-tools = fetchFromGitHub { owner = "KhronosGroup"; repo = "SPIRV-Tools"; - rev = "c2d5375fa7cc87c93f692e7200d5d974283d4391"; - sha256 = "sha256-tMJRljrlH+qb+27rTn+3LuEyMOVpiU0zSCiGNfUTb6g="; + rev = "d9446130d5165f7fafcb3599252a22e264c7d4bd"; + hash = "sha256-fuYhzfkWXDm1icLHifc32XZCNQ6Dj5f5WJslT2JoMbc="; }; spirv-headers = fetchFromGitHub { owner = "KhronosGroup"; repo = "SPIRV-Headers"; - rev = "0c28b6451d77774912e52949c1e57fa726edf113"; - sha256 = "sha256-KpCMceTV/BRaoJe1qeXhKYQNQqdGaM6Q9nklpJKzHFY="; + rev = "c214f6f2d1a7253bb0e9f195c2dc5b0659dc99ef"; + hash = "sha256-/9EDOiqN6ZzDhRKP/Kv8D/BT2Cs7G8wyzEsGATLpmrA="; }; in stdenv.mkDerivation rec { pname = "shaderc"; - version = "2021.0"; + version = "2022.4"; outputs = [ "out" "lib" "bin" "dev" "static" ]; @@ -34,7 +34,7 @@ stdenv.mkDerivation rec { owner = "google"; repo = "shaderc"; rev = "v${version}"; - sha256 = "sha256-RfSMzrGVtdXbr/mjSrHoN447e3vMQfJbesQMvLOARBs="; + hash = "sha256-/p2gJ7Lnh8IfvwBwHPDtmfLJ8j+Rbv+Oxu9lxY6fxfk="; }; patchPhase = '' From 4d4b37d44f38715b7db3e2f60d95e37ef6a054d7 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 1 Jan 2023 04:04:35 +0100 Subject: [PATCH 12/41] python3Packages.hassil: regenerate antlr files --- pkgs/development/python-modules/hassil/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/development/python-modules/hassil/default.nix b/pkgs/development/python-modules/hassil/default.nix index 9e5d3116e01f..84800b51381a 100644 --- a/pkgs/development/python-modules/hassil/default.nix +++ b/pkgs/development/python-modules/hassil/default.nix @@ -2,6 +2,9 @@ , buildPythonPackage , fetchPypi +# build +, antlr4 + # propagates , antlr4-python3-runtime , dataclasses-json @@ -24,8 +27,14 @@ buildPythonPackage { hash = "sha256-ygaPdfH2jBk2xvlgt7V8/VcZAtv6Lwsi8g+stK/DdT8="; }; + nativeBuildInputs = [ + antlr4 + ]; + postPatch = '' sed -i 's/antlr4-python3-runtime==.*/antlr4-python3-runtime/' requirements.txt + rm hassil/grammar/*.{tokens,interp} + antlr -Dlanguage=Python3 -visitor -o hassil/grammar/ *.g4 ''; propagatedBuildInputs = [ From 00903be01097db9473da6cb23c27623291e2f961 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 1 Jan 2023 04:04:55 +0100 Subject: [PATCH 13/41] python3Packages.hassil: expose as top-level attribute --- pkgs/top-level/all-packages.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 20ca09c9a3e6..a6697c1a2a75 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7953,6 +7953,8 @@ with pkgs; haskell-language-server = callPackage ../development/tools/haskell/haskell-language-server/withWrapper.nix { }; + hassil = with python3Packages; toPythonApplication hassil; + hasmail = callPackage ../applications/networking/mailreaders/hasmail { }; haste-client = callPackage ../tools/misc/haste-client { }; From e56a1f2f921a618e4eaa4ba4ceb978c0f64367ad Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 1 Jan 2023 13:42:46 +0100 Subject: [PATCH 14/41] pgbouncer: 1.17.0 -> 1.18.0 https://www.pgbouncer.org/changelog.html#pgbouncer-118x --- pkgs/servers/sql/pgbouncer/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/sql/pgbouncer/default.nix b/pkgs/servers/sql/pgbouncer/default.nix index 0a6bfda03a73..46030c286a4e 100644 --- a/pkgs/servers/sql/pgbouncer/default.nix +++ b/pkgs/servers/sql/pgbouncer/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "pgbouncer"; - version = "1.17.0"; + version = "1.18.0"; src = fetchurl { - url = "https://pgbouncer.github.io/downloads/files/${version}/${pname}-${version}.tar.gz"; - sha256 = "sha256-ZXMJt7xceoXL9wqaRBtTX3gkEjCB6rt7qG0ANJolbiM="; + url = "https://www.pgbouncer.org/downloads/files/${version}/${pname}-${version}.tar.gz"; + sha256 = "sha256-k0nJ5Z9viBVjVPT2ryfNsBSiNbAK4YTLqjdoi9DfVEw="; }; nativeBuildInputs = [ pkg-config ]; @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; meta = with lib; { - homepage = "https://pgbouncer.github.io"; + homepage = "https://www.pgbouncer.org/"; description = "Lightweight connection pooler for PostgreSQL"; license = licenses.isc; maintainers = with maintainers; [ _1000101 ]; From 8b3d755bb4e4eb910a7085539656f8cb26edd263 Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 1 Jan 2023 20:33:50 -0500 Subject: [PATCH 15/41] nurl: 0.2.2 -> 0.3.0 Diff: https://github.com/nix-community/nurl/compare/v0.2.2...v0.3.0 Changelog: https://github.com/nix-community/nurl/blob/v0.3.0/CHANGELOG.md --- pkgs/tools/misc/nurl/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/nurl/default.nix b/pkgs/tools/misc/nurl/default.nix index b3ba4ca3a6aa..409d50cf8f9b 100644 --- a/pkgs/tools/misc/nurl/default.nix +++ b/pkgs/tools/misc/nurl/default.nix @@ -10,16 +10,16 @@ rustPlatform.buildRustPackage rec { pname = "nurl"; - version = "0.2.2"; + version = "0.3.0"; src = fetchFromGitHub { owner = "nix-community"; repo = "nurl"; rev = "v${version}"; - hash = "sha256-hK3bHaMzpqz3W/iJpSPf4Iv6nrLpVLBIkAy5QxI+yrg="; + hash = "sha256-jZ+cCp1THDhfHH5yMmRPjGuthOqsgcF/3OjZ61FMdA4="; }; - cargoSha256 = "sha256-eHk9mBaHbKVp7lCmSmrHQoRMDFCmUJ+LN5TVa3LhNZ8="; + cargoSha256 = "sha256-v/imDpIY/uN8fdrmvCNjQu0iL92cAL+aGZR0YjNaAH8="; nativeBuildInputs = [ installShellFiles From cd231b31f0f2bc4029ae226b11888e7e051ed6de Mon Sep 17 00:00:00 2001 From: figsoda Date: Sun, 1 Jan 2023 22:45:07 -0500 Subject: [PATCH 16/41] nurl: 0.3.0 -> 0.3.1 Diff: https://github.com/nix-community/nurl/compare/v0.3.0...v0.3.1 Changelog: https://github.com/nix-community/nurl/blob/v0.3.1/CHANGELOG.md --- pkgs/tools/misc/nurl/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/nurl/default.nix b/pkgs/tools/misc/nurl/default.nix index 409d50cf8f9b..6f0cf9bdfefa 100644 --- a/pkgs/tools/misc/nurl/default.nix +++ b/pkgs/tools/misc/nurl/default.nix @@ -10,16 +10,16 @@ rustPlatform.buildRustPackage rec { pname = "nurl"; - version = "0.3.0"; + version = "0.3.1"; src = fetchFromGitHub { owner = "nix-community"; repo = "nurl"; rev = "v${version}"; - hash = "sha256-jZ+cCp1THDhfHH5yMmRPjGuthOqsgcF/3OjZ61FMdA4="; + hash = "sha256-fLa9gNdwBOSOMisU1UI8KAKGOkDN13LZsBpH+bObqUM="; }; - cargoSha256 = "sha256-v/imDpIY/uN8fdrmvCNjQu0iL92cAL+aGZR0YjNaAH8="; + cargoSha256 = "sha256-vyhsZYYSpR2qbwTXOw8e1DFRQ78RVHktK6zCbiXT7RI="; nativeBuildInputs = [ installShellFiles From 1231399520169cb862d229bf88d5f3a00b01eca6 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 2 Jan 2023 09:24:22 +0100 Subject: [PATCH 17/41] xtreemfs: unbreak on aarch64-linux --- pkgs/tools/filesystems/xtreemfs/default.nix | 35 +++++++++++++++------ pkgs/top-level/all-packages.nix | 3 +- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/filesystems/xtreemfs/default.nix b/pkgs/tools/filesystems/xtreemfs/default.nix index 0effd8456649..6c02117936da 100644 --- a/pkgs/tools/filesystems/xtreemfs/default.nix +++ b/pkgs/tools/filesystems/xtreemfs/default.nix @@ -9,7 +9,7 @@ , cmake , file , fuse -, jdk +, jdk8 , openssl , python3 , valgrind @@ -17,30 +17,49 @@ }: stdenv.mkDerivation { + pname = "XtreemFS"; + # using unstable release because stable (v1.5.1) has broken repl java plugin + version = "unstable-2015-06-17"; + src = fetchFromGitHub { - # using unstable release because stable (v1.5.1) has broken repl java plugin rev = "7ddcb081aa125b0cfb008dc98addd260b8353ab3"; owner = "xtreemfs"; repo = "xtreemfs"; sha256 = "1hjmd32pla27zf98ghzz6r5ml8ry86m9dsryv1z01kxv5l95b3m0"; }; - pname = "XtreemFS"; - version = "1.5.1.81"; - nativeBuildInputs = [ makeWrapper python3 ]; buildInputs = [ which attr ]; patches = [ (fetchpatch { + name = "protobuf-add-arm64-atomicops.patch"; + url = "https://github.com/protocolbuffers/protobuf/commit/2ca19bd8066821a56f193e7fca47139b25c617ad.patch"; + stripLen = 1; + extraPrefix = "cpp/thirdparty/protobuf-2.5.0/"; + sha256 = "sha256-hlL5ZiJhpO3fPpcSTV+yki4zahg/OhFdIZEGF1TNTe0="; + }) + (fetchpatch { + name = "protobuf-add-aarch64-architecture-to-platform-macros.patch"; + url = "https://github.com/protocolbuffers/protobuf/commit/f0b6a5cfeb5f6347c34975446bda08e0c20c9902.patch"; + stripLen = 1; + extraPrefix = "cpp/thirdparty/protobuf-2.5.0/"; + sha256 = "sha256-VRl303x9g5ES/LMODcAdhsPiEmQTq/qXhE/DfvLXF84="; + }) + (fetchpatch { + name = "xtreemfs-fix-for-boost-version-1.66.patch"; + url = "https://github.com/xtreemfs/xtreemfs/commit/aab843cb115ab0739edf7f58fd2d4553a05374a8.patch"; + sha256 = "sha256-y/vXI/PT1TwSy8/73+RKIgKq4pZ9i22MBxr6jo/M5l8="; + }) + (fetchpatch { + name = "xtreemfs-fix-for-openssl_1_1.patch"; url = "https://github.com/xtreemfs/xtreemfs/commit/ebfdc2fff56c09f310159d92026883941e42a953.patch"; sha256 = "075w00ad88qm6xpm5679m0gfzkrc53w17sk7ycybf4hzxjs29ygy"; - name = "xtreemfs-fix-for-openssl_1_1"; }) ]; preConfigure = '' - export JAVA_HOME=${jdk} + export JAVA_HOME=${jdk8} export ANT_HOME=${ant} export BOOST_INCLUDEDIR=${boost.dev}/include @@ -90,7 +109,5 @@ stdenv.mkDerivation { maintainers = with lib.maintainers; [ raskin matejc ]; platforms = lib.platforms.linux; license = lib.licenses.bsd3; - # never built on aarch64-linux since first introduction in nixpkgs - broken = stdenv.isLinux && stdenv.isAarch64; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1623a08256a3..cf7ad624754e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13339,8 +13339,7 @@ with pkgs; }; xtreemfs = callPackage ../tools/filesystems/xtreemfs { - boost = boost165; - jdk = jdk8; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731 + boost = boost17x; }; xurls = callPackage ../tools/text/xurls {}; From 021ba88731b227164447881487462b80665fef18 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 2 Jan 2023 09:29:25 +0100 Subject: [PATCH 18/41] garage: unbreak on aarch64-darwin --- pkgs/tools/filesystems/garage/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/filesystems/garage/default.nix b/pkgs/tools/filesystems/garage/default.nix index 18c2b96de807..f41ad499dc09 100644 --- a/pkgs/tools/filesystems/garage/default.nix +++ b/pkgs/tools/filesystems/garage/default.nix @@ -84,8 +84,8 @@ in version = "0.8.0"; sha256 = "sha256-c2RhHfg0+YV2E9Ckl1YSc+0nfzbHPIt0JgtT0DND9lA="; cargoSha256 = "sha256-vITXckNOiJbMuQW6/8p7dsZThkjxg/zUy3AZBbn33no="; - # On Darwin, tests are failing. - broken = stdenv.isDarwin; + # On x86_64-darwin, tests are failing. + broken = stdenv.isDarwin && stdenv.isx86_64; }; garage_0_8 = garage_0_8_0; From 9ec889b4b81b5323afe0066a0b132fd2b4188cbe Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Mon, 2 Jan 2023 09:59:58 +0100 Subject: [PATCH 19/41] paperless-ngx: fix build missing poppler will result in pyTest failing Signed-off-by: Florian Brandes --- pkgs/applications/office/paperless-ngx/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/office/paperless-ngx/default.nix b/pkgs/applications/office/paperless-ngx/default.nix index eaad04c64f6f..feda51e4f665 100644 --- a/pkgs/applications/office/paperless-ngx/default.nix +++ b/pkgs/applications/office/paperless-ngx/default.nix @@ -10,6 +10,7 @@ , qpdf , tesseract5 , unpaper +, poppler_utils , liberation_ttf , fetchFromGitHub }: @@ -75,6 +76,7 @@ let qpdf tesseract5 unpaper + poppler_utils ]; in python.pkgs.pythonPackages.buildPythonApplication rec { From 481bc87b83e84342789e8a5945883c6e14d988da Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 2 Jan 2023 11:42:56 +0100 Subject: [PATCH 20/41] jxrlib: migrate to cmake --- pkgs/development/libraries/jxrlib/default.nix | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/pkgs/development/libraries/jxrlib/default.nix b/pkgs/development/libraries/jxrlib/default.nix index 06499e151ba1..e6768dc0fa50 100644 --- a/pkgs/development/libraries/jxrlib/default.nix +++ b/pkgs/development/libraries/jxrlib/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, python3, fixDarwinDylibNames }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }: stdenv.mkDerivation rec { pname = "jxrlib"; @@ -13,21 +13,25 @@ stdenv.mkDerivation rec { sha256 = "0rk3hbh00nw0wgbfbqk1szrlfg3yq7w6ar16napww3nrlm9cj65w"; }; - postPatch = '' - substituteInPlace Makefile \ - --replace "cc" "$CC" - '' + lib.optionalString stdenv.isDarwin '' - substituteInPlace Makefile \ - --replace '-shared' '-dynamiclib -undefined dynamic_lookup' \ - --replace '.so' '.dylib' - ''; + patches = [ + (fetchpatch { + url = "https://salsa.debian.org/debian-phototools-team/jxrlib/-/raw/df96f9b9c1fbe9cdc97589c337f8a948bc81c4d0/debian/patches/usecmake.patch"; + sha256 = "sha256-BpCToLgA5856PZk5mXlwAy3Oh9aYP/2wvu2DXDTqufM="; + }) + (fetchpatch { + url = "https://salsa.debian.org/debian-phototools-team/jxrlib/-/raw/6c88037293aff8d5bc8a76ea32b36781c430ede3/debian/patches/bug803743.patch"; + sha256 = "sha256-omIGa+ZrWjaH/IkBn4jgjufF/HEDKw69anVCX4hw+xQ="; + }) + (fetchpatch { + url = "https://salsa.debian.org/debian-phototools-team/jxrlib/-/raw/b23d49062ec6a9b2739c9dade86be525a72fc807/debian/patches/pkg-config.patch"; + sha256 = "sha256-ZACaXEi+rbKIFBHtSBheyFfqV2HYsKKrT+SmTShyUhg="; + }) + ]; - nativeBuildInputs = [ python3 ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames; + nativeBuildInputs = [ cmake ]; strictDeps = true; - makeFlags = [ "DIR_INSTALL=$(out)" "SHARED=1" ]; - meta = with lib; { description = "Implementation of the JPEG XR image codec standard"; homepage = "https://jxrlib.codeplex.com"; From 34b65aa355cdc0fa37654f1773c82df1d5b1da83 Mon Sep 17 00:00:00 2001 From: Dominik Ritter Date: Mon, 2 Jan 2023 12:24:20 +0100 Subject: [PATCH 21/41] josm: 18583 -> 18621 --- pkgs/applications/misc/josm/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/misc/josm/default.nix b/pkgs/applications/misc/josm/default.nix index 7b2973b5075e..2efe9ec440e1 100644 --- a/pkgs/applications/misc/josm/default.nix +++ b/pkgs/applications/misc/josm/default.nix @@ -3,15 +3,15 @@ }: let pname = "josm"; - version = "18583"; + version = "18621"; srcs = { jar = fetchurl { url = "https://josm.openstreetmap.de/download/josm-snapshot-${version}.jar"; - hash = "sha256-6S6E7ngTCBXb0epPfYxIswLvfm9r2Ql0wgOs/PxpmIM="; + hash = "sha256-RZiYHDqowk0oG/rQVcsoYpZvL4wNmegZD2EHlsQggw8="; }; macosx = fetchurl { url = "https://josm.openstreetmap.de/download/macosx/josm-macos-${version}-java17.zip"; - hash = "sha256-3XEoSCXEpeqZj1y4nns5+0JR1SINYE1rsmQ4fMflxRQ="; + hash = "sha256-Sf5mgxWjq240U1tUByBS6FFb0Tpj/QP7yHl+wvTIfng="; }; pkg = fetchsvn { url = "https://josm.openstreetmap.de/svn/trunk/native/linux/tested"; From 7d929dee7b51b9a8928a2991058ea52d20062bf3 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Mon, 2 Jan 2023 12:01:47 +0000 Subject: [PATCH 22/41] d2: 0.1.2 -> 0.1.4 --- pkgs/tools/text/d2/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/text/d2/default.nix b/pkgs/tools/text/d2/default.nix index d3a45b222685..a020497704d6 100644 --- a/pkgs/tools/text/d2/default.nix +++ b/pkgs/tools/text/d2/default.nix @@ -8,16 +8,16 @@ buildGoModule rec { pname = "d2"; - version = "0.1.2"; + version = "0.1.4"; src = fetchFromGitHub { owner = "terrastruct"; repo = pname; rev = "v${version}"; - hash = "sha256-O3T26Stau168hP7Hhv2bayamXQvaFD6feyW5AYoHf0U="; + hash = "sha256-whxXMU9jQ/ixXUx6vqs1CdLWZGHTBFJcA6v1Z4aAV4s="; }; - vendorHash = "sha256-k9zaZ28vs3R5usWUW5N78zz0PuP5UrYEhgXxpQ+v5sE="; + vendorHash = "sha256-t94xCNteYRpbV2GzrD4ppD8xfUV1HTJPkipEzr36CaM="; ldflags = [ "-s" From 530f4c22d9bc031ea28cb2b90d0010d8f7106df4 Mon Sep 17 00:00:00 2001 From: Kototama Date: Mon, 2 Jan 2023 13:37:19 +0100 Subject: [PATCH 23/41] xpra: add missing invoke python3 module This prevents the following error when starting xpra: xpra initialization error: connection failed: No module named 'invoke' --- pkgs/tools/X11/xpra/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/tools/X11/xpra/default.nix b/pkgs/tools/X11/xpra/default.nix index dd94f5ad46a2..05a36726c0c7 100644 --- a/pkgs/tools/X11/xpra/default.nix +++ b/pkgs/tools/X11/xpra/default.nix @@ -151,6 +151,7 @@ in buildPythonApplication rec { python-uinput pyxdg rencode + invoke ] ++ lib.optionals withNvenc [ pycuda pynvml From 43889bbedb3f186777c599d39f4d40b88d6fca0b Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Mon, 2 Jan 2023 21:54:04 +0800 Subject: [PATCH 24/41] strawberry: 1.0.10 -> 1.0.11 --- pkgs/applications/audio/strawberry/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/strawberry/default.nix b/pkgs/applications/audio/strawberry/default.nix index 13dc80c1dc63..303e0e265f81 100644 --- a/pkgs/applications/audio/strawberry/default.nix +++ b/pkgs/applications/audio/strawberry/default.nix @@ -42,13 +42,13 @@ let in stdenv.mkDerivation rec { pname = "strawberry"; - version = "1.0.10"; + version = "1.0.11"; src = fetchFromGitHub { owner = "jonaski"; repo = pname; rev = version; - hash = "sha256-N3jLw2UXLXLpTmFIHihzcMXrxJY0gmvwoawTQ0vRR+w="; + hash = "sha256-w2KOZwxPpe/yQw2RBeTEYueeq7m5ZCQXlUH/f52GiyI="; }; # the big strawberry shown in the context menu is *very* much in your face, so use the grey version instead From 5b6881f4a0797cf7cc6c3350c4bc784a851e0124 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Mon, 2 Jan 2023 12:19:27 +0100 Subject: [PATCH 25/41] nixos/paperless-ngx: fix startup order The nixOS test failed sporadically with a timeout. This is due to a race condition in the startup of the scheduler vs the task-queue. The scheduler runs the migration scripts in "pre-start" and celery isn't available, yet. The celery worker (paperless-task-queue) was already started by systemd but was unable to connect (as the migration scripts from "pre-start" still ran). This fix adds the necessary "after" condition in the systemd worker unit and adds a test to "paperless" Signed-off-by: Florian Brandes --- nixos/modules/services/misc/paperless.nix | 1 + nixos/tests/paperless.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/nixos/modules/services/misc/paperless.nix b/nixos/modules/services/misc/paperless.nix index 33a8394dff2d..54c53a011343 100644 --- a/nixos/modules/services/misc/paperless.nix +++ b/nixos/modules/services/misc/paperless.nix @@ -258,6 +258,7 @@ in PrivateNetwork = false; }; environment = env; + after = [ "paperless-scheduler.service" ]; }; # Reading the user-provided password file requires root access diff --git a/nixos/tests/paperless.nix b/nixos/tests/paperless.nix index b97834835c2c..7f36de4c29b7 100644 --- a/nixos/tests/paperless.nix +++ b/nixos/tests/paperless.nix @@ -26,6 +26,10 @@ import ./make-test-python.nix ({ lib, ... }: { # Wait until server accepts connections machine.wait_until_succeeds("curl -fs localhost:28981") + # Required for consuming documents via the web interface + with subtest("Task-queue gets ready"): + machine.wait_for_unit("paperless-task-queue.service") + with subtest("Add a document via the web interface"): machine.succeed( "convert -size 400x40 xc:white -font 'DejaVu-Sans' -pointsize 20 -fill black " From b406baead835cbc5e0bb4e316b89c8ddab2211fa Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Mon, 2 Jan 2023 15:22:37 +0100 Subject: [PATCH 26/41] nixos/paperless-ngx: reorder "after" keyword Signed-off-by: Florian Brandes --- nixos/modules/services/misc/paperless.nix | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/nixos/modules/services/misc/paperless.nix b/nixos/modules/services/misc/paperless.nix index 54c53a011343..1dddd147ac09 100644 --- a/nixos/modules/services/misc/paperless.nix +++ b/nixos/modules/services/misc/paperless.nix @@ -212,14 +212,14 @@ in systemd.services.paperless-scheduler = { description = "Paperless Celery Beat"; + wantedBy = [ "multi-user.target" ]; + wants = [ "paperless-consumer.service" "paperless-web.service" "paperless-task-queue.service" ]; serviceConfig = defaultServiceConfig // { User = cfg.user; ExecStart = "${pkg}/bin/celery --app paperless beat --loglevel INFO"; Restart = "on-failure"; }; environment = env; - wantedBy = [ "multi-user.target" ]; - wants = [ "paperless-consumer.service" "paperless-web.service" "paperless-task-queue.service" ]; preStart = '' ln -sf ${manage} ${cfg.dataDir}/paperless-manage @@ -248,6 +248,7 @@ in systemd.services.paperless-task-queue = { description = "Paperless Celery Workers"; + after = [ "paperless-scheduler.service" ]; serviceConfig = defaultServiceConfig // { User = cfg.user; ExecStart = "${pkg}/bin/celery --app paperless worker --loglevel INFO"; @@ -258,7 +259,6 @@ in PrivateNetwork = false; }; environment = env; - after = [ "paperless-scheduler.service" ]; }; # Reading the user-provided password file requires root access @@ -276,20 +276,24 @@ in systemd.services.paperless-consumer = { description = "Paperless document consumer"; + # Bind to `paperless-scheduler` so that the consumer never runs + # during migrations + bindsTo = [ "paperless-scheduler.service" ]; + after = [ "paperless-scheduler.service" ]; serviceConfig = defaultServiceConfig // { User = cfg.user; ExecStart = "${pkg}/bin/paperless-ngx document_consumer"; Restart = "on-failure"; }; environment = env; - # Bind to `paperless-scheduler` so that the consumer never runs - # during migrations - bindsTo = [ "paperless-scheduler.service" ]; - after = [ "paperless-scheduler.service" ]; }; systemd.services.paperless-web = { description = "Paperless web server"; + # Bind to `paperless-scheduler` so that the web server never runs + # during migrations + bindsTo = [ "paperless-scheduler.service" ]; + after = [ "paperless-scheduler.service" ]; serviceConfig = defaultServiceConfig // { User = cfg.user; ExecStart = '' @@ -313,10 +317,6 @@ in # Allow the web interface to access the private /tmp directory of the server. # This is required to support uploading files via the web interface. unitConfig.JoinsNamespaceOf = "paperless-task-queue.service"; - # Bind to `paperless-scheduler` so that the web server never runs - # during migrations - bindsTo = [ "paperless-scheduler.service" ]; - after = [ "paperless-scheduler.service" ]; }; users = optionalAttrs (cfg.user == defaultUser) { From 667ab43f311f59d5a003ebae1bdcb9251a4f0687 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 2 Jan 2023 16:47:33 +0100 Subject: [PATCH 27/41] barcode: add darwin support --- pkgs/tools/graphics/barcode/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/graphics/barcode/default.nix b/pkgs/tools/graphics/barcode/default.nix index eed06602a5dd..9eb368b83af6 100644 --- a/pkgs/tools/graphics/barcode/default.nix +++ b/pkgs/tools/graphics/barcode/default.nix @@ -16,12 +16,14 @@ stdenv.mkDerivation rec { }) ]; + configureFlags = lib.optional stdenv.isDarwin "ac_cv_func_calloc_0_nonnull=yes"; + hardeningDisable = [ "format" ]; meta = with lib; { description = "GNU barcode generator"; maintainers = with maintainers; [ raskin ]; - platforms = platforms.linux; # Maybe other non-darwin Unix + platforms = platforms.unix; downloadPage = "https://ftp.gnu.org/gnu/barcode/"; homepage = "https://www.gnu.org/software/barcode/"; license = licenses.gpl3; From b84a4ccb9f93bfd06c0aead31a7bc9fa0f0bcb6b Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 1 Jan 2023 12:00:51 +0100 Subject: [PATCH 28/41] redis: 7.0.5 -> 7.0.7 https://github.com/redis/redis/releases/tag/7.0.6 https://github.com/redis/redis/releases/tag/7.0.7 Patch to fix CVE-2022-3647 can be dropped as it now available in the released versions. --- pkgs/servers/nosql/redis/default.nix | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/pkgs/servers/nosql/redis/default.nix b/pkgs/servers/nosql/redis/default.nix index f99935449cb0..b34c18a08bc6 100644 --- a/pkgs/servers/nosql/redis/default.nix +++ b/pkgs/servers/nosql/redis/default.nix @@ -1,5 +1,5 @@ { lib, stdenv, fetchurl, lua, pkg-config, nixosTests -, tcl, which, ps, getconf, fetchpatch +, tcl, which, ps, getconf , withSystemd ? stdenv.isLinux && !stdenv.hostPlatform.isStatic, systemd # dependency ordering is broken at the moment when building with openssl , tlsSupport ? !stdenv.hostPlatform.isStatic, openssl @@ -7,22 +7,13 @@ stdenv.mkDerivation rec { pname = "redis"; - version = "7.0.5"; + version = "7.0.7"; src = fetchurl { url = "https://download.redis.io/releases/${pname}-${version}.tar.gz"; - hash = "sha256-ZwVMw3tYwSXfk714AAJh7A70Q2omtA84Jix4DlYxXMM="; + hash = "sha256-jTJ9foh9G7MI/Deq9xegv3n1gSnjc5Bpqu6uiJVaxYY="; }; - patches = [ - # https://nvd.nist.gov/vuln/detail/CVE-2022-3647 - (fetchpatch { - name = "CVE-2022-3647.patch"; - url = "https://github.com/redis/redis/commit/0bf90d944313919eb8e63d3588bf63a367f020a3.patch"; - sha256 = "sha256-R5Tj/bHFTRnvWXiOYvRulqePzU5zvKbGfpO87TLfLWk="; - }) - ]; - nativeBuildInputs = [ pkg-config ]; buildInputs = [ lua ] From d40732c5ee5f53580690b648b9911e0a2185985c Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 2 Jan 2023 18:34:58 +0100 Subject: [PATCH 29/41] python310Packages.kiwiki-client: init at 0.1.2 --- .../python-modules/kiwiki-client/default.nix | 42 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/python-modules/kiwiki-client/default.nix diff --git a/pkgs/development/python-modules/kiwiki-client/default.nix b/pkgs/development/python-modules/kiwiki-client/default.nix new file mode 100644 index 000000000000..22da8a5236e2 --- /dev/null +++ b/pkgs/development/python-modules/kiwiki-client/default.nix @@ -0,0 +1,42 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, python-dateutil +, pythonOlder +, requests +}: + +buildPythonPackage rec { + pname = "kiwiki-client"; + version = "0.1.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "c7h"; + repo = "kiwiki_client"; + rev = "refs/tags/${version}"; + hash = "sha256-CIBed8HzbUqUIzNy1lHxIgjneA6R8uKtmd43LU92M0Q="; + }; + + propagatedBuildInputs = [ + python-dateutil + requests + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "kiwiki" + ]; + + meta = with lib; { + description = "Module to interact with the KIWI.KI API"; + homepage = "https://github.com/c7h/kiwiki_client"; + changelog = "https://github.com/c7h/kiwiki_client/releases/tag/${version}"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5011e5ecb3ff..79e77719abce 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5075,6 +5075,8 @@ self: super: with self; { kivy-garden = callPackage ../development/python-modules/kivy-garden { }; + kiwiki-client = callPackage ../development/python-modules/kiwiki-client { }; + kiwisolver = callPackage ../development/python-modules/kiwisolver { }; klaus = callPackage ../development/python-modules/klaus { }; From 0b9f76a8d37cfd3b457efe37d2ab7930722de016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 2 Jan 2023 18:45:55 +0100 Subject: [PATCH 30/41] nixos/nix-ld: fix example texts --- nixos/modules/programs/nix-ld.nix | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/nixos/modules/programs/nix-ld.nix b/nixos/modules/programs/nix-ld.nix index f753cf5f97e5..9a12b4ca5c74 100644 --- a/nixos/modules/programs/nix-ld.nix +++ b/nixos/modules/programs/nix-ld.nix @@ -36,23 +36,22 @@ let in { meta.maintainers = [ lib.maintainers.mic92 ]; - options = { - programs.nix-ld = { - enable = lib.mkEnableOption (lib.mdDoc ''nix-ld, Documentation: ''); - package = lib.mkOption { - type = lib.types.package; - description = lib.mdDoc "Which package to use for the nix-ld."; - default = pkgs.nix-ld; - defaultText = lib.mdDoc "pkgs.nix-ld"; - }; - libraries = lib.mkOption { - type = lib.types.listOf lib.types.package; - description = lib.mdDoc "Libraries that automatically become available to all programs. The default set includes common libraries."; - default = baseLibraries; - defaultText = lib.mdDoc "baseLibraries"; - }; + options.programs.nix-ld = { + enable = lib.mkEnableOption (lib.mdDoc ''nix-ld, Documentation: ''); + package = lib.mkOption { + type = lib.types.package; + description = lib.mdDoc "Which package to use for the nix-ld."; + default = pkgs.nix-ld; + defaultText = lib.literalExpression "pkgs.nix-ld"; + }; + libraries = lib.mkOption { + type = lib.types.listOf lib.types.package; + description = lib.mdDoc "Libraries that automatically become available to all programs. The default set includes common libraries."; + default = baseLibraries; + defaultText = lib.literalExpression "baseLibraries derived from systemd and nix dependencies."; }; }; + config = lib.mkIf config.programs.nix-ld.enable { systemd.tmpfiles.packages = [ cfg.package ]; From 778f278579934823969f6c3fae25a9328a9f0f7d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 2 Jan 2023 18:47:25 +0100 Subject: [PATCH 31/41] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b72fa929a7db..a5f509fd65f6 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1776,7 +1776,8 @@ pykira ]; "kiwi" = ps: with ps; [ - ]; # missing inputs: kiwiki-client + kiwiki-client + ]; "kmtronic" = ps: with ps; [ pykmtronic ]; From 88d6c7c7a7a25a4025d99f7800ee6bbc18c418b3 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 2 Jan 2023 18:00:06 +0000 Subject: [PATCH 32/41] yubioath-flutter: package and set path to icon --- pkgs/applications/misc/yubioath-flutter/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/yubioath-flutter/default.nix b/pkgs/applications/misc/yubioath-flutter/default.nix index 11e414677cd6..50bb48347ac6 100644 --- a/pkgs/applications/misc/yubioath-flutter/default.nix +++ b/pkgs/applications/misc/yubioath-flutter/default.nix @@ -40,6 +40,10 @@ flutter.mkFlutterApp rec { # Swap the authenticator-helper symlink with the correct symlink. ln -fs "${passthru.helper}/bin/authenticator-helper" "$out/app/helper/authenticator-helper" + # Move the icon. + mkdir $out/share/icons + mv $out/app/linux_support/com.yubico.yubioath.png $out/share/icons + # Cleanup. rm -rf \ "$out/app/README.adoc" \ @@ -52,7 +56,8 @@ flutter.mkFlutterApp rec { # Set the correct path to the binary in desktop file. substituteInPlace "$out/share/applications/com.yubico.authenticator.desktop" \ - --replace "@EXEC_PATH/authenticator" "$out/bin/yubioath-flutter" + --replace "@EXEC_PATH/authenticator" "$out/bin/yubioath-flutter" \ + --replace "@EXEC_PATH/linux_support/com.yubico.yubioath.png" "$out/share/icons/com.yubico.yubioath.png" ''; buildInputs = [ From ca34a788fe4bb96b8bb14a9db195fb33eb7fe11f Mon Sep 17 00:00:00 2001 From: fortuneteller2k Date: Fri, 30 Dec 2022 22:04:28 +0800 Subject: [PATCH 33/41] molsketch: init at 0.7.3 Co-authored-by: markuskowa --- .../editors/molsketch/default.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100644 pkgs/applications/editors/molsketch/default.nix diff --git a/pkgs/applications/editors/molsketch/default.nix b/pkgs/applications/editors/molsketch/default.nix new file mode 100644 index 000000000000..cb94cef3a328 --- /dev/null +++ b/pkgs/applications/editors/molsketch/default.nix @@ -0,0 +1,40 @@ +{ lib +, stdenv +, mkDerivation +, fetchurl +, cmake +, pkg-config +, hicolor-icon-theme +, openbabel +, desktop-file-utils +, qttranslations +}: + +mkDerivation rec { + pname = "molsketch"; + version = "0.7.3"; + + src = fetchurl { + url = "mirror://sourceforge/molsketch/Molsketch-${version}-src.tar.gz"; + hash = "sha256-82iNJRiXqESwidjifKBf0+ljcqbFD1WehsXI8VUgrwQ="; + }; + + preConfigure = '' + cmakeFlags="$cmakeFlags -DMSK_PREFIX=$out" + ''; + + nativeBuildInputs = [ cmake pkg-config ]; + buildInputs = [ + hicolor-icon-theme + openbabel + desktop-file-utils + qttranslations + ]; + + meta = with lib; { + description = "2D molecule editor"; + homepage = "https://sourceforge.net/projects/molsketch/"; + license = licenses.gpl2Plus; + maintainers = [ maintainers.fortuneteller2k ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c3c3409e7bf7..a90f1e387190 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -29285,6 +29285,8 @@ with pkgs; moe = callPackage ../applications/editors/moe { }; + molsketch = libsForQt5.callPackage ../applications/editors/molsketch { }; + pattypan = callPackage ../applications/misc/pattypan {}; praat = callPackage ../applications/audio/praat { }; From eae9a09270fe24991b7b6f47f7cfad57458d4fae Mon Sep 17 00:00:00 2001 From: "Markus S. Wamser" Date: Mon, 2 Jan 2023 12:08:07 +0100 Subject: [PATCH 34/41] keepass-diff: init at 1.1.3 --- .../misc/keepass-diff/default.nix | 22 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/applications/misc/keepass-diff/default.nix diff --git a/pkgs/applications/misc/keepass-diff/default.nix b/pkgs/applications/misc/keepass-diff/default.nix new file mode 100644 index 000000000000..3f88c00b4f5a --- /dev/null +++ b/pkgs/applications/misc/keepass-diff/default.nix @@ -0,0 +1,22 @@ +{ lib, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "keepass-diff"; + version = "1.1.3"; + + src = fetchFromGitHub { + owner = "Narigo"; + repo = pname; + rev = version; + sha256 = "sha256-jd/cUkTHylLwzxolQUzMlXHauCfXUhcUr/1zKpdngbo="; + }; + + cargoSha256 = "sha256-2e2lGG72HmX7AFk0+J3U62Kch5ylrqvaIpitRF546JA="; + + meta = with lib; { + description = "A CLI-tool to diff Keepass (.kdbx) files"; + homepage = "https://keepass-diff.narigo.dev/"; + license = licenses.mit; + maintainers = with maintainers; [ wamserma ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 74e36bc868e2..7e9a0d3201b1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28675,6 +28675,8 @@ with pkgs; keepassx2 = callPackage ../applications/misc/keepassx/2.0.nix { }; keepassxc = libsForQt5.callPackage ../applications/misc/keepassx/community.nix { }; + keepass-diff = callPackage ../applications/misc/keepass-diff { }; + keeweb = callPackage ../applications/misc/keeweb { }; inherit (gnome) evince; From 3bfb8d1f5e9f58e4909eb4715535cf9e4c31fde2 Mon Sep 17 00:00:00 2001 From: Tomo <68489118+Tomodachi94@users.noreply.github.com> Date: Mon, 2 Jan 2023 12:24:30 -0800 Subject: [PATCH 35/41] vimPlugins: update --- .../editors/vim/plugins/generated.nix | 82 +++++++++---------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/pkgs/applications/editors/vim/plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index 2b2f7f25c406..589eda19a2ec 100644 --- a/pkgs/applications/editors/vim/plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -835,12 +835,12 @@ final: prev: barbecue-nvim = buildVimPluginFrom2Nix { pname = "barbecue.nvim"; - version = "2022-12-31"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "utilyre"; repo = "barbecue.nvim"; - rev = "95f145a9445df954918e3751dd51ba2446606a31"; - sha256 = "1vv4pp02znww3kmwn0y9j8xds6z83cfbv4mr1fcw8qj2k6f76h2r"; + rev = "1006f449e7bef625e706d53adfe944647c6a990d"; + sha256 = "1765bf151k1gcjb5c6yysrhabbr9bi454xhlk9nvr3zlfzsva5h8"; }; meta.homepage = "https://github.com/utilyre/barbecue.nvim/"; }; @@ -2927,12 +2927,12 @@ final: prev: firenvim = buildVimPluginFrom2Nix { pname = "firenvim"; - version = "2022-11-10"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "glacambre"; repo = "firenvim"; - rev = "17a189f0f1e2d4197e00cd56dbeaed8c268bac8c"; - sha256 = "1fwwmvl1zciffwjf6iskqa5qychknnc300y9ympg51hlxzmm0vpz"; + rev = "c9cab43d62919c5fd34ebe33270a227a11442e12"; + sha256 = "1dgn27midg4sis3bq6y9k42dpmk2415kskv7lq56s0pq963377fi"; }; meta.homepage = "https://github.com/glacambre/firenvim/"; }; @@ -3192,12 +3192,12 @@ final: prev: gentoo-syntax = buildVimPluginFrom2Nix { pname = "gentoo-syntax"; - version = "2022-12-04"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "gentoo"; repo = "gentoo-syntax"; - rev = "526aeb1acda9504a4293b2a221700f6441211a7d"; - sha256 = "0nzsn79m3xk338gikz0qk7lqriia0fjfxbw3k9aj5h3kqxw7qgmw"; + rev = "9e4f5360b69558799c6974ed72248b86d09c6549"; + sha256 = "1pv64p2g385h4awapg99m39r3qipkpwg4rkicvdsc0dsnamqmis3"; }; meta.homepage = "https://github.com/gentoo/gentoo-syntax/"; }; @@ -3539,12 +3539,12 @@ final: prev: haskell-tools-nvim = buildVimPluginFrom2Nix { pname = "haskell-tools.nvim"; - version = "2023-01-01"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "MrcJkb"; repo = "haskell-tools.nvim"; - rev = "ad0f38f8c1a2cabc155ef9c7f6065578150edbe8"; - sha256 = "1p0iinpzfhsh79kcxihs8zrzdzragvg93i73z3y33k7nrbqhplk8"; + rev = "37684363cbab507f5069c2976f1232888734dc5b"; + sha256 = "0fyl0ab4rbw0sm4275dhjb0vcfa2pvxbqy03s7wiy86yn6h994cy"; }; meta.homepage = "https://github.com/MrcJkb/haskell-tools.nvim/"; }; @@ -4079,12 +4079,12 @@ final: prev: lazy-nvim = buildVimPluginFrom2Nix { pname = "lazy.nvim"; - version = "2023-01-01"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "folke"; repo = "lazy.nvim"; - rev = "3974a6cbe38f7958c2e4f41c6f0d9a6c001a723d"; - sha256 = "1idpzy1mnkgvpgiiirazpfpdm2xvv4zl7bbfsvmfqi6wc57c7vx6"; + rev = "06db1ec3c6baa9460e42ef8ed4d2cc2613b194cb"; + sha256 = "071zhazm15jbp8biv4516fckhy72fvvxlnjvicdi43b2g2941zcn"; }; meta.homepage = "https://github.com/folke/lazy.nvim/"; }; @@ -4715,12 +4715,12 @@ final: prev: mini-nvim = buildVimPluginFrom2Nix { pname = "mini.nvim"; - version = "2022-12-30"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "echasnovski"; repo = "mini.nvim"; - rev = "06eddfd8d6341e6c4f53ec9ae109a376a566329d"; - sha256 = "19q7khrgkc2214gjn988dlviavpf7ry695h9x077a1ykkml5jxfm"; + rev = "a2d436f4b8b7d59c0ebcf5a5fed39ccab0e68515"; + sha256 = "0p1g34xwnqkallf0y9lfv0czcwgqf1dlh1d7ir3cc024zfmx0d2j"; }; meta.homepage = "https://github.com/echasnovski/mini.nvim/"; }; @@ -5183,12 +5183,12 @@ final: prev: neorg = buildVimPluginFrom2Nix { pname = "neorg"; - version = "2022-12-23"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "nvim-neorg"; repo = "neorg"; - rev = "2c18f831effb5f3f383b2049902be23ea0dd7a8e"; - sha256 = "10lwjrwxjmag2jbhpzfv9g6zpl7mlmv646gr062pragb2cphrm7n"; + rev = "00532bd997d2aef0384ed8f11500d33d229a7e53"; + sha256 = "194fp3j7fyvd6iwk5n4s8jm81ljkgi8a5611iibasl8wynzmvvv1"; }; meta.homepage = "https://github.com/nvim-neorg/neorg/"; }; @@ -5255,12 +5255,12 @@ final: prev: neotest-haskell = buildVimPluginFrom2Nix { pname = "neotest-haskell"; - version = "2022-12-28"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "MrcJkb"; repo = "neotest-haskell"; - rev = "7a3a6fcf2bde2a98b2d221bf54162eef2e09eb50"; - sha256 = "1i99x9d6kqd8qrvy3si2h4mk3d5akqjibs006wf7fp2gr7fivvkc"; + rev = "c6a60b8476e146f22e47b378d8f52ed7b35dd8a1"; + sha256 = "0235ljraa6cbwb81jhijw10i3kc1xlmiq01qwzgqz8saacd26ccr"; }; meta.homepage = "https://github.com/MrcJkb/neotest-haskell/"; }; @@ -5411,12 +5411,12 @@ final: prev: nlsp-settings-nvim = buildVimPluginFrom2Nix { pname = "nlsp-settings.nvim"; - version = "2023-01-01"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "tamago324"; repo = "nlsp-settings.nvim"; - rev = "e73d509e77d97324a1fe3cc0118a707cc28cf92b"; - sha256 = "0n6crpb6gvi5vyirypz7s4c38k80iah1203w5hvlx5qr0bjxw14c"; + rev = "4d7588d898cc4d20891d36a5288045237ca523da"; + sha256 = "080d32pwwq7r1crb843m9vq4wqdzx2l0cmd0b0aq8zqgh7d1c6ck"; }; meta.homepage = "https://github.com/tamago324/nlsp-settings.nvim/"; }; @@ -6335,12 +6335,12 @@ final: prev: nvim-ts-rainbow = buildVimPluginFrom2Nix { pname = "nvim-ts-rainbow"; - version = "2022-11-04"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "p00f"; repo = "nvim-ts-rainbow"; - rev = "064fd6c0a15fae7f876c2c6dd4524ca3fad96750"; - sha256 = "1b7z8xyiplb9rjkdqwijnypjqrssrz5lr1wnl5vk1pyb6dnxspzg"; + rev = "ef95c15a935f97c65a80e48e12fe72d49aacf9b9"; + sha256 = "0ldv8g9i25286n0xqa1cj7a2lglcz9564dawz6ixd4ipsysjj571"; }; meta.homepage = "https://github.com/p00f/nvim-ts-rainbow/"; }; @@ -8935,12 +8935,12 @@ final: prev: vim-airline = buildVimPluginFrom2Nix { pname = "vim-airline"; - version = "2023-01-01"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "vim-airline"; repo = "vim-airline"; - rev = "785dbbe504f9fe00f6adc1cc2598fcc701cec224"; - sha256 = "105k0qnav9xpadjbnnxz5nq6zlp856kjndy1p8ic12brzsjr74dv"; + rev = "0913c0a3b6fc256e6de8dff00dfd1c9388cad9a6"; + sha256 = "0bvyr49shcqbdmcp0q06nfbay5cff11r80nhis3p3gdccik74zv7"; }; meta.homepage = "https://github.com/vim-airline/vim-airline/"; }; @@ -10291,12 +10291,12 @@ final: prev: vim-graphql = buildVimPluginFrom2Nix { pname = "vim-graphql"; - version = "2022-12-24"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "jparise"; repo = "vim-graphql"; - rev = "ee618bc2101040a4a702b4724a094ca2820562b4"; - sha256 = "1qj5jsdz3r9j6djhqdfjpd6qmpqbamngr8y4lvgkjpbjz2jvrgp1"; + rev = "ca377b1592428c0a96507d17197fdc79d4694123"; + sha256 = "1mhx32gvm7bpf1av7laji3ic5im5yzplskw7z1bcny16f8p0m6my"; }; meta.homepage = "https://github.com/jparise/vim-graphql/"; }; @@ -12158,8 +12158,8 @@ final: prev: src = fetchFromGitHub { owner = "tpope"; repo = "vim-sensible"; - rev = "dad453eb1b1dfb5d682b0834341239eb647768f9"; - sha256 = "0bjn7lr7bxifxrjfmkpdq8f41lwjwjbxqq30in92r7d7dv811yy8"; + rev = "eb59f4550894257af6033b95d23e3971d369e8b8"; + sha256 = "0d5nfdjcsl2mxlxdgxrq5crgfmlpbpf5ypz57hxh4ribnj3b3027"; }; meta.homepage = "https://github.com/tpope/vim-sensible/"; }; @@ -12743,12 +12743,12 @@ final: prev: vim-tmux-navigator = buildVimPluginFrom2Nix { pname = "vim-tmux-navigator"; - version = "2022-12-08"; + version = "2023-01-02"; src = fetchFromGitHub { owner = "christoomey"; repo = "vim-tmux-navigator"; - rev = "41ea9d23b814014c8d8daf8b44fa0cd827a0e5f4"; - sha256 = "15581nighr1a82gkn0blkx75l6bz0vfq573nf626dw1qa652nipz"; + rev = "18f0c7fc1e7181e6422247505727d7111c5da544"; + sha256 = "0ws9sz3sz4izfh6chrvj8p00np37n16n48mrzispdm3ph8nb1ii3"; }; meta.homepage = "https://github.com/christoomey/vim-tmux-navigator/"; }; From 1d9743d8cd3440bde0f8720f0111bedd2e2b5e55 Mon Sep 17 00:00:00 2001 From: Tomo <68489118+Tomodachi94@users.noreply.github.com> Date: Mon, 2 Jan 2023 12:25:49 -0800 Subject: [PATCH 36/41] vimPlugins.glance-nvim: init at 2022-12-05 --- pkgs/applications/editors/vim/plugins/generated.nix | 12 ++++++++++++ .../editors/vim/plugins/vim-plugin-names | 1 + 2 files changed, 13 insertions(+) diff --git a/pkgs/applications/editors/vim/plugins/generated.nix b/pkgs/applications/editors/vim/plugins/generated.nix index 589eda19a2ec..263c0428ff14 100644 --- a/pkgs/applications/editors/vim/plugins/generated.nix +++ b/pkgs/applications/editors/vim/plugins/generated.nix @@ -3322,6 +3322,18 @@ final: prev: meta.homepage = "https://github.com/gregsexton/gitv/"; }; + glance-nvim = buildVimPluginFrom2Nix { + pname = "glance.nvim"; + version = "2022-12-05"; + src = fetchFromGitHub { + owner = "DNLHC"; + repo = "glance.nvim"; + rev = "cc087d378c3458fd2fb5ddf627af5e8fa1b76458"; + sha256 = "0608j0kawm641sd7jcccc461wabncxlnssldi976grb5v8mk3kx0"; + }; + meta.homepage = "https://github.com/DNLHC/glance.nvim/"; + }; + gleam-vim = buildVimPluginFrom2Nix { pname = "gleam.vim"; version = "2020-06-24"; diff --git a/pkgs/applications/editors/vim/plugins/vim-plugin-names b/pkgs/applications/editors/vim/plugins/vim-plugin-names index c1aaf4c5be2a..f729c240f5df 100644 --- a/pkgs/applications/editors/vim/plugins/vim-plugin-names +++ b/pkgs/applications/editors/vim/plugins/vim-plugin-names @@ -277,6 +277,7 @@ https://github.com/vim-scripts/gitignore.vim/,, https://github.com/ruifm/gitlinker.nvim/,, https://github.com/lewis6991/gitsigns.nvim/,, https://github.com/gregsexton/gitv/,, +https://github.com/DNLHC/glance.nvim/,HEAD, https://github.com/gleam-lang/gleam.vim/,, https://github.com/ellisonleao/glow.nvim/,, https://github.com/p00f/godbolt.nvim/,HEAD, From 0c23e81752c01c9bc76f1ce368eb415343dec9ea Mon Sep 17 00:00:00 2001 From: zowoq <59103226+zowoq@users.noreply.github.com> Date: Tue, 3 Jan 2023 07:29:20 +1000 Subject: [PATCH 37/41] yt-dlp: 2022.11.11 -> 2023.1.2 https://github.com/yt-dlp/yt-dlp/releases/tag/2023.01.02 --- pkgs/tools/misc/yt-dlp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/yt-dlp/default.nix b/pkgs/tools/misc/yt-dlp/default.nix index 1b01cca1a3f9..4bcb98532eba 100644 --- a/pkgs/tools/misc/yt-dlp/default.nix +++ b/pkgs/tools/misc/yt-dlp/default.nix @@ -20,11 +20,11 @@ buildPythonPackage rec { # The websites yt-dlp deals with are a very moving target. That means that # downloads break constantly. Because of that, updates should always be backported # to the latest stable release. - version = "2022.11.11"; + version = "2023.1.2"; src = fetchPypi { inherit pname version; - sha256 = "sha256-9rliAjwXp3FRR28Pbtcb6H0Bdim6XZmUUovFSFIRkbY="; + sha256 = "sha256-uNe7tcFZX3GIVaMfNNigJ2pwhvXT9ULAIaje2LJtNq4="; }; propagatedBuildInputs = [ brotli certifi mutagen pycryptodomex websockets ]; From 8877cc2874efffe3663934cbfe5d0fce1d4d4bbc Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Dec 2022 11:07:59 +0000 Subject: [PATCH 38/41] build(deps): bump zeebe-io/backport-action from 0.0.9 to 1.0.0 Bumps [zeebe-io/backport-action](https://github.com/zeebe-io/backport-action) from 0.0.9 to 1.0.0. - [Release notes](https://github.com/zeebe-io/backport-action/releases) - [Commits](https://github.com/zeebe-io/backport-action/compare/v0.0.9...v1.0.0) --- updated-dependencies: - dependency-name: zeebe-io/backport-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/backport.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index da5cb5d2fa0c..d5e78cda0864 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -14,23 +14,19 @@ permissions: jobs: backport: permissions: - contents: write # for zeebe-io/backport-action to create branch - pull-requests: write # for zeebe-io/backport-action to create PR to backport + contents: write # for korthout/backport-action to create branch + pull-requests: write # for korthout/backport-action to create PR to backport name: Backport Pull Request if: github.repository_owner == 'NixOS' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name)) runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: - # required to find all branches - fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} - name: Create backport PRs - uses: zeebe-io/backport-action@v0.0.9 + uses: korthout/backport-action@v1.0.0 with: - # Config README: https://github.com/zeebe-io/backport-action#backport-action - github_token: ${{ secrets.GITHUB_TOKEN }} - github_workspace: ${{ github.workspace }} + # Config README: https://github.com/korthout/backport-action#backport-action pull_description: |- Bot-based backport to `${target_branch}`, triggered by a label in #${pull_number}. From c514b093bca599176061ac7a386564f2066fe1a6 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 2 Jan 2023 22:36:43 +0100 Subject: [PATCH 39/41] python310Packages.pykaleidescape: init at 1.0.1 --- .../python-modules/pykaleidescape/default.nix | 51 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 53 insertions(+) create mode 100644 pkgs/development/python-modules/pykaleidescape/default.nix diff --git a/pkgs/development/python-modules/pykaleidescape/default.nix b/pkgs/development/python-modules/pykaleidescape/default.nix new file mode 100644 index 000000000000..62d65490ff0a --- /dev/null +++ b/pkgs/development/python-modules/pykaleidescape/default.nix @@ -0,0 +1,51 @@ +{ lib +, aiohttp +, buildPythonPackage +, dnspython +, fetchFromGitHub +, pytest-asyncio +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "pykaleidescape"; + version = "1.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "SteveEasley"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-KM/gtpsQ27QZz2uI1t/yVN5no0zp9LZag1duAJzK55g="; + }; + + propagatedBuildInputs = [ + aiohttp + dnspython + ]; + + checkInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ + "kaleidescape" + ]; + + disabledTests = [ + # Test requires network access + "test_resolve_succeeds" + ]; + + meta = with lib; { + description = "Module for controlling Kaleidescape devices"; + homepage = "https://github.com/SteveEasley/pykaleidescape"; + changelog = "https://github.com/SteveEasley/pykaleidescape/releases/tag/v${version}"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5011e5ecb3ff..c8e4f527f86b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8059,6 +8059,8 @@ self: super: with self; { pykakasi = callPackage ../development/python-modules/pykakasi { }; + pykaleidescape = callPackage ../development/python-modules/pykaleidescape { }; + pykdl = callPackage ../development/python-modules/pykdl { }; pykdtree = callPackage ../development/python-modules/pykdtree { From 70aa373a5d46352df1078311e410ddbfc8c5870f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 2 Jan 2023 22:40:07 +0100 Subject: [PATCH 40/41] home-assistant: update component-packages --- pkgs/servers/home-assistant/component-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index b72fa929a7db..49aec1939f3d 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -1720,7 +1720,8 @@ "kaiterra" = ps: with ps; [ ]; # missing inputs: kaiterra-async-client "kaleidescape" = ps: with ps; [ - ]; # missing inputs: pykaleidescape + pykaleidescape + ]; "kankun" = ps: with ps; [ ]; "keba" = ps: with ps; [ @@ -4380,6 +4381,7 @@ "jewish_calendar" "juicenet" "justnimbus" + "kaleidescape" "keenetic_ndms2" "kegtron" "keymitt_ble" From 062e14b5617f6804973957e7fbe7273a9dc8da0b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 31 Dec 2022 10:34:10 +0000 Subject: [PATCH 41/41] stdenv/linux: document some tips in debugging stdenv bootstrap tower Just a few comments added: - added a few one-liners to explore which tools are rebuilt at each stdenv iteration during bootstrap - explicitly listed available toolchains and their sources for on each bootstrap step: glibc, binutils, gcc, coreutils. - added mention of static libraries linked into gcc Co-authored-by: Adam Joseph <54836058+amjoseph-nixpkgs@users.noreply.github.com> --- pkgs/stdenv/linux/default.nix | 91 ++++++++++++++++++++++++++++++++++- 1 file changed, 90 insertions(+), 1 deletion(-) diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix index dbaff342fb1a..5116de980348 100644 --- a/pkgs/stdenv/linux/default.nix +++ b/pkgs/stdenv/linux/default.nix @@ -1,8 +1,61 @@ # This file constructs the standard build environment for the -# Linux/i686 platform. It's completely pure; that is, it relies on no +# Linux platform. It's completely pure; that is, it relies on no # external (non-Nix) tools, such as /usr/bin/gcc, and it contains a C # compiler and linker that do not search in default locations, # ensuring purity of components produced by it. +# +# It starts from prebuilt seed bootstrapFiles and creates a series of +# nixpkgs instances (stages) to gradually rebuild stdenv, which +# is used to build all other packages (including the bootstrapFiles). +# +# Goals of the bootstrap process: +# 1. final stdenv must not reference any of the bootstrap files. +# 2. final stdenv must not contain any of the bootstrap files +# (the only current violation is libgcc_s.so in glibc). +# 3. final stdenv must not contain any of the files directly +# generated by the bootstrap code generators (assembler, linker, +# compiler). The only current violations are: libgcc_s.so in glibc, +# the lib{mpfr,mpc,gmp,isl} which are statically linked +# into the final gcc). +# +# These goals ensure that final packages and final stdenv are built +# exclusively using nixpkgs package definitions and don't depend +# on bootstrapTools (via direct references, inclusion +# of copied code, or code compiled directly by bootstrapTools). +# +# Stages are described below along with their definitions. +# +# Debugging stdenv dependency graph: +# An useful tool to explore dependencies across stages is to use +# '__bootPackages' attribute of 'stdenv. Examples of last 3 stages: +# - stdenv +# - stdenv.__bootPackages.stdenv +# - stdenv.__bootPackages.stdenv.__bootPackages.stdenv +# - ... and so on. +# +# To explore build-time dependencies in graphical form one can use +# the following: +# $ nix-store --query --graph $(nix-instantiate -A stdenv) | +# grep -P -v '[.]sh|[.]patch|bash|[.]tar' | # avoid clutter +# dot -Tsvg > stdenv-final.svg +# +# To find all the packages built by a particular stdenv instance: +# $ for stage in 0 1 2 3 4; do +# echo "stage${stage} used in:" +# nix-store --query --graph $(nix-instantiate -A stdenv) | +# grep -P ".*bootstrap-stage${stage}-stdenv.*->.*" | +# sed 's/"[0-9a-z]\{32\}-/"/g' +# done +# +# To verify which stdenv was used to build a given final package: +# $ nix-store --query --graph $(nix-instantiate -A stdenv) | +# grep -P -v '[.]sh|[.]patch|bash|[.]tar' | +# grep -P '.*stdenv.*->.*glibc-2' +# "...-bootstrap-stage2-stdenv-linux.drv" -> "...-glibc-2.35-224.drv"; +# +# For a TUI (rather than CLI) view, you can use: +# +# $ nix-tree --derivation $(nix-instantiate -A stdenv) { lib , localSystem, crossSystem, config, overlays, crossOverlays ? [] @@ -147,6 +200,9 @@ in # Build a dummy stdenv with no GCC or working fetchurl. This is # because we need a stdenv to build the GCC wrapper and fetchurl. + # + # resulting stage0 stdenv: + # - coreutils, binutils, glibc, gcc: from bootstrapFiles (prevStage: stageFun prevStage { name = "bootstrap-stage0"; @@ -202,6 +258,9 @@ in # If we ever need to use a package from more than one stage back, we # simply re-export those packages in the middle stage(s) using the # overrides attribute and the inherit syntax. + # + # resulting stage1 stdenv: + # - coreutils, binutils, glibc, gcc: from bootstrapFiles (prevStage: stageFun prevStage { name = "bootstrap-stage1"; @@ -228,6 +287,10 @@ in # 2nd stdenv that contains our own rebuilt binutils and is used for # compiling our own Glibc. + # + # resulting stage2 stdenv: + # - coreutils, glibc, gcc: from bootstrapFiles + # - binutils: from nixpkgs, built by bootstrapFiles toolchain (prevStage: stageFun prevStage { name = "bootstrap-stage2"; @@ -296,6 +359,10 @@ in # Construct a third stdenv identical to the 2nd, except that this # one uses the rebuilt Glibc from stage2. It still uses the recent # binutils and rest of the bootstrap tools, including GCC. + # + # resulting stage3 stdenv: + # - coreutils, gcc: from bootstrapFiles + # - glibc, binutils: from nixpkgs, built by bootstrapFiles toolchain (prevStage: stageFun prevStage { name = "bootstrap-stage3"; @@ -332,6 +399,17 @@ in # Construct a fourth stdenv that uses the new GCC. But coreutils is # still from the bootstrap tools. + # + # resulting stage4 stdenv: + # - coreutils: from bootstrapFiles + # - glibc, binutils: from nixpkgs, built by bootstrapFiles toolchain + # - gcc: from nixpkgs, built by bootstrapFiles toolchain. Can assume + # it has almost no code from bootstrapTools as gcc bootstraps + # internally. The only exceptions are crt files from glibc + # built by bootstrapTools used to link executables and libraries, + # and the bootstrapTools-built, statically-linked + # lib{mpfr,mpc,gmp,isl}.a which are linked into the final gcc + # (see commit cfde88976ba4cddd01b1bb28b40afd12ea93a11d). (prevStage: stageFun prevStage { name = "bootstrap-stage4"; @@ -388,6 +466,17 @@ in # When updating stdenvLinux, make sure that the result has no # dependency (`nix-store -qR') on bootstrapTools or the first # binutils built. + # + # resulting stage5 (final) stdenv: + # - coreutils, binutils: from nixpkgs, built by nixpkgs toolchain + # - glibc: from nixpkgs, built by bootstrapFiles toolchain + # - gcc: from nixpkgs, built by bootstrapFiles toolchain. Can assume + # it has almost no code from bootstrapTools as gcc bootstraps + # internally. The only exceptions are crt files from glibc + # built by bootstrapTools used to link executables and libraries, + # and the bootstrapTools-built, statically-linked + # lib{mpfr,mpc,gmp,isl}.a which are linked into the final gcc + # (see commit cfde88976ba4cddd01b1bb28b40afd12ea93a11d). (prevStage: { inherit config overlays; stdenv = import ../generic rec {