From 804bb25f486e1e8640551532b49045f0d9c43f9e Mon Sep 17 00:00:00 2001 From: Gregor Godbersen Date: Sat, 6 May 2023 17:16:05 +0200 Subject: [PATCH 01/31] photoprism: 221118-e58fee0fb -> 230506-9de9a3540 --- pkgs/servers/photoprism/backend.nix | 2 +- pkgs/servers/photoprism/default.nix | 9 +++++---- pkgs/servers/photoprism/frontend.nix | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/servers/photoprism/backend.nix b/pkgs/servers/photoprism/backend.nix index 2a728b058cde..dd1a78ff9dbd 100644 --- a/pkgs/servers/photoprism/backend.nix +++ b/pkgs/servers/photoprism/backend.nix @@ -19,7 +19,7 @@ buildGoModule rec { substituteInPlace internal/commands/passwd.go --replace '/bin/stty' "${coreutils}/bin/stty" ''; - vendorSha256 = "sha256-59ZwijPCcmhMPeh7v8EdqzraqRx+HhK6VnUk0JvAbbU="; + vendorSha256 = "sha256-OyHescVn73kNF+Ji07Ea+pQC+IRx8/ywb/RjfLHH84k="; subPackages = [ "cmd/photoprism" ]; diff --git a/pkgs/servers/photoprism/default.nix b/pkgs/servers/photoprism/default.nix index 1c9303ff4c53..259f999a0b8f 100644 --- a/pkgs/servers/photoprism/default.nix +++ b/pkgs/servers/photoprism/default.nix @@ -1,14 +1,14 @@ -{ pkgs, lib, stdenv, fetchFromGitHub, fetchzip, darktable, rawtherapee, ffmpeg, libheif, exiftool, makeWrapper, testers }: +{ pkgs, lib, stdenv, fetchFromGitHub, fetchzip, darktable, rawtherapee, ffmpeg, libheif, exiftool, imagemagick, makeWrapper, testers }: let - version = "221118-e58fee0fb"; + version = "230506-9de9a3540"; pname = "photoprism"; src = fetchFromGitHub { owner = pname; repo = pname; rev = version; - sha256 = "sha256-Bx9SJLK97uZ/k09LIj8dHwmRetg6krI5iO7mtojV3PU="; + sha256 = "sha256-I7ff+AkQaPTyanEpVpQhCe1LDXdoF1LZl4j6jsPsweg="; }; libtensorflow = pkgs.callPackage ./libtensorflow.nix { }; @@ -62,7 +62,8 @@ stdenv.mkDerivation { --set PHOTOPRISM_RAWTHERAPEE_BIN ${rawtherapee}/bin/rawtherapee-cli \ --set PHOTOPRISM_HEIFCONVERT_BIN ${libheif}/bin/heif-convert \ --set PHOTOPRISM_FFMPEG_BIN ${ffmpeg}/bin/ffmpeg \ - --set PHOTOPRISM_EXIFTOOL_BIN ${exiftool}/bin/exiftool + --set PHOTOPRISM_EXIFTOOL_BIN ${exiftool}/bin/exiftool \ + --set PHOTOPRISM_IMAGEMAGICK_BIN ${imagemagick}/bin/convert # install frontend ln -s ${frontend}/assets/* ${assets_path} diff --git a/pkgs/servers/photoprism/frontend.nix b/pkgs/servers/photoprism/frontend.nix index 9bf0fc57348c..fa5f559bb529 100644 --- a/pkgs/servers/photoprism/frontend.nix +++ b/pkgs/servers/photoprism/frontend.nix @@ -8,7 +8,7 @@ buildNpmPackage { cd frontend ''; - npmDepsHash = "sha256-NAtZ85WjiQn9w0B9Y78XL+tSsshHlaXS8+WtojFJmGg"; + npmDepsHash = "sha256-gjUt2jdk3EI+VEe10tG76J5FGKFbHwb9g0Uy8ovU99w="; installPhase = '' runHook preInstall From e927275ff0b2e3de9c4c8f0c541921d4565a18b1 Mon Sep 17 00:00:00 2001 From: Gregor Godbersen Date: Mon, 15 May 2023 16:29:27 +0200 Subject: [PATCH 02/31] photoprism: 230506-9de9a3540 -> 230513-0b780defb --- pkgs/servers/photoprism/backend.nix | 2 +- pkgs/servers/photoprism/default.nix | 4 ++-- pkgs/servers/photoprism/frontend.nix | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/photoprism/backend.nix b/pkgs/servers/photoprism/backend.nix index dd1a78ff9dbd..43670a4fea7d 100644 --- a/pkgs/servers/photoprism/backend.nix +++ b/pkgs/servers/photoprism/backend.nix @@ -19,7 +19,7 @@ buildGoModule rec { substituteInPlace internal/commands/passwd.go --replace '/bin/stty' "${coreutils}/bin/stty" ''; - vendorSha256 = "sha256-OyHescVn73kNF+Ji07Ea+pQC+IRx8/ywb/RjfLHH84k="; + vendorSha256 = "sha256-YNKwEimP/zWrX4gasM4oicf306cgPlo7OruwUzHNJYU="; subPackages = [ "cmd/photoprism" ]; diff --git a/pkgs/servers/photoprism/default.nix b/pkgs/servers/photoprism/default.nix index 259f999a0b8f..0195c1be8f12 100644 --- a/pkgs/servers/photoprism/default.nix +++ b/pkgs/servers/photoprism/default.nix @@ -1,14 +1,14 @@ { pkgs, lib, stdenv, fetchFromGitHub, fetchzip, darktable, rawtherapee, ffmpeg, libheif, exiftool, imagemagick, makeWrapper, testers }: let - version = "230506-9de9a3540"; + version = "230513-0b780defb"; pname = "photoprism"; src = fetchFromGitHub { owner = pname; repo = pname; rev = version; - sha256 = "sha256-I7ff+AkQaPTyanEpVpQhCe1LDXdoF1LZl4j6jsPsweg="; + sha256 = "sha256-I9tQZx/bNIcT4MV6B3cC5ZFvPj3zVVyLqMAIsXtYWhg="; }; libtensorflow = pkgs.callPackage ./libtensorflow.nix { }; diff --git a/pkgs/servers/photoprism/frontend.nix b/pkgs/servers/photoprism/frontend.nix index fa5f559bb529..bdcffb1c1642 100644 --- a/pkgs/servers/photoprism/frontend.nix +++ b/pkgs/servers/photoprism/frontend.nix @@ -8,7 +8,7 @@ buildNpmPackage { cd frontend ''; - npmDepsHash = "sha256-gjUt2jdk3EI+VEe10tG76J5FGKFbHwb9g0Uy8ovU99w="; + npmDepsHash = "sha256-wi8iNYfPDY0ScdpWag9S6VXevqzvvr9QAvQQZGAe1oo="; installPhase = '' runHook preInstall From ff4881996e584d2b8462bef02f37face63ce75a8 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 17 Apr 2023 10:02:47 +0300 Subject: [PATCH 03/31] darwin.apple_sdk_10_12.frameworks.System: init --- pkgs/os-specific/darwin/apple-sdk/default.nix | 9 +++++++++ pkgs/os-specific/darwin/apple-sdk/frameworks.nix | 1 + 2 files changed, 10 insertions(+) diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix index 5cf37e8f4026..48c423c98929 100644 --- a/pkgs/os-specific/darwin/apple-sdk/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk/default.nix @@ -320,6 +320,15 @@ in rec { ''; }); + System = lib.overrideDerivation super.System (drv: { + installPhase = '' + mkdir -p $out/Library/Frameworks/System.framework/Versions/B + ln -s $out/Library/Frameworks/System.framework/Versions/{B,Current} + ln -s ${pkgs.darwin.Libsystem}/lib/libSystem.B.tbd $out/Library/Frameworks/System.framework/Versions/B/System.tbd + ln -s $out/Library/Frameworks/System.framework/{Versions/Current/,}System.tbd + ''; + }); + WebKit = lib.overrideDerivation super.WebKit (drv: { extraTBDFiles = [ "Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore.tbd" diff --git a/pkgs/os-specific/darwin/apple-sdk/frameworks.nix b/pkgs/os-specific/darwin/apple-sdk/frameworks.nix index 0c70d9bc258f..a9fbcc066a3c 100644 --- a/pkgs/os-specific/darwin/apple-sdk/frameworks.nix +++ b/pkgs/os-specific/darwin/apple-sdk/frameworks.nix @@ -104,6 +104,7 @@ with frameworks; with libs; { SpriteKit = {}; StoreKit = {}; SyncServices = {}; + System = {}; SystemConfiguration = { inherit Security; }; TWAIN = { inherit Carbon; }; Tcl = {}; From 13532826524693318930574c2ead977ff66a6a83 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 16 Apr 2023 18:48:22 +0300 Subject: [PATCH 04/31] far2l: remove libSystem hack --- pkgs/applications/misc/far2l/default.nix | 7 ++----- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/far2l/default.nix b/pkgs/applications/misc/far2l/default.nix index 2a23aac79f82..ee17568c0118 100644 --- a/pkgs/applications/misc/far2l/default.nix +++ b/pkgs/applications/misc/far2l/default.nix @@ -1,6 +1,6 @@ { lib, stdenv, fetchFromGitHub, makeWrapper, cmake, ninja, pkg-config, m4, bash , xdg-utils, zip, unzip, gzip, bzip2, gnutar, p7zip, xz -, IOKit, Carbon, Cocoa, AudioToolbox, OpenGL +, IOKit, Carbon, Cocoa, AudioToolbox, OpenGL, System , withTTYX ? true, libX11 , withGUI ? true, wxGTK32 , withUCD ? true, libuchardet @@ -35,7 +35,7 @@ stdenv.mkDerivation rec { ++ lib.optionals withNetRocks [ openssl libssh libnfs neon ] ++ lib.optional (withNetRocks && !stdenv.isDarwin) samba # broken on darwin ++ lib.optionals withPython (with python3Packages; [ python cffi debugpy pcpp ]) - ++ lib.optionals stdenv.isDarwin [ IOKit Carbon Cocoa AudioToolbox OpenGL ]; + ++ lib.optionals stdenv.isDarwin [ IOKit Carbon Cocoa AudioToolbox OpenGL System ]; postPatch = '' patchShebangs python/src/prebuild.sh @@ -43,9 +43,6 @@ stdenv.mkDerivation rec { --replace '"/bin/bash"' '"${bash}/bin/bash"' substituteInPlace far2l/src/cfg/config.cpp \ --replace '"/bin/bash"' '"${bash}/bin/bash"' - '' + lib.optionalString stdenv.isDarwin '' - substituteInPlace WinPort/src/Backend/WX/CMakeLists.txt \ - --replace "-framework System" -lSystem ''; cmakeFlags = lib.mapAttrsToList (k: v: "-D${k}=${if v then "yes" else "no"}") { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d97eb416919c..43ca9ca78092 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20221,7 +20221,7 @@ with pkgs; far2l = callPackage ../applications/misc/far2l { stdenv = if stdenv.cc.isClang then llvmPackages.stdenv else stdenv; - inherit (darwin.apple_sdk.frameworks) IOKit Carbon Cocoa AudioToolbox OpenGL; + inherit (darwin.apple_sdk.frameworks) IOKit Carbon Cocoa AudioToolbox OpenGL System; }; farbfeld = callPackage ../development/libraries/farbfeld { }; From 35bb9e5ac77352bb2c9f7936bfc9a3384f68c2f6 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sun, 16 Apr 2023 18:48:36 +0300 Subject: [PATCH 05/31] monit: remove libSystem hack --- pkgs/tools/system/monit/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/tools/system/monit/default.nix b/pkgs/tools/system/monit/default.nix index a5e0a409ffc9..f1ebd6596c5b 100644 --- a/pkgs/tools/system/monit/default.nix +++ b/pkgs/tools/system/monit/default.nix @@ -24,16 +24,13 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ bison flex ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.DiskArbitration + darwin.apple_sdk.frameworks.System ]; buildInputs = [ zlib.dev libxcrypt ] ++ lib.optionals useSSL [ openssl ] ++ lib.optionals usePAM [ pam ]; - preConfigure = lib.optionalString stdenv.hostPlatform.isDarwin '' - substituteInPlace configure --replace "-framework System" "-lSystem" - ''; - configureFlags = [ (lib.withFeature usePAM "pam") ] ++ (if useSSL then [ From 16eb3e00ca3e7e02964b57e13a17b9a88d154988 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 3 Jun 2023 00:25:28 +0000 Subject: [PATCH 06/31] mdbook: 0.4.29 -> 0.4.30 --- pkgs/tools/text/mdbook/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/text/mdbook/default.nix b/pkgs/tools/text/mdbook/default.nix index 0ec4a9746258..4c53b36640be 100644 --- a/pkgs/tools/text/mdbook/default.nix +++ b/pkgs/tools/text/mdbook/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "mdbook"; - version = "0.4.29"; + version = "0.4.30"; src = fetchFromGitHub { owner = "rust-lang"; repo = "mdBook"; rev = "refs/tags/v${version}"; - sha256 = "sha256-81QU1FJ5f23OdS+bzMnHEMbwwzywU38Xoq3DEN0Kgpg="; + sha256 = "sha256-AKGvU8yEgUcLRaf+fPet1kv84m95qrO25P4izP1w9lg="; }; - cargoHash = "sha256-SyDLC2x1hEyjt+GG50CblTGahJAkEZWkXSPyPvUJNgw="; + cargoHash = "sha256-Jg/+LAxgyGlVcqUdiHnZpwmTrtApWLXFhy0bNcNs0hM="; buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ]; From 4c101ed35764fbd7efcd2eadd56bf2a4ff51ea24 Mon Sep 17 00:00:00 2001 From: Gregor Godbersen Date: Sat, 3 Jun 2023 19:58:54 +0200 Subject: [PATCH 07/31] photoprism: 230513-0b780defb -> 230603-378d4746a --- pkgs/servers/photoprism/backend.nix | 2 +- pkgs/servers/photoprism/default.nix | 4 ++-- pkgs/servers/photoprism/frontend.nix | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/photoprism/backend.nix b/pkgs/servers/photoprism/backend.nix index 43670a4fea7d..c014044311a6 100644 --- a/pkgs/servers/photoprism/backend.nix +++ b/pkgs/servers/photoprism/backend.nix @@ -19,7 +19,7 @@ buildGoModule rec { substituteInPlace internal/commands/passwd.go --replace '/bin/stty' "${coreutils}/bin/stty" ''; - vendorSha256 = "sha256-YNKwEimP/zWrX4gasM4oicf306cgPlo7OruwUzHNJYU="; + vendorSha256 = "sha256-jkBGFO18m5OyyMr8M7qeQHcHc9koLudGU5t8vFUBjuE="; subPackages = [ "cmd/photoprism" ]; diff --git a/pkgs/servers/photoprism/default.nix b/pkgs/servers/photoprism/default.nix index 0195c1be8f12..312772a74369 100644 --- a/pkgs/servers/photoprism/default.nix +++ b/pkgs/servers/photoprism/default.nix @@ -1,14 +1,14 @@ { pkgs, lib, stdenv, fetchFromGitHub, fetchzip, darktable, rawtherapee, ffmpeg, libheif, exiftool, imagemagick, makeWrapper, testers }: let - version = "230513-0b780defb"; + version = "230603-378d4746a"; pname = "photoprism"; src = fetchFromGitHub { owner = pname; repo = pname; rev = version; - sha256 = "sha256-I9tQZx/bNIcT4MV6B3cC5ZFvPj3zVVyLqMAIsXtYWhg="; + sha256 = "sha256-lywVP4Vvq88g+Yk4BuzOaB+9EbWrxGgIF4lOPW33E1U="; }; libtensorflow = pkgs.callPackage ./libtensorflow.nix { }; diff --git a/pkgs/servers/photoprism/frontend.nix b/pkgs/servers/photoprism/frontend.nix index bdcffb1c1642..1451aa61ed91 100644 --- a/pkgs/servers/photoprism/frontend.nix +++ b/pkgs/servers/photoprism/frontend.nix @@ -8,7 +8,7 @@ buildNpmPackage { cd frontend ''; - npmDepsHash = "sha256-wi8iNYfPDY0ScdpWag9S6VXevqzvvr9QAvQQZGAe1oo="; + npmDepsHash = "sha256-lZpgv3YFF+b9nPJlbG2KdGYC5UMy+VnYqRgz7JLj85g="; installPhase = '' runHook preInstall From 513dc55db61fe9c8a15f862d640b2d3ed724318d Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 4 Jun 2023 00:55:45 +0000 Subject: [PATCH 08/31] intel-cmt-cat: 4.5.0 -> 4.6.0 --- pkgs/os-specific/linux/intel-cmt-cat/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/intel-cmt-cat/default.nix b/pkgs/os-specific/linux/intel-cmt-cat/default.nix index 16cb022eb6f2..e110d201a2db 100644 --- a/pkgs/os-specific/linux/intel-cmt-cat/default.nix +++ b/pkgs/os-specific/linux/intel-cmt-cat/default.nix @@ -1,14 +1,14 @@ { lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation rec { - version = "4.5.0"; + version = "4.6.0"; pname = "intel-cmt-cat"; src = fetchFromGitHub { owner = "intel"; repo = "intel-cmt-cat"; rev = "v${version}"; - sha256 = "sha256-gjJtwEDvPW0JDwlIUXSmv1wm4TknKsE/BLKHiqIgjho="; + sha256 = "sha256-Bw/WY30ytvwBo+OZ27WG2aY3YN9xczdjs4jcHR/Tv/w="; }; enableParallelBuilding = true; From ca78d062a73ffa7f37bfdc9c863467355cf60a11 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 4 Jun 2023 09:54:06 +0000 Subject: [PATCH 09/31] ocserv: 1.1.6 -> 1.1.7 --- pkgs/tools/networking/ocserv/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/ocserv/default.nix b/pkgs/tools/networking/ocserv/default.nix index 29801eebbd78..ad58252d6ae9 100644 --- a/pkgs/tools/networking/ocserv/default.nix +++ b/pkgs/tools/networking/ocserv/default.nix @@ -5,13 +5,13 @@ stdenv.mkDerivation rec { pname = "ocserv"; - version = "1.1.6"; + version = "1.1.7"; src = fetchFromGitLab { owner = "openconnect"; repo = "ocserv"; rev = version; - sha256 = "sha256-1grRt0F/myVzK+DMSeK5K0Ui8bJANEtE6/6IY+ZbPAw="; + sha256 = "sha256-30S2puoL+5cBZ5nCKW2zvGPcnFvaKjRZVGKDC3E5XRk="; }; nativeBuildInputs = [ autoreconfHook gperf pkg-config ronn ]; From 08d9e34f03e1cdd25b25e2d55f278ea99faf628e Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 4 Jun 2023 12:32:55 +0000 Subject: [PATCH 10/31] bluez-alsa: 4.0.0 -> 4.1.0 --- pkgs/tools/bluetooth/bluez-alsa/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/bluetooth/bluez-alsa/default.nix b/pkgs/tools/bluetooth/bluez-alsa/default.nix index da87a7b89e5d..1d663b81c299 100644 --- a/pkgs/tools/bluetooth/bluez-alsa/default.nix +++ b/pkgs/tools/bluetooth/bluez-alsa/default.nix @@ -11,13 +11,13 @@ stdenv.mkDerivation rec { pname = "bluez-alsa"; - version = "4.0.0"; + version = "4.1.0"; src = fetchFromGitHub { owner = "Arkq"; repo = "bluez-alsa"; rev = "v${version}"; - sha256 = "sha256-Dp3O41nzo7j5rqxDEkR4bFPv0CNGOO4kWXAf8iy+jDg="; + sha256 = "sha256-qoG1hTVuSFbccfct9DqSI0BBPJwSFlhPPtv87ThtSBk="; }; nativeBuildInputs = [ pkg-config autoreconfHook ]; From 3cf373b299655179c92cb2705b5b36ead1af480e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Sat, 15 Apr 2023 00:05:23 +0200 Subject: [PATCH 11/31] comodoro: init at 0.0.8 comodoro: move project to misc, bump v0.0.8 comodoro: fix comments comodoro: fix typo --- pkgs/applications/misc/comodoro/default.nix | 47 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/applications/misc/comodoro/default.nix diff --git a/pkgs/applications/misc/comodoro/default.nix b/pkgs/applications/misc/comodoro/default.nix new file mode 100644 index 000000000000..c036b2aa2c7d --- /dev/null +++ b/pkgs/applications/misc/comodoro/default.nix @@ -0,0 +1,47 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, stdenv +, installShellFiles +, installShellCompletions ? stdenv.hostPlatform == stdenv.buildPlatform +, installManPages ? stdenv.hostPlatform == stdenv.buildPlatform +, withTcp ? true +}: + +rustPlatform.buildRustPackage rec { + pname = "comodoro"; + version = "0.0.8"; + + src = fetchFromGitHub { + owner = "soywod"; + repo = "comodoro"; + rev = "v${version}"; + sha256 = "rGnVXyfWJkPHfpf1gRGbDJ6Y1ycKOOcCZ+Jx35fUo6M="; + }; + + cargoSha256 = "jpshuavywCLN03xD/gFgQeGbKtmHq5pULbxd+RUbaDk="; + + nativeBuildInputs = lib.optional (installManPages || installShellCompletions) installShellFiles; + + buildNoDefaultFeatures = true; + buildFeatures = lib.optional withTcp "tcp"; + + postInstall = lib.optionalString installManPages '' + mkdir -p $out/man + $out/bin/comodoro man $out/man + installManPage $out/man/* + '' + lib.optionalString installShellCompletions '' + installShellCompletion --cmd comodoro \ + --bash <($out/bin/comodoro completion bash) \ + --fish <($out/bin/comodoro completion fish) \ + --zsh <($out/bin/comodoro completion zsh) + ''; + + meta = with lib; { + description = "CLI to manage your time."; + homepage = "https://pimalaya.org/comodoro/"; + changelog = "https://github.com/soywod/comodoro/blob/v${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ soywod ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fa879730673d..720e0df53ade 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -479,6 +479,8 @@ with pkgs; commix = callPackage ../tools/security/commix { }; + comodoro = callPackage ../applications/misc/comodoro { }; + compdb = callPackage ../tools/misc/compdb { }; conserver = callPackage ../tools/misc/conserver { }; From 845ed6342efc552afd6b58d7b4cb37868b5173fa Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 20 Apr 2023 18:00:47 +0300 Subject: [PATCH 12/31] plasma5Packages.kcoreaddons: add darwin support --- pkgs/development/libraries/kde-frameworks/kcoreaddons.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/kde-frameworks/kcoreaddons.nix b/pkgs/development/libraries/kde-frameworks/kcoreaddons.nix index fbd671099465..3e0eeec617b6 100644 --- a/pkgs/development/libraries/kde-frameworks/kcoreaddons.nix +++ b/pkgs/development/libraries/kde-frameworks/kcoreaddons.nix @@ -1,5 +1,5 @@ { - mkDerivation, lib, + mkDerivation, lib, stdenv, extra-cmake-modules, qtbase, qttools, shared-mime-info }: @@ -18,4 +18,7 @@ mkDerivation ({ postInstall = '' moveToOutput "mkspecs" "$dev" ''; +} // lib.optionalAttrs stdenv.isDarwin { + # https://invent.kde.org/frameworks/kcoreaddons/-/merge_requests/327 + env.NIX_CFLAGS_COMPILE = "-DSOCK_CLOEXEC=0"; }) From 8902dfbe468700847ce8bcd7b6c0e3ee79843e20 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 20 Apr 2023 18:52:50 +0300 Subject: [PATCH 13/31] plasma5Packages.qqc2-desktop-style: add darwin support --- .../libraries/kde-frameworks/kauth/default.nix | 4 ++-- .../libraries/kde-frameworks/kdoctools/default.nix | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/kde-frameworks/kauth/default.nix b/pkgs/development/libraries/kde-frameworks/kauth/default.nix index f5ab518ce621..0ad7cfbbb7e1 100644 --- a/pkgs/development/libraries/kde-frameworks/kauth/default.nix +++ b/pkgs/development/libraries/kde-frameworks/kauth/default.nix @@ -1,7 +1,7 @@ { - lib, mkDerivation, propagate, + lib, stdenv, mkDerivation, propagate, extra-cmake-modules, kcoreaddons, qttools, - enablePolkit ? true, polkit-qt + enablePolkit ? stdenv.isLinux, polkit-qt }: mkDerivation { diff --git a/pkgs/development/libraries/kde-frameworks/kdoctools/default.nix b/pkgs/development/libraries/kde-frameworks/kdoctools/default.nix index 83f3a04ee36a..4b52cd95b710 100644 --- a/pkgs/development/libraries/kde-frameworks/kdoctools/default.nix +++ b/pkgs/development/libraries/kde-frameworks/kdoctools/default.nix @@ -1,5 +1,5 @@ { - mkDerivation, + mkDerivation, lib, stdenv, fetchpatch, extra-cmake-modules, docbook_xml_dtd_45, docbook_xsl_ns, karchive, ki18n, qtbase, perl, perlPackages @@ -20,7 +20,15 @@ mkDerivation { ]; buildInputs = [ karchive ki18n ]; outputs = [ "out" "dev" ]; - patches = [ ./kdoctools-no-find-docbook-xml.patch ]; + patches = [ ./kdoctools-no-find-docbook-xml.patch ] + # kf.doctools.core: Error: Could not find kdoctools catalogs + ++ lib.optionals stdenv.isDarwin [ + (fetchpatch { + name = "kdoctools-relocate-datapath.patch"; + url = "https://github.com/msys2/MINGW-packages/raw/0900785a1f4e4146ab9561fb92a1c70fa70fcfc4/mingw-w64-kdoctools-qt5/0001-kdoctools-relocate-datapath.patch"; + hash = "sha256-MlokdrabXavWHGXYmdz9zZDJQIwAdNxebJBSAH2Z3vI="; + }) + ]; cmakeFlags = [ "-DDocBookXML4_DTD_DIR=${docbook_xml_dtd_45}/xml/dtd/docbook" "-DDocBookXSL_DIR=${docbook_xsl_ns}/xml/xsl/docbook" From 8f7d2c182909a46058deaf56903aeee032684222 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 21 Apr 2023 11:25:30 +0300 Subject: [PATCH 14/31] plasma5Packages.ktexteditor: add darwin support --- .../libraries/kde-frameworks/ktexteditor.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/kde-frameworks/ktexteditor.nix b/pkgs/development/libraries/kde-frameworks/ktexteditor.nix index 5788c07cb05c..ccc9f76b237a 100644 --- a/pkgs/development/libraries/kde-frameworks/ktexteditor.nix +++ b/pkgs/development/libraries/kde-frameworks/ktexteditor.nix @@ -1,12 +1,12 @@ { - mkDerivation, + mkDerivation, lib, stdenv, extra-cmake-modules, perl, karchive, kconfig, kguiaddons, ki18n, kiconthemes, kio, kparts, libgit2, qtscript, qtxmlpatterns, sonnet, syntax-highlighting, qtquickcontrols, editorconfig-core-c }: -mkDerivation { +mkDerivation ({ pname = "ktexteditor"; nativeBuildInputs = [ extra-cmake-modules perl ]; buildInputs = [ @@ -15,4 +15,9 @@ mkDerivation { editorconfig-core-c ]; propagatedBuildInputs = [ kparts ]; -} +} // lib.optionalAttrs stdenv.isDarwin { + postPatch = '' + substituteInPlace src/part/CMakeLists.txt \ + --replace "kpart.desktop" "${kparts}/share/kservicetypes5/kpart.desktop" + ''; +}) From b9ed2ba5165ec0a18f0c338074fe22a05b7f32d3 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 20 Apr 2023 17:54:19 +0300 Subject: [PATCH 15/31] plasma5Packages: relax platforms --- pkgs/development/libraries/kde-frameworks/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/kde-frameworks/default.nix b/pkgs/development/libraries/kde-frameworks/default.nix index abb11662a433..4245aa0ed20e 100644 --- a/pkgs/development/libraries/kde-frameworks/default.nix +++ b/pkgs/development/libraries/kde-frameworks/default.nix @@ -82,7 +82,7 @@ let homepage = meta.homepage or "https://kde.org"; license = meta.license or license; maintainers = (meta.maintainers or []) ++ maintainers; - platforms = meta.platforms or lib.platforms.linux; + platforms = meta.platforms or lib.platforms.all; }; in mkDerivation (args // { From af17209b793318646a8c4c2bfe588755a89eb502 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 4 Jun 2023 22:51:50 +0000 Subject: [PATCH 16/31] renderdoc: 1.26 -> 1.27 --- pkgs/development/tools/renderdoc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/renderdoc/default.nix b/pkgs/development/tools/renderdoc/default.nix index f02700c0b8e4..600d01e9bb59 100644 --- a/pkgs/development/tools/renderdoc/default.nix +++ b/pkgs/development/tools/renderdoc/default.nix @@ -32,13 +32,13 @@ let in mkDerivation rec { pname = "renderdoc"; - version = "1.26"; + version = "1.27"; src = fetchFromGitHub { owner = "baldurk"; repo = "renderdoc"; rev = "v${version}"; - sha256 = "sha256-z3qHW7hVde51TkRZO3Ld8DbUODa2Gbnh3zosW2O8eOQ="; + sha256 = "sha256-zkot9LbbZyzQ7CLSEVPsospAo9u7WR2VHjQdnpNiLR0="; }; buildInputs = [ From 93fc2ce7c0dcbbc036d3148fc7c51f8caea89887 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 4 Jun 2023 23:07:47 +0000 Subject: [PATCH 17/31] python311Packages.django-stubs-ext: 4.2.0 -> 4.2.1 --- pkgs/development/python-modules/django-stubs-ext/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/django-stubs-ext/default.nix b/pkgs/development/python-modules/django-stubs-ext/default.nix index 296e394953fc..eafd91212523 100644 --- a/pkgs/development/python-modules/django-stubs-ext/default.nix +++ b/pkgs/development/python-modules/django-stubs-ext/default.nix @@ -9,14 +9,14 @@ buildPythonPackage rec { pname = "django-stubs-ext"; - version = "4.2.0"; + version = "4.2.1"; format = "setuptools"; disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; - hash = "sha256-d4nwyuynFS/vB61rlN7HMQoF0Ljat395eeGdsAN7USc="; + hash = "sha256-JpbW99hTg0GwYM/6lWXHLqeX6GZofgQLhtKcrYeZ5f4="; }; # setup.cfg tries to pull in nonexistent LICENSE.txt file From 45cb7359f825ea18ba5f6e482089fb71ccc032f1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 5 Jun 2023 00:25:15 +0000 Subject: [PATCH 18/31] dufs: 0.33.0 -> 0.34.1 --- pkgs/servers/http/dufs/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/http/dufs/default.nix b/pkgs/servers/http/dufs/default.nix index 11a313477b5a..2676216ebcb4 100644 --- a/pkgs/servers/http/dufs/default.nix +++ b/pkgs/servers/http/dufs/default.nix @@ -2,16 +2,16 @@ rustPlatform.buildRustPackage rec { pname = "dufs"; - version = "0.33.0"; + version = "0.34.1"; src = fetchFromGitHub { owner = "sigoden"; repo = pname; rev = "v${version}"; - sha256 = "sha256-ZcKNpKlyGMFPNiWA28zG5gh0gWxI4IKGP6vs9OBhxQU="; + sha256 = "sha256-WSTY9j7wfoAqovLb9reNe7LXTjy40QObJNfgiidOINQ="; }; - cargoHash = "sha256-Ihq00dfjsJX2rNclfyYKp8a0U120+0YLZyvMO1yvBYw="; + cargoHash = "sha256-sQQUpbvr5IpsUTTznAfUJ5MvGh8rZ0tuZQkxMVpI2wM="; nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config From e86d62355e5913e5d46d6d47344851bc32aeb911 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 5 Jun 2023 02:09:19 +0000 Subject: [PATCH 19/31] kora-icon-theme: 1.5.6 -> 1.5.7 --- pkgs/data/icons/kora-icon-theme/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/icons/kora-icon-theme/default.nix b/pkgs/data/icons/kora-icon-theme/default.nix index 880568fe4ff8..a2c705c8f3da 100644 --- a/pkgs/data/icons/kora-icon-theme/default.nix +++ b/pkgs/data/icons/kora-icon-theme/default.nix @@ -10,13 +10,13 @@ stdenvNoCC.mkDerivation rec { pname = "kora-icon-theme"; - version = "1.5.6"; + version = "1.5.7"; src = fetchFromGitHub { owner = "bikass"; repo = "kora"; rev = "v${version}"; - sha256 = "sha256-vAeml+upESUVlJ95Rm0+vlZ+NQZWEZl00scDkb3W7Yo="; + sha256 = "sha256-VAlfrUWgxcG17ZTlA357gengXTilwuZOBscIzadAsaU="; }; nativeBuildInputs = [ From 14aa5c4db195dfaf9923be8dda9e5bb85fe175ab Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 5 Jun 2023 10:33:06 +0800 Subject: [PATCH 20/31] python311Packages.django-stubs-ext: drop outdated postPatch --- pkgs/development/python-modules/django-stubs-ext/default.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/development/python-modules/django-stubs-ext/default.nix b/pkgs/development/python-modules/django-stubs-ext/default.nix index eafd91212523..c5ea30c14560 100644 --- a/pkgs/development/python-modules/django-stubs-ext/default.nix +++ b/pkgs/development/python-modules/django-stubs-ext/default.nix @@ -19,9 +19,6 @@ buildPythonPackage rec { hash = "sha256-JpbW99hTg0GwYM/6lWXHLqeX6GZofgQLhtKcrYeZ5f4="; }; - # setup.cfg tries to pull in nonexistent LICENSE.txt file - postPatch = "rm setup.cfg"; - propagatedBuildInputs = [ django typing-extensions From 5176a4f11356a338331d82e63563f8510b67317d Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Mon, 29 May 2023 16:14:18 -0400 Subject: [PATCH 21/31] nixos: Use systemd-makefs for autoFormat --- .../manual/release-notes/rl-2311.section.md | 2 + nixos/modules/system/boot/systemd.nix | 9 +++ nixos/modules/tasks/filesystems.nix | 75 +++++-------------- nixos/tests/fsck.nix | 2 +- 4 files changed, 32 insertions(+), 56 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index 6f770757edba..ae9f9b77152d 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -28,6 +28,8 @@ - `util-linux` is now supported on Darwin and is no longer an alias to `unixtools`. Use the `unixtools.util-linux` package for access to the Apple variants of the utilities. +- `fileSystems..autoFormat` now uses `systemd-makefs`, which does not accept formatting options. Therefore, `fileSystems..formatOptions` has been removed. + ## Other Notable Changes {#sec-release-23.11-notable-changes} - The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration. diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 5ff99b14dee6..d2af86fef57c 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -588,6 +588,15 @@ in systemd.services."systemd-backlight@".restartIfChanged = false; systemd.services."systemd-fsck@".restartIfChanged = false; systemd.services."systemd-fsck@".path = [ config.system.path ]; + systemd.services."systemd-makefs@" = { + restartIfChanged = false; + path = [ pkgs.util-linux ] ++ config.system.fsPackages; + # Since there is no /etc/systemd/system/systemd-makefs@.service + # file, the units generated in /run/systemd/generator would + # override anything we put here. But by forcing the use of a + # drop-in in /etc, it does apply. + overrideStrategy = "asDropin"; + }; systemd.services.systemd-random-seed.restartIfChanged = false; systemd.services.systemd-remount-fs.restartIfChanged = false; systemd.services.systemd-update-utmp.restartIfChanged = false; diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix index 2f032c3faf5c..3f8f9b6c80d9 100644 --- a/nixos/modules/tasks/filesystems.nix +++ b/nixos/modules/tasks/filesystems.nix @@ -112,12 +112,9 @@ let }; formatOptions = mkOption { - default = ""; - type = types.str; - description = lib.mdDoc '' - If {option}`autoFormat` option is set specifies - extra options passed to mkfs. - ''; + visible = false; + type = types.unspecified; + default = null; }; autoResize = mkOption { @@ -139,22 +136,11 @@ let }; - config = let - defaultFormatOptions = - # -F needed to allow bare block device without partitions - if (builtins.substring 0 3 config.fsType) == "ext" then "-F" - # -q needed for non-interactive operations - else if config.fsType == "jfs" then "-q" - # (same here) - else if config.fsType == "reiserfs" then "-q" - else null; - in { - options = mkMerge [ - (mkIf config.autoResize [ "x-nixos.autoresize" ]) - (mkIf (utils.fsNeededForBoot config) [ "x-initrd.mount" ]) - ]; - formatOptions = mkIf (defaultFormatOptions != null) (mkDefault defaultFormatOptions); - }; + config.options = mkMerge [ + (mkIf config.autoResize [ "x-nixos.autoresize" ]) + (mkIf config.autoFormat [ "x-systemd.makefs" ]) + (mkIf (utils.fsNeededForBoot config) [ "x-initrd.mount" ]) + ]; }; @@ -216,8 +202,7 @@ let initrdFstab = pkgs.writeText "initrd-fstab" (makeFstabEntries (filter utils.fsNeededForBoot fileSystems) { rootPrefix = "/sysroot"; extraOpts = fs: - (optional fs.autoResize "x-systemd.growfs") - ++ (optional fs.autoFormat "x-systemd.makefs"); + (optional fs.autoResize "x-systemd.growfs"); }); in @@ -330,6 +315,16 @@ in in "Mountpoint '${fs.mountPoint}': 'autoResize = true' is not supported for 'fsType = \"${fs.fsType}\"':${optionalString (fs.fsType == "auto") " fsType has to be explicitly set and"} only the ext filesystems and f2fs support it."; } + { + assertion = ! (any (fs: fs.formatOptions != null) fileSystems); + message = let + fs = head (filter (fs: fs.formatOptions != null) fileSystems); + in '' + 'fileSystems..formatOptions' has been removed, since + systemd-makefs does not support any way to provide formatting + options. + ''; + } ]; # Export for use in other modules @@ -377,37 +372,7 @@ in wants = [ "local-fs.target" "remote-fs.target" ]; }; - systemd.services = - - # Emit systemd services to format requested filesystems. - let - formatDevice = fs: - let - mountPoint' = "${escapeSystemdPath fs.mountPoint}.mount"; - device' = escapeSystemdPath fs.device; - device'' = "${device'}.device"; - in nameValuePair "mkfs-${device'}" - { description = "Initialisation of Filesystem ${fs.device}"; - wantedBy = [ mountPoint' ]; - before = [ mountPoint' "systemd-fsck@${device'}.service" ]; - requires = [ device'' ]; - after = [ device'' ]; - path = [ pkgs.util-linux ] ++ config.system.fsPackages; - script = - '' - if ! [ -e "${fs.device}" ]; then exit 1; fi - # FIXME: this is scary. The test could be more robust. - type=$(blkid -p -s TYPE -o value "${fs.device}" || true) - if [ -z "$type" ]; then - echo "creating ${fs.fsType} filesystem on ${fs.device}..." - mkfs.${fs.fsType} ${fs.formatOptions} "${fs.device}" - fi - ''; - unitConfig.RequiresMountsFor = [ "${dirOf fs.device}" ]; - unitConfig.DefaultDependencies = false; # needed to prevent a cycle - serviceConfig.Type = "oneshot"; - }; - in listToAttrs (map formatDevice (filter (fs: fs.autoFormat && !(utils.fsNeededForBoot fs)) fileSystems)) // { + systemd.services = { # Mount /sys/fs/pstore for evacuating panic logs and crashdumps from persistent storage onto the disk using systemd-pstore. # This cannot be done with the other special filesystems because the pstore module (which creates the mount point) is not loaded then. "mount-pstore" = { diff --git a/nixos/tests/fsck.nix b/nixos/tests/fsck.nix index ccb664be080c..ec6bfa69ae84 100644 --- a/nixos/tests/fsck.nix +++ b/nixos/tests/fsck.nix @@ -30,7 +30,7 @@ import ./make-test-python.nix { else "fsck.ext4.*/dev/vda"}'") with subtest("mnt fs is fsckd"): - machine.succeed("journalctl -b | grep 'fsck.*/dev/vdb.*clean'") + machine.succeed("journalctl -b | grep 'fsck.*vdb.*clean'") machine.succeed( "grep 'Requires=systemd-fsck@dev-vdb.service' /run/systemd/generator/mnt.mount" ) From b497502357c0f944c839e645097f44a7c3279971 Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Mon, 29 May 2023 16:14:55 -0400 Subject: [PATCH 22/31] nixos: Use systemd-growfs for autoResize --- .../manual/release-notes/rl-2311.section.md | 2 ++ nixos/modules/system/boot/stage-1-init.sh | 16 ------------- nixos/modules/system/boot/stage-1.nix | 6 ----- nixos/modules/system/boot/systemd/initrd.nix | 3 --- nixos/modules/tasks/filesystems.nix | 23 ++++++++++++------- nixos/modules/tasks/filesystems/f2fs.nix | 5 ---- 6 files changed, 17 insertions(+), 38 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index ae9f9b77152d..08c316a123c4 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -30,6 +30,8 @@ - `fileSystems..autoFormat` now uses `systemd-makefs`, which does not accept formatting options. Therefore, `fileSystems..formatOptions` has been removed. +- `fileSystems..autoResize` now uses `systemd-growfs` to resize the file system online in stage 2. This means that `f2fs` and `ext2` can no longer be auto resized, while `xfs` and `btrfs` now can be. + ## Other Notable Changes {#sec-release-23.11-notable-changes} - The Cinnamon module now enables XDG desktop integration by default. If you are experiencing collisions related to xdg-desktop-portal-gtk you can safely remove `xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];` from your NixOS configuration. diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh index f72342429a6d..bad045ec101f 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -374,22 +374,6 @@ mountFS() { checkFS "$device" "$fsType" - # Optionally resize the filesystem. - case $options in - *x-nixos.autoresize*) - if [ "$fsType" = ext2 -o "$fsType" = ext3 -o "$fsType" = ext4 ]; then - modprobe "$fsType" - echo "resizing $device..." - e2fsck -fp "$device" - resize2fs "$device" - elif [ "$fsType" = f2fs ]; then - echo "resizing $device..." - fsck.f2fs -fp "$device" - resize.f2fs "$device" - fi - ;; - esac - # Create backing directories for overlayfs if [ "$fsType" = overlay ]; then for i in upper work; do diff --git a/nixos/modules/system/boot/stage-1.nix b/nixos/modules/system/boot/stage-1.nix index 1229f6357523..dcb15cf7d42b 100644 --- a/nixos/modules/system/boot/stage-1.nix +++ b/nixos/modules/system/boot/stage-1.nix @@ -150,12 +150,6 @@ let copy_bin_and_libs ${pkgs.kmod}/bin/kmod ln -sf kmod $out/bin/modprobe - # Copy resize2fs if any ext* filesystems are to be resized - ${optionalString (any (fs: fs.autoResize && (lib.hasPrefix "ext" fs.fsType)) fileSystems) '' - # We need mke2fs in the initrd. - copy_bin_and_libs ${pkgs.e2fsprogs}/sbin/resize2fs - ''} - # Copy multipath. ${optionalString config.services.multipath.enable '' copy_bin_and_libs ${config.services.multipath.package}/bin/multipath diff --git a/nixos/modules/system/boot/systemd/initrd.nix b/nixos/modules/system/boot/systemd/initrd.nix index c9c219d0a0a5..3f40a5b2dfa0 100644 --- a/nixos/modules/system/boot/systemd/initrd.nix +++ b/nixos/modules/system/boot/systemd/initrd.nix @@ -56,7 +56,6 @@ let "systemd-ask-password-console.path" "systemd-ask-password-console.service" "systemd-fsck@.service" - "systemd-growfs@.service" "systemd-halt.service" "systemd-hibernate-resume@.service" "systemd-journald-audit.socket" @@ -93,7 +92,6 @@ let fileSystems = filter utils.fsNeededForBoot config.system.build.fileSystems; needMakefs = lib.any (fs: fs.autoFormat) fileSystems; - needGrowfs = lib.any (fs: fs.autoResize) fileSystems; kernel-name = config.boot.kernelPackages.kernel.name or "kernel"; modulesTree = config.system.modulesTree.override { name = kernel-name + "-modules"; }; @@ -400,7 +398,6 @@ in { storePaths = [ # systemd tooling "${cfg.package}/lib/systemd/systemd-fsck" - (lib.mkIf needGrowfs "${cfg.package}/lib/systemd/systemd-growfs") "${cfg.package}/lib/systemd/systemd-hibernate-resume" "${cfg.package}/lib/systemd/systemd-journald" (lib.mkIf needMakefs "${cfg.package}/lib/systemd/systemd-makefs") diff --git a/nixos/modules/tasks/filesystems.nix b/nixos/modules/tasks/filesystems.nix index 3f8f9b6c80d9..7cb2ca23fa41 100644 --- a/nixos/modules/tasks/filesystems.nix +++ b/nixos/modules/tasks/filesystems.nix @@ -137,7 +137,7 @@ let }; config.options = mkMerge [ - (mkIf config.autoResize [ "x-nixos.autoresize" ]) + (mkIf config.autoResize [ "x-systemd.growfs" ]) (mkIf config.autoFormat [ "x-systemd.makefs" ]) (mkIf (utils.fsNeededForBoot config) [ "x-initrd.mount" ]) ]; @@ -187,22 +187,20 @@ let skipCheck = fs: fs.noCheck || fs.device == "none" || builtins.elem fs.fsType fsToSkipCheck || isBindMount fs; # https://wiki.archlinux.org/index.php/fstab#Filepath_spaces escape = string: builtins.replaceStrings [ " " "\t" ] [ "\\040" "\\011" ] string; - in fstabFileSystems: { rootPrefix ? "", extraOpts ? (fs: []) }: concatMapStrings (fs: + in fstabFileSystems: { rootPrefix ? "" }: concatMapStrings (fs: (optionalString (isBindMount fs) (escape rootPrefix)) + (if fs.device != null then escape fs.device else if fs.label != null then "/dev/disk/by-label/${escape fs.label}" else throw "No device specified for mount point ‘${fs.mountPoint}’.") + " " + escape fs.mountPoint + " " + fs.fsType - + " " + escape (builtins.concatStringsSep "," (fs.options ++ (extraOpts fs))) + + " " + escape (builtins.concatStringsSep "," fs.options) + " 0 " + (if skipCheck fs then "0" else if fs.mountPoint == "/" then "1" else "2") + "\n" ) fstabFileSystems; initrdFstab = pkgs.writeText "initrd-fstab" (makeFstabEntries (filter utils.fsNeededForBoot fileSystems) { rootPrefix = "/sysroot"; - extraOpts = fs: - (optional fs.autoResize "x-systemd.growfs"); }); in @@ -304,7 +302,13 @@ in assertions = let ls = sep: concatMapStringsSep sep (x: x.mountPoint); - notAutoResizable = fs: fs.autoResize && !(hasPrefix "ext" fs.fsType || fs.fsType == "f2fs"); + resizableFSes = [ + "ext3" + "ext4" + "btrfs" + "xfs" + ]; + notAutoResizable = fs: fs.autoResize && !(builtins.elem fs.fsType resizableFSes); in [ { assertion = ! (fileSystems' ? cycle); message = "The ‘fileSystems’ option can't be topologically sorted: mountpoint dependency path ${ls " -> " fileSystems'.cycle} loops to ${ls ", " fileSystems'.loops}"; @@ -312,8 +316,11 @@ in { assertion = ! (any notAutoResizable fileSystems); message = let fs = head (filter notAutoResizable fileSystems); - in - "Mountpoint '${fs.mountPoint}': 'autoResize = true' is not supported for 'fsType = \"${fs.fsType}\"':${optionalString (fs.fsType == "auto") " fsType has to be explicitly set and"} only the ext filesystems and f2fs support it."; + in '' + Mountpoint '${fs.mountPoint}': 'autoResize = true' is not supported for 'fsType = "${fs.fsType}"' + ${optionalString (fs.fsType == "auto") "fsType has to be explicitly set and"} + only the following support it: ${lib.concatStringsSep ", " resizableFSes}. + ''; } { assertion = ! (any (fs: fs.formatOptions != null) fileSystems); diff --git a/nixos/modules/tasks/filesystems/f2fs.nix b/nixos/modules/tasks/filesystems/f2fs.nix index 1d52861aa39d..035784f43df8 100644 --- a/nixos/modules/tasks/filesystems/f2fs.nix +++ b/nixos/modules/tasks/filesystems/f2fs.nix @@ -15,11 +15,6 @@ in boot.initrd.extraUtilsCommands = mkIf (inInitrd && !config.boot.initrd.systemd.enable) '' copy_bin_and_libs ${pkgs.f2fs-tools}/sbin/fsck.f2fs - ${optionalString (any (fs: fs.autoResize) fileSystems) '' - # We need f2fs-tools' tools to resize filesystems - copy_bin_and_libs ${pkgs.f2fs-tools}/sbin/resize.f2fs - ''} - ''; }; } From 0aa6a144bd31199d2e1904483f43ad579d0620e0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 5 Jun 2023 03:15:06 +0000 Subject: [PATCH 23/31] faudio: 23.05 -> 23.06 --- pkgs/development/libraries/faudio/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/faudio/default.nix b/pkgs/development/libraries/faudio/default.nix index 580d7399a961..35da314b340a 100644 --- a/pkgs/development/libraries/faudio/default.nix +++ b/pkgs/development/libraries/faudio/default.nix @@ -4,13 +4,13 @@ stdenv.mkDerivation rec { pname = "faudio"; - version = "23.05"; + version = "23.06"; src = fetchFromGitHub { owner = "FNA-XNA"; repo = "FAudio"; rev = version; - sha256 = "sha256-uZSKbLQ36Kw6useAKyDoxLKD1xtKbigq/ejWErxvkcE="; + sha256 = "sha256-V5t9YliyXxoWNnKwp3TTOCyCIzpcyg1X4DaI0WFlfeQ="; }; nativeBuildInputs = [cmake]; From 6ecc05202e27151addd53042f1a174ccaa84ebe5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 5 Jun 2023 04:00:37 +0000 Subject: [PATCH 24/31] nebula: 1.7.1 -> 1.7.2 --- pkgs/tools/networking/nebula/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/networking/nebula/default.nix b/pkgs/tools/networking/nebula/default.nix index c20a6dd38e1d..4147adf50749 100644 --- a/pkgs/tools/networking/nebula/default.nix +++ b/pkgs/tools/networking/nebula/default.nix @@ -6,13 +6,13 @@ buildGoModule rec { pname = "nebula"; - version = "1.7.1"; + version = "1.7.2"; src = fetchFromGitHub { owner = "slackhq"; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-2FQ/mX1Y2UBl9SiIBVkll0W7P9RWAWJpQwEGKTtplrU="; + hash = "sha256-/kEXrcMFnrnnD+6754EDoOvn4czh0rJGEjlXkmCzb1w="; }; vendorHash = "sha256-VZzSdl8R1y7rCF2vz7e+5nAkb3wlJymNWCXwZZUvg4A="; From 39e30fa40e26b2e7a0afbee4689c57519dc6e165 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 5 Jun 2023 04:33:43 +0000 Subject: [PATCH 25/31] wasmtime: 9.0.2 -> 9.0.3 --- pkgs/development/interpreters/wasmtime/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/interpreters/wasmtime/default.nix b/pkgs/development/interpreters/wasmtime/default.nix index 1361da4b2899..7e40b1d4adb4 100644 --- a/pkgs/development/interpreters/wasmtime/default.nix +++ b/pkgs/development/interpreters/wasmtime/default.nix @@ -2,17 +2,17 @@ rustPlatform.buildRustPackage rec { pname = "wasmtime"; - version = "9.0.2"; + version = "9.0.3"; src = fetchFromGitHub { owner = "bytecodealliance"; repo = pname; rev = "v${version}"; - hash = "sha256-Fnc3iepxHr7WjorFoabHE6ZM/zK1T5W/gkxL+AEcVgU="; + hash = "sha256-b/GioFixPpbCUiYfOLwJ1NCsLGqIm+v9ODuq6kD8JeE="; fetchSubmodules = true; }; - cargoHash = "sha256-7Q5aJU0sYzRLgjiSNLIrydYRJ3ozABjDo4VtmexS3po="; + cargoHash = "sha256-AYb6dbmvoFYbvgik9rdyOnxdHdnhR8thnrQShGxRLFA="; cargoBuildFlags = [ "--package" "wasmtime-cli" "--package" "wasmtime-c-api" ]; From ee29a69fce242f263c516c4a2fe9cdfd77e98b0b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 5 Jun 2023 05:07:21 +0000 Subject: [PATCH 26/31] jackett: 0.21.114 -> 0.21.128 --- pkgs/servers/jackett/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/jackett/default.nix b/pkgs/servers/jackett/default.nix index 0d99f276ca33..5e1d74d71b18 100644 --- a/pkgs/servers/jackett/default.nix +++ b/pkgs/servers/jackett/default.nix @@ -9,13 +9,13 @@ buildDotnetModule rec { pname = "jackett"; - version = "0.21.114"; + version = "0.21.128"; src = fetchFromGitHub { owner = pname; repo = pname; rev = "v${version}"; - hash = "sha512-CwK6nKsI9SrY9lE8THRVe+q0fMLxiLAdeCW7rewI2XtIeIDUy7kDYBujIlbxNdAjT+QgsN3E0oC/+nIyRqqFUg=="; + hash = "sha512-22OiSh/jStVsA7ghjM+P+eVkViBFyhzNwhZbEIhWRlmpOaIC3NUSwMTKuZlq5I6J8Zc6gVW6kCOaKZoAWWWYfA=="; }; projectFile = "src/Jackett.Server/Jackett.Server.csproj"; From 9047bfe2cda86edd00e67c90891a163a410b6b82 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 5 Jun 2023 08:02:36 +0200 Subject: [PATCH 27/31] exploitdb: 2023-06-03 -> 2023-06-05 Diff: https://gitlab.com/exploit-database/exploitdb/-/compare/refs/tags/2023-06-03...2023-06-05 --- pkgs/tools/security/exploitdb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/exploitdb/default.nix b/pkgs/tools/security/exploitdb/default.nix index d8429647e469..c3a13904b119 100644 --- a/pkgs/tools/security/exploitdb/default.nix +++ b/pkgs/tools/security/exploitdb/default.nix @@ -6,13 +6,13 @@ stdenv.mkDerivation rec { pname = "exploitdb"; - version = "2023-06-03"; + version = "2023-06-05"; src = fetchFromGitLab { owner = "exploit-database"; repo = pname; rev = "refs/tags/${version}"; - hash = "sha256-qyrQMNrCn6HaqMM1ikzx/KGquBOa71XNPHcu5aNnSYg="; + hash = "sha256-OhcYBct+ADyEk3VszQr/A+igB4mI/1BBedNzAfuHQ+k="; }; nativeBuildInputs = [ From 4a1b4968e368591a0b598ff678d61afa6fc91607 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Mon, 5 Jun 2023 14:29:31 +0800 Subject: [PATCH 28/31] sing-geoip.generator: unstable-2022-07-05 -> 20230512 --- pkgs/data/misc/sing-geoip/default.nix | 13 ++++--------- pkgs/top-level/all-packages.nix | 4 +--- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/pkgs/data/misc/sing-geoip/default.nix b/pkgs/data/misc/sing-geoip/default.nix index 91c485ce1154..b27a61ef0201 100644 --- a/pkgs/data/misc/sing-geoip/default.nix +++ b/pkgs/data/misc/sing-geoip/default.nix @@ -8,21 +8,16 @@ let generator = buildGoModule rec { pname = "sing-geoip"; - version = "unstable-2022-07-05"; + version = "20230512"; src = fetchFromGitHub { owner = "SagerNet"; repo = pname; - rev = "2ced72c94da4c9259c40353c375319d9d28a78f3"; - hash = "sha256-z8aP+OfTuzQNwOT3EEnI9uze/vbHTJLEiCPqIrnNUHw="; + rev = "refs/tags/${version}"; + hash = "sha256-Zm+5N/37hoHpH/TLNJrHeaBXI8G1jEpM1jz6Um8edNE="; }; - vendorHash = "sha256-lr0XMLFxJmLqIqCuGgmsFh324jmZVj71blmStMn41Rs="; - - postPatch = '' - # The codes args should start from the third args - substituteInPlace main.go --replace "os.Args[2:]" "os.Args[3:]" - ''; + vendorHash = "sha256-ejXAdsJwXhqet+Ca+pDLWwu0gex79VcIxW6rmhRnbTQ="; meta = with lib; { description = "GeoIP data for sing-box"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e1b530a640a1..28c9fbd69fca 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12454,9 +12454,7 @@ with pkgs; sing-geosite = callPackage ../data/misc/sing-geosite { }; - sing-geoip = callPackage ../data/misc/sing-geoip { - buildGoModule = buildGo119Module; - }; + sing-geoip = callPackage ../data/misc/sing-geoip { }; sipcalc = callPackage ../tools/networking/sipcalc { }; From 2bfa0ebd131dc2ee8fa077a87401d8bd9c94ca72 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Mon, 5 Jun 2023 09:39:11 +0300 Subject: [PATCH 29/31] blink: fix build on x86_64-darwin --- pkgs/applications/emulators/blink/default.nix | 1 + pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/emulators/blink/default.nix b/pkgs/applications/emulators/blink/default.nix index 403f5a20cf36..48e1a2a3a4ce 100644 --- a/pkgs/applications/emulators/blink/default.nix +++ b/pkgs/applications/emulators/blink/default.nix @@ -29,5 +29,6 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/jart/blink"; license = lib.licenses.isc; maintainers = with lib.maintainers; [ t4ccer ]; + platforms = lib.platforms.all; }; }) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e1b530a640a1..7e329f0f83ab 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4022,7 +4022,7 @@ with pkgs; bless = callPackage ../applications/editors/bless { }; - blink = callPackage ../applications/emulators/blink { }; + blink = darwin.apple_sdk_11_0.callPackage ../applications/emulators/blink { }; blink1-tool = callPackage ../tools/misc/blink1-tool { }; From 72a51aa1b1c7a32cf3fa2e93a801d6df4bc378f5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 5 Jun 2023 09:13:51 +0200 Subject: [PATCH 30/31] python311Packages.pyipp: 0.13.0 -> 0.14.1 Diff: https://github.com/ctalkington/python-ipp/compare/0.13.0...0.14.1 Changelog: https://github.com/ctalkington/python-ipp/releases/tag/0.14.1 --- pkgs/development/python-modules/pyipp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pyipp/default.nix b/pkgs/development/python-modules/pyipp/default.nix index 15ad2d5a75fa..7970db4cbe3e 100644 --- a/pkgs/development/python-modules/pyipp/default.nix +++ b/pkgs/development/python-modules/pyipp/default.nix @@ -15,7 +15,7 @@ buildPythonPackage rec { pname = "pyipp"; - version = "0.13.0"; + version = "0.14.1"; format = "pyproject"; disabled = pythonOlder "3.9"; @@ -24,7 +24,7 @@ buildPythonPackage rec { owner = "ctalkington"; repo = "python-ipp"; rev = version; - hash = "sha256-lVpXtPxZZCyWycmkXZTMo5WTPtlehNY5IX7tiyIb1uM="; + hash = "sha256-l8zDgqv8+9r15dt1YeuAYq2GCl9JsrtNRjPlQ9A7H9c="; }; postPatch = '' From 748cb0913f4d40f21406aaeaeb06737630ad939f Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 4 Jun 2023 22:31:58 +0000 Subject: [PATCH 31/31] rabbitmq-server: 3.11.10 -> 3.12.0 --- pkgs/servers/amqp/rabbitmq-server/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/amqp/rabbitmq-server/default.nix b/pkgs/servers/amqp/rabbitmq-server/default.nix index c395427c4ce9..f0687e7987af 100644 --- a/pkgs/servers/amqp/rabbitmq-server/default.nix +++ b/pkgs/servers/amqp/rabbitmq-server/default.nix @@ -38,12 +38,12 @@ in stdenv.mkDerivation rec { pname = "rabbitmq-server"; - version = "3.11.10"; + version = "3.12.0"; # when updating, consider bumping elixir version in all-packages.nix src = fetchurl { url = "https://github.com/rabbitmq/rabbitmq-server/releases/download/v${version}/${pname}-${version}.tar.xz"; - hash = "sha256-gZcUWN8SnCb93zUTqWDYtxUrT5655gfEnMax1NLHh+M="; + hash = "sha256-XHiFiKO4vi+gD2Cw6QnRCu5YHDKJviLETadmj1Vzr/Y="; }; nativeBuildInputs = [ unzip xmlto docbook_xml_dtd_45 docbook_xsl zip rsync python3 ];