diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-15 21:08:50 +0200 |
---|---|---|
committer | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2020-09-15 21:08:50 +0200 |
commit | 151f929170ee4c983d44fc794c99e27f0ac4f4ae (patch) | |
tree | 1571a7321e254740041e111aafb3164dfa063ca0 /pkgs | |
parent | f9aff5225e3afcf6c44abf0e8d94440108ac52fc (diff) | |
download | pnpkgs-151f929170ee4c983d44fc794c99e27f0ac4f4ae.tar.gz pnpkgs-151f929170ee4c983d44fc794c99e27f0ac4f4ae.zip |
Add larbs-mail
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/larbs-mail/default.nix | 9 | ||||
-rw-r--r-- | pkgs/larbs-mail/mutt-wizard.nix (renamed from pkgs/mutt-wizard/default.nix) | 0 | ||||
-rw-r--r-- | pkgs/larbs-mail/neomutt_wrapped.nix | 28 |
3 files changed, 34 insertions, 3 deletions
diff --git a/pkgs/larbs-mail/default.nix b/pkgs/larbs-mail/default.nix index d5b9bb1..ef41092 100644 --- a/pkgs/larbs-mail/default.nix +++ b/pkgs/larbs-mail/default.nix @@ -1,10 +1,13 @@ -{ stdenv, callPackage, buildEnv, neomutt, isync, pass, msmtp, notmuch, libnotify }: +{ stdenv, callPackage, buildEnv, isync, pass, msmtp, notmuch, libnotify }: with stdenv.lib; + let - mutt-wizard = callPackage ../mutt-wizard { }; + mutt-wizard = callPackage ./mutt-wizard.nix { }; + neomutt = callPackage ./neomutt_wrapped.nix { }; in buildEnv { name = "larbs-mail"; + paths = [ neomutt isync @@ -17,7 +20,7 @@ buildEnv { meta = { homepage = "https://github.com/LukeSmithXYZ/mutt-wizard"; - description = "A system for automatically configuring mutt and isync with a simple interface and safe passwords"; + description = "Neomutt + Mutt-Wizard: A system for automatically configuring mutt and isync with a simple interface and safe passwords"; license = licenses.gpl3; platforms = platforms.linux; }; diff --git a/pkgs/mutt-wizard/default.nix b/pkgs/larbs-mail/mutt-wizard.nix index aa6d533..aa6d533 100644 --- a/pkgs/mutt-wizard/default.nix +++ b/pkgs/larbs-mail/mutt-wizard.nix diff --git a/pkgs/larbs-mail/neomutt_wrapped.nix b/pkgs/larbs-mail/neomutt_wrapped.nix new file mode 100644 index 0000000..bd1c011 --- /dev/null +++ b/pkgs/larbs-mail/neomutt_wrapped.nix @@ -0,0 +1,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; + }; + } |