2020-10-05 15:16:02 +01:00
|
|
|
{ stdenv, lib, fetchFromGitHub, installShellFiles, libiconv, ruby ? null }:
|
2018-01-06 14:59:36 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mblaze";
|
2021-01-20 04:58:52 +00:00
|
|
|
version = "1.1";
|
2018-01-06 14:59:36 +00:00
|
|
|
|
2020-10-05 15:16:02 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2020-04-15 13:04:47 +01:00
|
|
|
buildInputs = [ ruby ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
|
2018-01-13 11:48:37 +00:00
|
|
|
|
2018-01-06 14:59:36 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-10-05 15:16:02 +01:00
|
|
|
owner = "leahneukirchen";
|
2018-01-06 14:59:36 +00:00
|
|
|
repo = "mblaze";
|
|
|
|
rev = "v${version}";
|
2021-01-20 04:58:52 +00:00
|
|
|
sha256 = "sha256-Ho2Qoxs93ig4yYUOaoqdYnLA8Y4+7CfRM0dju89JOa4=";
|
2018-01-06 14:59:36 +00:00
|
|
|
};
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2018-01-06 14:59:36 +00:00
|
|
|
|
2021-03-26 13:45:50 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-02-24 01:07:08 +00:00
|
|
|
postInstall = ''
|
2020-10-05 15:16:02 +01:00
|
|
|
installShellCompletion contrib/_mblaze
|
2020-04-15 13:04:47 +01:00
|
|
|
'' + lib.optionalString (ruby != null) ''
|
|
|
|
install -Dt $out/bin contrib/msuck contrib/mblow
|
2019-02-24 01:07:08 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-15 13:04:47 +01:00
|
|
|
meta = with lib; {
|
2020-10-05 15:16:02 +01:00
|
|
|
homepage = "https://github.com/leahneukirchen/mblaze";
|
|
|
|
description = "Unix utilities for processing and interacting with mail messages which are stored in maildir folders";
|
2018-01-06 14:59:36 +00:00
|
|
|
license = licenses.cc0;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.ajgrf ];
|
|
|
|
};
|
|
|
|
}
|