9 installShellCompletions ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
10 installManPages ? stdenv.buildPlatform.canExecute stdenv.hostPlatform,
12 buildNoDefaultFeatures ? false,
16 rustPlatform.buildRustPackage rec {
17 # Learn more about available cargo features at:
18 # - <https://pimalaya.org/neverest/cli/latest/installation.html#cargo>
19 # - <https://git.sr.ht/~soywod/neverest-cli/tree/master/item/Cargo.toml#L18>
20 inherit buildNoDefaultFeatures buildFeatures;
23 version = "1.0.0-beta";
25 src = fetchFromGitHub {
29 hash = "sha256-3PSJyhxrOCiuHUeVHO77+NecnI5fN5EZfPhYizuYvtE=";
32 useFetchCargoVendor = true;
33 cargoHash = "sha256-K+LKRokfE8i4Huti0aQm4UrpConTcxVwJ2DyeOLjNKA=";
37 ] ++ lib.optional (installManPages || installShellCompletions) installShellFiles;
41 ++ lib.optionals stdenv.hostPlatform.isDarwin (
42 with darwin.apple_sdk.frameworks;
49 ++ lib.optional (builtins.elem "notmuch" buildFeatures) notmuch;
51 # TODO: unit tests temporarily broken, remove this line for the next
56 lib.optionalString installManPages ''
58 $out/bin/neverest man $out/man
59 installManPage $out/man/*
61 + lib.optionalString installShellCompletions ''
62 installShellCompletion --cmd neverest \
63 --bash <($out/bin/neverest completion bash) \
64 --fish <($out/bin/neverest completion fish) \
65 --zsh <($out/bin/neverest completion zsh)
69 description = "CLI to synchronize, backup and restore emails";
70 mainProgram = "neverest";
71 homepage = "https://pimalaya.org/neverest/cli/v${version}/";
72 changelog = "https://git.sr.ht/~soywod/neverest-cli/tree/v${version}/item/CHANGELOG.md";
73 license = licenses.mit;
74 maintainers = with maintainers; [ soywod ];