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

37 lines
962 B
Nix
Raw Normal View History

2019-03-28 21:47:56 +00:00
{ stdenv, fetchFromGitHub, fetchpatch, libiconv }:
2018-01-06 14:59:36 +00:00
stdenv.mkDerivation rec {
pname = "mblaze";
version = "0.5.1";
2018-01-06 14:59:36 +00:00
2018-01-13 11:48:37 +00:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv ];
2018-01-06 14:59:36 +00:00
src = fetchFromGitHub {
owner = "chneukirchen";
repo = "mblaze";
rev = "v${version}";
sha256 = "11x548dl2jy9cmgsakqrzfdq166whhk4ja7zkiaxrapkjmkf6pbh";
2018-01-06 14:59:36 +00:00
};
2019-03-28 21:47:56 +00:00
patches = [
(fetchpatch {
url = "https://github.com/leahneukirchen/mblaze/commit/53151f4f890f302291eb8d3375dec4f8ecb66ed7.patch";
sha256 = "1mcyrh053iiyzdhgm09g5h3a77np496whnc7jr4agpk1nkbcpfxc";
})
];
2018-01-06 14:59:36 +00:00
makeFlags = "PREFIX=$(out)";
2019-02-24 01:07:08 +00:00
postInstall = ''
install -Dm644 -t $out/share/zsh/site-functions contrib/_mblaze
'';
2018-01-06 14:59:36 +00:00
meta = with stdenv.lib; {
homepage = https://github.com/chneukirchen/mblaze;
description = "Unix utilities to deal with Maildir";
license = licenses.cc0;
platforms = platforms.all;
maintainers = [ maintainers.ajgrf ];
};
}