blob: dc1e4677457468fef03fab9cd40c87a7117e6e40 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{stdenv, makeWrapper, callPackage, writeText, neomutt }:
with stdenv.lib;
let
mutt-wizard = callPackage ./mutt-wizard.nix { };
muttrc = writeText "muttrc" ''
source ${mutt-wizard}/share/mutt-wizard/mutt-wizard.muttrc
source $HOME/.config/mutt/muttrc
'';
in
stdenv.mkDerivation rec {
name = "larbs-mail";
unpackPhase = "true";
buildInputs = [ makeWrapper ];
installPhase = ''
makeWrapper ${neomutt}/bin/neomutt $out/bin/neomutt \
--add-flags "-F ${muttrc}"
'';
meta = {
homepage = "https://github.com/LukeSmithXYZ/mutt-wizard";
description = "A system for automatically configuring mutt and isync with a simple interface and safe passwords";
license = licenses.gpl3;
platforms = [ platforms.linux "x86_64-darwin" ];
};
}
|