3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/mailreaders/mblaze/default.nix

35 lines
982 B
Nix
Raw Normal View History

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 {
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 ];
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
};
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
'' + lib.optionalString (ruby != null) ''
install -Dt $out/bin contrib/msuck contrib/mblow
2019-02-24 01:07:08 +00: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 ];
};
}