about summary refs log tree commit diff
path: root/pkgs/mutt-wizard/default.nix
blob: c469ae5dcec672148f3e5c533e3e3ef69b91e59e (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
{ stdenv, fetchgit, isync, pass, neomutt, msmtp }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "mutt-wizard";

  src = fetchgit {
    url = "https://github.com/LukeSmithXYZ/mutt-wizard";
    rev = "289533279b21f0fc6ecbdf03ebde2a67741e3ded";
    sha256 = "1bb9429wabv85zja2y89vhj15qcd10acbg5k6ylilw067wzs9ks5";
  };

  buildInputs = [ isync pass neomutt msmtp ];

  buildPhase = ''
    sed -i 's/(PREFIX)/(out)/g' Makefile
    make PREFIX=$out SHELL=$SHELL install
  '';

  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;
  };
}