summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/mailreaders
diff options
context:
space:
mode:
authorClément DOUIN <clement.douin@posteo.net>2024-01-01 17:09:44 +0100
committerClément DOUIN <clement.douin@posteo.net>2024-01-01 21:53:16 +0100
commit2b39679ee1bb30f2cc6fdee05b4087c372c2f1c2 (patch)
treee00bfcd393bcf7c4942ee4d64b177e8d4cf30768 /pkgs/applications/networking/mailreaders
parent10af81720ab07f13695c47f435e78432a2350b10 (diff)
himalaya: 0.8.4 -> 1.0.0-beta
Diffstat (limited to 'pkgs/applications/networking/mailreaders')
-rw-r--r--pkgs/applications/networking/mailreaders/himalaya/default.nix42
1 files changed, 29 insertions, 13 deletions
diff --git a/pkgs/applications/networking/mailreaders/himalaya/default.nix b/pkgs/applications/networking/mailreaders/himalaya/default.nix
index 197fe158618d..e90eaed94f56 100644
--- a/pkgs/applications/networking/mailreaders/himalaya/default.nix
+++ b/pkgs/applications/networking/mailreaders/himalaya/default.nix
@@ -2,37 +2,53 @@
, rustPlatform
, fetchFromGitHub
, stdenv
+, pkg-config
, installShellFiles
, installShellCompletions ? stdenv.hostPlatform == stdenv.buildPlatform
, installManPages ? stdenv.hostPlatform == stdenv.buildPlatform
, notmuch
-, withImapBackend ? true
-, withNotmuchBackend ? false
-, withSmtpSender ? true
+, gpgme
+, withMaildir ? true
+, withImap ? true
+, withNotmuch ? false
+, withSendmail ? true
+, withSmtp ? true
+, withPgpCommands ? false
+, withPgpGpg ? false
+, withPgpNative ? false
}:
rustPlatform.buildRustPackage rec {
pname = "himalaya";
- version = "0.8.4";
+ version = "1.0.0-beta";
src = fetchFromGitHub {
owner = "soywod";
repo = pname;
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;
buildFeatures = [ ]
- ++ lib.optional withImapBackend "imap-backend"
- ++ lib.optional withNotmuchBackend "notmuch-backend"
- ++ lib.optional withSmtpSender "smtp-sender";
+ ++ lib.optional withMaildir "maildir"
+ ++ lib.optional withImap "imap"
+ ++ 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 ''
mkdir -p $out/man
@@ -46,8 +62,8 @@ rustPlatform.buildRustPackage rec {
'';
meta = with lib; {
- description = "CLI to manage your emails.";
- homepage = "https://pimalaya.org/himalaya/";
+ description = "CLI to manage emails";
+ homepage = "https://pimalaya.org/himalaya/cli/latest/";
changelog = "https://github.com/soywod/himalaya/blob/v${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ soywod toastal yanganto ];