himalaya: 1.0.0-beta -> 1.0.0-beta.2 (#284358)

This commit is contained in:
Clément DOUIN 2024-02-05 00:32:57 +01:00 committed by GitHub
parent 66c2db0381
commit 0bf2c59003
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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