nixpkgs/pkgs/applications/networking/mailreaders/mblaze/default.nix

33 lines
949 B
Nix
Raw Normal View History

2020-10-05 16:16:02 +02:00
{ stdenv, lib, fetchFromGitHub, installShellFiles, libiconv, ruby ? null }:
2018-01-06 15:59:36 +01:00
stdenv.mkDerivation rec {
pname = "mblaze";
2020-10-05 16:16:02 +02:00
version = "1.0";
2018-01-06 15:59:36 +01:00
2020-10-05 16:16:02 +02:00
nativeBuildInputs = [ installShellFiles ];
buildInputs = [ ruby ] ++ lib.optionals stdenv.isDarwin [ libiconv ];
2018-01-13 12:48:37 +01:00
2018-01-06 15:59:36 +01:00
src = fetchFromGitHub {
2020-10-05 16:16:02 +02:00
owner = "leahneukirchen";
2018-01-06 15:59:36 +01:00
repo = "mblaze";
rev = "v${version}";
2020-10-05 16:16:02 +02:00
sha256 = "0hxy3mjjv4hg856sl1r15fdmqaw4s9c26b3lidsd5x0kpqy601ai";
2018-01-06 15:59:36 +01:00
};
makeFlags = [ "PREFIX=$(out)" ];
2018-01-06 15:59:36 +01:00
2019-02-24 02:07:08 +01:00
postInstall = ''
2020-10-05 16:16:02 +02:00
installShellCompletion contrib/_mblaze
'' + lib.optionalString (ruby != null) ''
install -Dt $out/bin contrib/msuck contrib/mblow
2019-02-24 02:07:08 +01:00
'';
meta = with lib; {
2020-10-05 16:16:02 +02: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 15:59:36 +01:00
license = licenses.cc0;
platforms = platforms.all;
maintainers = [ maintainers.ajgrf ];
};
}