1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/applications/networking/mailreaders/mblaze/default.nix

33 lines
949 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";
2020-10-05 15:16:02 +01:00
version = "1.0";
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}";
2020-10-05 15:16:02 +01:00
sha256 = "0hxy3mjjv4hg856sl1r15fdmqaw4s9c26b3lidsd5x0kpqy601ai";
2018-01-06 14:59:36 +00:00
};
makeFlags = [ "PREFIX=$(out)" ];
2018-01-06 14:59:36 +00:00
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 ];
};
}