3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/mailreaders/notmuch/mutt.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

47 lines
958 B
Nix

{ stdenv, lib, perl, perlPackages, makeWrapper, coreutils, notmuch }:
stdenv.mkDerivation rec {
pname = "notmuch-mutt";
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;
};
}