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

37 lines
972 B
Nix
Raw Normal View History

2019-03-28 22:47:56 +01:00
{ stdenv, fetchFromGitHub, fetchpatch, libiconv }:
2018-01-06 15:59:36 +01:00
stdenv.mkDerivation rec {
name = "mblaze-${version}";
version = "0.5.1";
2018-01-06 15:59:36 +01:00
2018-01-13 12:48:37 +01:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ libiconv ];
2018-01-06 15:59:36 +01:00
src = fetchFromGitHub {
owner = "chneukirchen";
repo = "mblaze";
rev = "v${version}";
sha256 = "11x548dl2jy9cmgsakqrzfdq166whhk4ja7zkiaxrapkjmkf6pbh";
2018-01-06 15:59:36 +01:00
};
2019-03-28 22:47:56 +01:00
patches = [
(fetchpatch {
url = "https://github.com/leahneukirchen/mblaze/commit/53151f4f890f302291eb8d3375dec4f8ecb66ed7.patch";
sha256 = "1mcyrh053iiyzdhgm09g5h3a77np496whnc7jr4agpk1nkbcpfxc";
})
];
2018-01-06 15:59:36 +01:00
makeFlags = "PREFIX=$(out)";
2019-02-24 02:07:08 +01:00
postInstall = ''
install -Dm644 -t $out/share/zsh/site-functions contrib/_mblaze
'';
2018-01-06 15:59:36 +01: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 ];
};
}