summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/mailreaders
diff options
context:
space:
mode:
authorClément DOUIN <soywod@users.noreply.github.com>2024-02-05 00:32:57 +0100
committerGitHub <noreply@github.com>2024-02-05 00:32:57 +0100
commit0bf2c59003ef6ab726b7d38410490fae07faaf4e (patch)
tree9c513e4d8aa26c76cf51819f0c54cb7bb2ca48df /pkgs/applications/networking/mailreaders
parent66c2db03819bfa8f6570279dfe5a2472e7472283 (diff)
himalaya: 1.0.0-beta -> 1.0.0-beta.2 (#284358)
Diffstat (limited to 'pkgs/applications/networking/mailreaders')
-rw-r--r--pkgs/applications/networking/mailreaders/himalaya/default.nix35
1 files changed, 10 insertions, 25 deletions
diff --git a/pkgs/applications/networking/mailreaders/himalaya/default.nix b/pkgs/applications/networking/mailreaders/himalaya/default.nix
index e90eaed94f56..e200148cc076 100644
--- a/pkgs/applications/networking/mailreaders/himalaya/default.nix
+++ b/pkgs/applications/networking/mailreaders/himalaya/default.nix
@@ -8,47 +8,32 @@
, installManPages ? stdenv.hostPlatform == stdenv.buildPlatform
, notmuch
, gpgme
-, withMaildir ? true
-, withImap ? true
-, withNotmuch ? false
-, withSendmail ? true
-, withSmtp ? true
-, withPgpCommands ? false
-, withPgpGpg ? false
-, withPgpNative ? false
+, buildNoDefaultFeatures ? false
+, buildFeatures ? []
}:
rustPlatform.buildRustPackage rec {
+ inherit buildNoDefaultFeatures buildFeatures;
+
pname = "himalaya";
- version = "1.0.0-beta";
+ version = "1.0.0-beta.2";
src = fetchFromGitHub {
owner = "soywod";
repo = pname;
rev = "v${version}";
- hash = "sha256-39XYtxmo/12hkCS7zVIQi3UbLzaIKH1OwfdDB/ghU98=";
+ hash = "sha256-dLj/bEPz3SD1v54yXbtVdUJKQsyw0OJxmQh10ql+3iI=";
};
- cargoSha256 = "HIDmBPrcOcK2coTaD4v8ntIZrv2SwTa8vUTG8Ky4RhM=";
+ cargoSha256 = "0IYpuKq5amAcYtsDMzJGghbxkuldAulsgUmChTl2DIg=";
nativeBuildInputs = [ ]
- ++ lib.optional withPgpGpg pkg-config
+ ++ lib.optional (builtins.elem "pgp-gpg" buildFeatures) pkg-config
++ lib.optional (installManPages || installShellCompletions) installShellFiles;
buildInputs = [ ]
- ++ lib.optional withNotmuch notmuch
- ++ lib.optional withPgpGpg gpgme;
-
- buildNoDefaultFeatures = true;
- buildFeatures = [ ]
- ++ 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";
+ ++ lib.optional (builtins.elem "notmuch" buildFeatures) notmuch
+ ++ lib.optional (builtins.elem "pgp-gpg" buildFeatures) gpgme;
postInstall = lib.optionalString installManPages ''
mkdir -p $out/man