Merge pull request #278088 from soywod/himalaya-v1.0.0-beta

himalaya: 0.8.4 -> 1.0.0-beta
This commit is contained in:
Thiago Kenji Okada 2024-01-09 13:15:33 +00:00 committed by GitHub
commit f4549e0603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 13 deletions

View File

@ -45,6 +45,8 @@ The pre-existing [services.ankisyncd](#opt-services.ankisyncd.enable) has been m
<!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. --> <!-- To avoid merge conflicts, consider adding your item at an arbitrary place in the list instead. -->
- `himalaya` was updated to v1.0.0-beta, which introduces breaking changes. Check out the [release note](https://github.com/soywod/himalaya/releases/tag/v1.0.0-beta) for details.
- The `power.ups` module now generates `upsd.conf`, `upsd.users` and `upsmon.conf` automatically from a set of new configuration options. This breaks compatibility with existing `power.ups` setups where these files were created manually. Back up these files before upgrading NixOS. - The `power.ups` module now generates `upsd.conf`, `upsd.users` and `upsmon.conf` automatically from a set of new configuration options. This breaks compatibility with existing `power.ups` setups where these files were created manually. Back up these files before upgrading NixOS.
- `k9s` was updated to v0.30. There have been various breaking changes in the config file format, - `k9s` was updated to v0.30. There have been various breaking changes in the config file format,

View File

@ -2,37 +2,53 @@
, rustPlatform , rustPlatform
, fetchFromGitHub , fetchFromGitHub
, stdenv , stdenv
, pkg-config
, installShellFiles , installShellFiles
, installShellCompletions ? stdenv.hostPlatform == stdenv.buildPlatform , installShellCompletions ? stdenv.hostPlatform == stdenv.buildPlatform
, installManPages ? stdenv.hostPlatform == stdenv.buildPlatform , installManPages ? stdenv.hostPlatform == stdenv.buildPlatform
, notmuch , notmuch
, withImapBackend ? true , gpgme
, withNotmuchBackend ? false , withMaildir ? true
, withSmtpSender ? true , withImap ? true
, withNotmuch ? false
, withSendmail ? true
, withSmtp ? true
, withPgpCommands ? false
, withPgpGpg ? false
, withPgpNative ? false
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "himalaya"; pname = "himalaya";
version = "0.8.4"; version = "1.0.0-beta";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "soywod"; owner = "soywod";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
hash = "sha256-AImLYRRCL6IvoSeMFH2mbkNOvUmLwIvhWB3cOoqDljk="; hash = "sha256-39XYtxmo/12hkCS7zVIQi3UbLzaIKH1OwfdDB/ghU98=";
}; };
cargoSha256 = "deJZPaZW6rb7A6wOL3vcphBXu0F7EXc1xRwSDY/v8l4="; cargoSha256 = "HIDmBPrcOcK2coTaD4v8ntIZrv2SwTa8vUTG8Ky4RhM=";
nativeBuildInputs = lib.optional (installManPages || installShellCompletions) installShellFiles; nativeBuildInputs = [ ]
++ lib.optional withPgpGpg pkg-config
++ lib.optional (installManPages || installShellCompletions) installShellFiles;
buildInputs = lib.optional withNotmuchBackend notmuch; buildInputs = [ ]
++ lib.optional withNotmuch notmuch
++ lib.optional withPgpGpg gpgme;
buildNoDefaultFeatures = true; buildNoDefaultFeatures = true;
buildFeatures = [ ] buildFeatures = [ ]
++ lib.optional withImapBackend "imap-backend" ++ lib.optional withMaildir "maildir"
++ lib.optional withNotmuchBackend "notmuch-backend" ++ lib.optional withImap "imap"
++ lib.optional withSmtpSender "smtp-sender"; ++ lib.optional withNotmuch "notmuch"
++ lib.optional withSmtp "smtp"
++ lib.optional withSendmail "sendmail"
++ lib.optional withPgpCommands "pgp-commands"
++ lib.optional withPgpGpg "pgp-gpg"
++ lib.optional withPgpNative "pgp-native";
postInstall = lib.optionalString installManPages '' postInstall = lib.optionalString installManPages ''
mkdir -p $out/man mkdir -p $out/man
@ -46,8 +62,8 @@ rustPlatform.buildRustPackage rec {
''; '';
meta = with lib; { meta = with lib; {
description = "CLI to manage your emails."; description = "CLI to manage emails";
homepage = "https://pimalaya.org/himalaya/"; homepage = "https://pimalaya.org/himalaya/cli/latest/";
changelog = "https://github.com/soywod/himalaya/blob/v${version}/CHANGELOG.md"; changelog = "https://github.com/soywod/himalaya/blob/v${version}/CHANGELOG.md";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ soywod toastal yanganto ]; maintainers = with maintainers; [ soywod toastal yanganto ];