mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-24 13:53:24 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{ notmuch
|
|
, lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, installShellFiles
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "notmuch-mailmover";
|
|
version = "0.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "michaeladler";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-12eDCqer13GJS0YjJDleJbkP4o7kZfof6HlLG06qZW0=";
|
|
};
|
|
|
|
cargoHash = "sha256-B5VSkhY4nNXSG2SeCl22pSkl6SXEEoYj99wEsNhs/bQ=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = [ notmuch ];
|
|
|
|
postInstall = ''
|
|
installManPage share/notmuch-mailmover.1
|
|
installShellCompletion --cmd notmuch-mailmover \
|
|
--bash share/notmuch-mailmover.bash \
|
|
--fish share/notmuch-mailmover.fish \
|
|
--zsh share/_notmuch-mailmover
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|