forked from mirrors/nixpkgs
5108c4c7b2
* notmuch: fix homepage and notmuch-mutt license notmuch-mutt's license is GPLv3. might have been changed when it was upstreamed. * fix scheme * fix typo in url * fix field alignment * use with to make statements shorter
47 lines
968 B
Nix
47 lines
968 B
Nix
{ stdenv, lib, perl, perlPackages, makeWrapper, coreutils, notmuch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "notmuch-mutt-${version}";
|
|
version = notmuch.version;
|
|
|
|
outputs = [ "out" ];
|
|
|
|
dontStrip = true;
|
|
|
|
buildInputs = [
|
|
perl
|
|
makeWrapper
|
|
] ++ (with perlPackages; [
|
|
FileRemove
|
|
DigestSHA1
|
|
Later
|
|
MailBox
|
|
MailMaildir
|
|
MailTools
|
|
StringShellQuote
|
|
TermReadLineGnu
|
|
]);
|
|
|
|
src = notmuch.src;
|
|
|
|
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
|
|
|
|
installPhase = ''
|
|
${coreutils}/bin/install -Dm755 \
|
|
./contrib/notmuch-mutt/notmuch-mutt \
|
|
$out/bin/notmuch-mutt
|
|
|
|
wrapProgram $out/bin/notmuch-mutt \
|
|
--prefix PERL5LIB : $PERL5LIB
|
|
'';
|
|
|
|
meta = with lib; {
|
|
inherit version;
|
|
description = "Mutt support for notmuch";
|
|
homepage = https://notmuchmail.org/;
|
|
license = with licenses; gpl3;
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|