Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.3 KiB
Nix

{
notmuch,
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
lua5_4,
installShellFiles,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "notmuch-mailmover";
version = "0.7.1";
src = fetchFromGitHub {
owner = "michaeladler";
repo = "notmuch-mailmover";
rev = "v${version}";
hash = "sha256-fJljqNSPLM1JiyeGMNvub/4wk5L9+lVTqtgCdoe7S88=";
};
cargoHash = "sha256-PeSlErwGBCZECYoWqmJrlRY7peNNY7c/wxd6R09uUz4=";
nativeBuildInputs = [
installShellFiles
pkg-config
];
buildInputs = [
notmuch
lua5_4
];
postInstall = ''
installManPage share/notmuch-mailmover.1.gz
mkdir -p $out/share/notmuch-mailmover
cp -dR example $out/share/notmuch-mailmover/
installShellCompletion --cmd notmuch-mailmover \
--bash share/notmuch-mailmover.bash \
--fish share/notmuch-mailmover.fish \
--zsh share/_notmuch-mailmover
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Application to assign notmuch tagged mails to IMAP folders";
mainProgram = "notmuch-mailmover";
homepage = "https://github.com/michaeladler/notmuch-mailmover/";
license = licenses.asl20;
maintainers = with maintainers; [
michaeladler
archer-65
];
platforms = platforms.all;
};
}