From be53021199db8eedc2afff7deb3611f17796d27e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Wed, 31 May 2023 17:36:57 +0200 Subject: [PATCH] himalaya: 0.7.3 -> 0.8.0 --- .../manual/release-notes/rl-2311.section.md | 2 ++ .../mailreaders/himalaya/default.nix | 26 ++++--------------- pkgs/top-level/all-packages.nix | 4 +-- 3 files changed, 8 insertions(+), 24 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2311.section.md b/nixos/doc/manual/release-notes/rl-2311.section.md index 08c316a123c4..e4c0c0ca421d 100644 --- a/nixos/doc/manual/release-notes/rl-2311.section.md +++ b/nixos/doc/manual/release-notes/rl-2311.section.md @@ -26,6 +26,8 @@ - `etcd` has been updated to 3.5, you will want to read the [3.3 to 3.4](https://etcd.io/docs/v3.5/upgrades/upgrade_3_4/) and [3.4 to 3.5](https://etcd.io/docs/v3.5/upgrades/upgrade_3_5/) upgrade guides +- `himalaya` has been updated to `0.8.0`, which drops the native TLS support (in favor of Rustls) and add OAuth 2.0 support. See the [release note](https://github.com/soywod/himalaya/releases/tag/v0.8.0) for more details. + - `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. diff --git a/pkgs/applications/networking/mailreaders/himalaya/default.nix b/pkgs/applications/networking/mailreaders/himalaya/default.nix index 72fb01957b50..0cb848f65cfc 100644 --- a/pkgs/applications/networking/mailreaders/himalaya/default.nix +++ b/pkgs/applications/networking/mailreaders/himalaya/default.nix @@ -5,15 +5,7 @@ , installShellFiles , installShellCompletions ? stdenv.hostPlatform == stdenv.buildPlatform , installManPages ? stdenv.hostPlatform == stdenv.buildPlatform -, pkg-config -, Security -, libiconv -, openssl , notmuch -, withRusttlsTls ? true -, withRusttlsNativeCerts ? withRusttlsTls -, withNativeTls ? false -, withNativeTlsVendored ? withNativeTls , withImapBackend ? true , withNotmuchBackend ? false , withSmtpSender ? true @@ -21,31 +13,23 @@ rustPlatform.buildRustPackage rec { pname = "himalaya"; - version = "0.7.3"; + version = "0.8.0"; src = fetchFromGitHub { owner = "soywod"; repo = pname; rev = "v${version}"; - sha256 = "HmH4qL70ii8rS8OeUnUxsy9/wMx+f2SBd1AyRqlfKfc="; + hash = "sha256-kK/F3Geiuz0CgGSE0sCOfSZjg9gEPLyUEilzb+SdIM8="; }; - cargoSha256 = "NJFOtWlfKZRLr9vvDvPQjpT4LGMeytk0JFJb0r77bwE="; + cargoSha256 = "4L09lWD8tRJvBPzQlSdk4aa1QY7sVw26OwgMzscN1j8="; - nativeBuildInputs = [ ] - ++ lib.optional (installManPages || installShellCompletions) installShellFiles - ++ lib.optional (withNativeTls && !stdenv.hostPlatform.isDarwin) pkg-config; + nativeBuildInputs = lib.optional (installManPages || installShellCompletions) installShellFiles; - buildInputs = [ ] - ++ lib.optional withNativeTls (if stdenv.hostPlatform.isDarwin then [ Security libiconv ] else [ openssl ]) - ++ lib.optional withNotmuchBackend notmuch; + buildInputs = lib.optional withNotmuchBackend notmuch; buildNoDefaultFeatures = true; buildFeatures = [ ] - ++ lib.optional withRusttlsTls "rustls-tls" - ++ lib.optional withRusttlsNativeCerts "rustls-native-certs" - ++ lib.optional withNativeTls "native-tls" - ++ lib.optional withNativeTlsVendored "native-tls-vendored" ++ lib.optional withImapBackend "imap-backend" ++ lib.optional withNotmuchBackend "notmuch-backend" ++ lib.optional withSmtpSender "smtp-sender"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d1008c0c5d95..3fc7f2eb7505 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31314,9 +31314,7 @@ with pkgs; hexedit = callPackage ../applications/editors/hexedit { }; - himalaya = callPackage ../applications/networking/mailreaders/himalaya { - inherit (darwin.apple_sdk.frameworks) Security; - }; + himalaya = callPackage ../applications/networking/mailreaders/himalaya { }; hipchat = callPackage ../applications/networking/instant-messengers/hipchat { };